0
votes

Before switching to Micrometer, we were leveraging Prometheus in several of our Spring Boot applications. Prometheus showed all our timings in milliseconds. Now that we have switched to Micrometer, All the timer and @Timed metrics are all in seconds. I was able to modify the max metric by extending the PrometheusMeterRegistry and overriding getBaseTimeUnit the but the sum metric of the Timer does not respect the same override.

1

1 Answers

0
votes

You are describing the very concerns covered by a Prometheus core committer.

I would recommend against trying to adjust it to milliseconds since it would be fighting the system. If you are using Grafana to display your dashboards, then it will handle the unit regardless of the underlying implementation.