Custom Histogram doesn't show up on prometheus dashboard

30 views
Skip to first unread message

Manish G

unread,
Dec 21, 2020, 10:35:49 PM12/21/20
to Prometheus Users
I am trying to add a merics in my pojo class, like explained here

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?

Manish G

unread,
Dec 22, 2020, 9:15:54 AM12/22/20
to Prometheus Users
I have also asked same here.
Reply all
Reply to author
Forward
0 new messages