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
Imported github.com/prometheus/prometheus/model/rulefmt to perform rule validation, in a project that's also using k8s.io/client-go and expects to register its own workqueue metrics.
Instead, because of a dependency chain, github.com/prometheus/prometheus/discovery ends up imported, and because it has an init() function which registers these metrics, it overwrites the metrics I'm using.
What did you expect to see?
Valid e.g. workqueue_depth metrics from my controller.
What did you see instead? Under which circumstances?
No e.g. workqueue_depth metrics from my controller, as they get stomped on by the discovery package.
System information
No response
Prometheus version
No response
Prometheus configuration file
No response
Alertmanager version
No response
Alertmanager configuration file
No response
Logs
No response
The text was updated successfully, but these errors were encountered:
What did you do?
Imported
github.com/prometheus/prometheus/model/rulefmt
to perform rule validation, in a project that's also usingk8s.io/client-go
and expects to register its own workqueue metrics.Instead, because of a dependency chain,
github.com/prometheus/prometheus/discovery
ends up imported, and because it has aninit()
function which registers these metrics, it overwrites the metrics I'm using.What did you expect to see?
Valid e.g.
workqueue_depth
metrics from my controller.What did you see instead? Under which circumstances?
No e.g.
workqueue_depth
metrics from my controller, as they get stomped on by the discovery package.System information
No response
Prometheus version
No response
Prometheus configuration file
No response
Alertmanager version
No response
Alertmanager configuration file
No response
Logs
No response
The text was updated successfully, but these errors were encountered: