PrometheusJobMissing alert - no such job as job="ceph"
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Ceph Monitor Charm |
Fix Committed
|
Low
|
Unassigned |
Bug Description
ceph-mon quincy/stable 194
The converted alert rules try to find a job as:
> absent(
However in the charm world, there is no such job as job="ceph" and it triggers the following alert out of the box.
====
PrometheusJobMi
name: PrometheusJobMi
expr: absent(
for: 30s
labels:
juju_application: ceph-mon
juju_charm: ceph-mon
juju_model: ceph
juju_model_uuid: 57cd5e92-
oid: 1.3.6.1.
severity: critical
type: ceph_default
annotations:
description: The prometheus job that scrapes from Ceph is no longer defined, this will effectively mean you'll have no metrics or alerts for the cluster. Please review the job definitions in the prometheus.yml file of the prometheus instance.
summary: The scrape job for Ceph is missing from Prometheus
====
The expected job name is "juju_ceph_
For the record, other real alerts are mostly fine though. Because those alerts are not using "job=" in the query.