You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When a collector produces duplicate labels (same metric name, same label names, same label values) during scrape, client_java throws an IllegalArgumentException.
Looking at the code, MetricSnapshot has the MetricMetadata which could be added to the exception. This would provide more information about the configuration issue.
When a collector produces duplicate labels (same metric name, same label names, same label values) during scrape,
client_java
throws an IllegalArgumentException.client_java/prometheus-metrics-model/src/main/java/io/prometheus/metrics/model/snapshots/MetricSnapshot.java
Line 46 in f1cc00a
It would be better to have an explicit Exception for that so the collector can catch it. This would help with prometheus/jmx_exporter#911 (comment)
The text was updated successfully, but these errors were encountered: