Open Abuelodelanada opened 1 month ago
We should also do this for alert rules. Currently, if you relate to cos-config and make a typo in one alert rule, all of them will disappear from Prometheus, and everything will stay in active/idle.
We should either validate on cos-config and set that to blocked, or validate in Prometheus.
Bug Description
Prometheus is unable to unmarshal
params
sent through Prometheus scrape target. Prometheus remains inActive
stateTo Reproduce
juju deploy prometheus-k8s prom --channel edge --trust
juju deploy prometheus-scrape-target-k8s scrape --channel edge
juju config prometheus-scrape-target-k8s targets=192.168.0.248:9116
juju config prometheus-scrape-target-k8s labels="job:cumulus"
juju config prometheus-scrape-target-k8s metrics_path="/snmp"
juju config scrape params='{"auth": "snmp_v3", "module": "if_mib_if_name", "target": "192.168.100.200"}'
juju relate prom scrape
Alternatively it is possible to use this bundle:
Environment
Relevant log output
Additional context
No response