Hi Boris,

By default histograms don't have buckets in Spring boot, just a count and a
sum (and they are exposed as Summaries in Prometheus).
You have to add a configuration "
management.metrics.distribution.percentiles-histogram" to make Spring Boot
expose histogram buckets.

Fabian

On Mon, Nov 28, 2022 at 5:53 PM Boris Szelcsanyi <szelcsan...@gmail.com>
wrote:

> Hi all!
>
> *Issue: *The prometheus client, monitoring our services is missing the
> "http_server_requests_second_bucket" query. I have tried to look up for a
> similar issue, but I haven't found anything related to resolving this. (see
> screenshot below)
>
> *Motivation:*
> I'd like to calculate the APDEX score, for that I need the query.
>
> *Possible Solution??:* Could it be that I need to take use of the Java
> Client Prometheus library and implement the missing histogram as it is
> explained in the docs? Or is there some better solution?
>
> *Background:*
> We currently have four spring middleware. For each middleware I added
> following dependencies:
> [image: image.png]
> After that I have configured the application.yml of each middleware:
> [image: image.png]
>
> I'd appreciate any input and possible solutions.
>
> --
> Thanks in advance and best regards,
>
> Boris
>
> --
> You received this message because you are subscribed to the Google Groups
> "Prometheus Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to prometheus-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/prometheus-users/CANVnrP__yupc6kiZZQYPpHT8so9RwafLEi%3Dv-xBAyaMC_Ktz-g%40mail.gmail.com
> <https://groups.google.com/d/msgid/prometheus-users/CANVnrP__yupc6kiZZQYPpHT8so9RwafLEi%3Dv-xBAyaMC_Ktz-g%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"Prometheus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to prometheus-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/prometheus-users/CAPX310j9PcMZNSjBv_Fta-SZNqAMT%3Dkn6S_7WtaLFMGz9-XqKQ%40mail.gmail.com.

Reply via email to