canonical / prometheus-scrape-config-k8s-operator

https://charmhub.io/prometheus-scrape-config-k8s
Apache License 2.0
1 stars 1 forks source link

Ensure alert rules can be passed from multiple workload charms #13

Closed dstathis closed 2 years ago

dstathis commented 2 years ago

Issue

When multiple workload charms were related to this charm, it would only forward alert rules for one of them.

Solution

Concatenate a list of all alert rules.

Testing Instructions

Hook up two instances of spring-music and make sure alert rules make it in to prometheus for each of them.

Release Notes

Fixed an issue where alert rules were not forwarded when multiple workload charms were related.