canonical / prometheus-k8s-operator

This charmed operator automates the operational procedures of running Prometheus, an open-source metrics backend.
https://charmhub.io/prometheus-k8s
Apache License 2.0
21 stars 34 forks source link

Fix sanitation #599

Closed sed-i closed 4 months ago

sed-i commented 4 months ago

Issue

Before this PR, during the santize method for scrape config, we were keeping the wrong key: metrics_relabel_configs (metrics in plural). The correct key is metric_relabel_configs (metric, in singular).

As a result, we could not set metric_relabel_configs because it was being dropped by sanitation.

Solution

Remove the stray s.

In tandem with: