I have a Spring Boot setup, with micrometer and metrics turned on.
I have successfully used http.server.requests
to export a Counter of how many requests are happening.
However, I'm now stuck trying to create a Histogram of response times for these same requests.
What I have tried so far:
management.metrics.distribution.sla.http.server.requests: 1ms, 2ms, 5ms, 10ms, 20ms, 30ms
to get a set of gauges that represent the bucketsHas anyone achieved this before? I'm currently thinking along the lines of recreating the _sum, _count and _bucket parts separately from the gauge but I have not yet figured out how to do the sum and count parts. Any direction is much appreciated.
management.metrics.web.server.request.autotime.percentiles-histogram=true