Previously we had all metrics and alert rules labeled with the topology of the principal charm. This caused issues as it was difficult, from charm code, to figure out which charm was principal. This also would have posed problems for multi-principal machines.
Solution
All alert rules and metrics now get topology labels from the charm from which they originated.
Testing Instructions
Deploy kafka, zookeeper, hardware-observer, and grafana-agent
Relate them to COS
Check that logs, metrics, and alerts all have proper labels.
Release Notes
Simplified the labeling model of metrics and alert rules
Fixes #17
Issue
Previously we had all metrics and alert rules labeled with the topology of the principal charm. This caused issues as it was difficult, from charm code, to figure out which charm was principal. This also would have posed problems for multi-principal machines.
Solution
All alert rules and metrics now get topology labels from the charm from which they originated.
Testing Instructions
Release Notes
Simplified the labeling model of metrics and alert rules