I managed to get my Java-Services -> Prometheus -> Grafana stack up and running.
I am using PrometheusTimeMethod on each webservice which generates a nicht summary.
My problem: I would like to know how the min/average/max response time was in the last 1 minute.
I do not want to implement gauges for each of these methods inside the methods.
Is there an annotation that does this already?
Can someone give me a short manual how I could achieve this?
THX!
Boris
I simply added a gauge for the response time and used it in parallel to the "summary".
Is this a correct/working solution?
THX!
You could use summary to monitor the response times. Have a look at the Summarize annotation here: https://github.com/auduntorp/client_java/blob/annotations/simpleclient_annotations/src/main/java/io/prometheus/client/annotations/Summarize.java
And the test for it here: https://github.com/auduntorp/client_java/blob/annotations/simpleclient_annotations/src/test/java/io/prometheus/client/annotations/PrometheusMonitorTest.java
Did you use this project in production or it was just an experiment?
Didn't you create an exporter?
Did you use a pushgateway?
Thanks,
Sergio
Ddi you check for your annotation