Replies: 1 comment 2 replies
-
Of course, you have read https://github.com/javamelody/javamelody/wiki/UserGuideAdvanced#exposing-metrics-to-prometheus If you look at the example http://javamelody.org/demo/monitoring?format=prometheus, you will see two Prometheus metrics among others :
Those two metrics are of type "counter" (the values always increase over time, since the start of the monitored app). To have a useful http mean response time or a max time, you need to decide on which period you want a value (that is probably not from the start of the app): last hour ? or last minute ? If I make no mistake, you can get a graph over time of http mean response time for each minute using PromQL and a division operator with something like that : The http max response time is not available at the moment. Alternatively, you could get values from graphs displayed in the monitoring page (beware that it is slower because it needs to read values from RRD files). For that use a URL like http://javamelody.org/demo/monitoring?format=prometheus&includeLastValue=true
With |
Beta Was this translation helpful? Give feedback.
-
Hello,
I am new to JavaMelody and struggling on how to reveal the metrics for http mean and max time when the format is prometheus. Anyone has idea ?
Beta Was this translation helpful? Give feedback.
All reactions