Hey, Your application has probably already registered such metrics. The most popular cause of this is using globals (please avoid those) or and registration of metric on request path or something (it should be on binary/application start only).
Kind Regards, Bartek Płotka (@bwplotka) On Thu, 14 Jan 2021 at 08:45, Manish G <[email protected]> wrote: > I am trying to add a prometheus java client histogram metrics, but I keep > getting this error on application launch: > > Prometheus Error: Collector already registered that provides name:<name of > my histogram metrics> > > What can be the cause? > > > -- > 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/CAOFd6igJxyVQjM6_ewbvQnEF-dZDFY4wabfUjQkrabiX61Kcsw%40mail.gmail.com > <https://groups.google.com/d/msgid/prometheus-users/CAOFd6igJxyVQjM6_ewbvQnEF-dZDFY4wabfUjQkrabiX61Kcsw%40mail.gmail.com?utm_medium=email&utm_source=footer> > . > -- 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/CAMssQwYEUoUQ6JOXD4kytmscchgaCJJVqKJPoz4vyy2doQp%2BWQ%40mail.gmail.com.

