Prometheus metrics generating without labels causing "Error on ingesting samples with different value but same timestamp" #666
Labels
status: accepted
This issue has been accepted by the maintainers team for implementation
type: bug
Issues/PRs addressing a bug.
Environment
Expected Behavior
Enabling nautobot metrics does not cause kube-prometheus to fire PrometheusDuplicateTimestamps alerts.
Observed Behavior
Enabling prometheus metrics in the nautobot-helm chart works, but the metrics produced cause a prometheus error:
While troubleshooting the produced metrics, I found the duplicates were generated by ssot:
nautobot-app-ssot/nautobot_ssot/metrics.py
Line 125 in bd07df1
I wonder if https://github.com/nautobot/nautobot-app-ssot/blob/develop/nautobot_ssot/metrics.py#L141-L142 should just be removed? Or maybe changed to include the job label which should produce unique metrics? Something like this instead of empty labels?
Steps to Reproduce
The text was updated successfully, but these errors were encountered: