opa-scorecard icon indicating copy to clipboard operation
opa-scorecard copied to clipboard

Prevent Duplicate Metrics

Open lmoze opened this issue 3 years ago • 0 comments

This pull request fixes an issue where exporter-go fails to export Prometheus metrics if the cluster opa-gatekeeper has exported duplicate violations, e.g. because of https://github.com/open-policy-agent/gatekeeper/issues/481

Symptom: https://opa-gatekeeper:9141/metrics returns 500 Internal Server Error with a message like collected metric <metric-details> was collected before with the same name and label values

lmoze avatar Oct 29 '21 16:10 lmoze