I am trying to add a merics in my pojo class, like explained here
<https://github.com/prometheus/client_java#histogram>
static final Histogram requestLatency = Histogram.build()
.name("my_cusotm_service_method_latency_seconds")
.help("Request latency in seconds for my_cusotm_service
.").register();
...and then in method:
Histogram.Timer requestTimer = requestLatency.startTimer();
try{
....
}finally{
requestTimer.observeDuration();
}
But on prometheus dashboard I see no such metrics.
Am I missing something here?
--
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 [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/prometheus-users/CAOFd6iizAsTBn69zgszmtfxs71WZwThhU5X_%2B4CoA-9EcM3W0g%40mail.gmail.com.