opa-scorecard
opa-scorecard copied to clipboard
Prevent Duplicate Metrics
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