Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Prometheus Error: Collector already registered that provides name: http_client_requests_count

I'm seeing this odd Prometheus-related error:

RESTful call failed. Cause: Collector already registered that provides name: http_client_requests_count 

I didn't include a http_client_requests_count metric in my project -- so what gives? Where the heck is this coming from?

like image 746
kramsiv94 Avatar asked Oct 19 '18 21:10

kramsiv94


1 Answers

This is probably due to the context being reloaded, and thus collectors trying to re-register to the static CollectorRegistry.defaultRegistry.

See more info and work-arounds here: https://github.com/prometheus/jmx_exporter/issues/290

like image 103
Fredrik Rødland Avatar answered Oct 30 '22 22:10

Fredrik Rødland