I have also asked same here <https://stackoverflow.com/questions/65402948/custom-histogram-metrics-not-showing-up-in-prometheus> .
On Tue, Dec 22, 2020 at 9:05 AM Manish G <[email protected]> wrote: > 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/CAOFd6igBgsOYY0nEe4iyBqCrddwK%3DQ8wBt1mjYCb5iB0EJVi_A%40mail.gmail.com.

