HO-CTO / sre-monitoring-as-code

Monitoring-as-Code (MaC) is a jsonnet mixin implementation of SLIs/SLO/Error Budgets using the open-source monitoring and alerting eco-system of Prometheus and Grafana.
https://ho-cto.github.io/sre-monitoring-as-code/
MIT License
23 stars 15 forks source link

cwagent double counting values #636

Closed irenemolnarHO closed 12 months ago

irenemolnarHO commented 1 year ago

found that some of the services do not have autoscaling and therefore double counting when it uses instanced which produces a value greater when using sum by.

The solution to this is to use max instead of sum, hence when there is more than one instance, it selects the instance which is the one which has the highest value (underperforming compared to the other instances running)