Before this PR, during the config.yaml had the wrong key: metrics_relabel_configs (metrics in plural). The correct key is metric_relabel_configs (metric, in singular).
As a result, we were generating an invalid config that prometheus was dropping.
In addition, the yaml string wasn't parsed into a python object.
Issue
Before this PR, during the
config.yaml
had the wrong key:metrics_relabel_configs
(metrics
in plural). The correct key ismetric_relabel_configs
(metric
, in singular).As a result, we were generating an invalid config that prometheus was dropping.
In addition, the yaml string wasn't parsed into a python object.
Solution
s
.yaml.safe_load
the yaml configs.In tandem with:
Testing