]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
pybind/mgr/prometheus: Add instance_id metadata for rgw
authorBenoît Knecht <bknecht@protonmail.ch>
Fri, 12 Nov 2021 14:10:52 +0000 (15:10 +0100)
committerBenoît Knecht <bknecht@protonmail.ch>
Tue, 11 Jan 2022 11:48:55 +0000 (12:48 +0100)
commit01b42c1c51a1b4142adcde0c2c673b60e61e4697
treefbb583f3bd0058542c5e8239e7cf8c45641ec633
parent9f6573bbb1eeed8fab117149a117fdffd56bdf64
pybind/mgr/prometheus: Add instance_id metadata for rgw

In order to get the `ceph_daemon` label for `rgw` metrics corresponding to the
value before #40220, we need to add the `instance_id` label to the
`ceph_rgw_metadata` metric.

This way, the old `ceph_daemon` label can be added to any `ceph_rgw_*` metric
using the following PromQL query, for instance:

```
ceph_rgw_req * on (instance_id) group_left(ceph_daemon) ceph_rgw_metadata
```

Signed-off-by: Benoît Knecht <bknecht@protonmail.ch>
src/pybind/mgr/prometheus/module.py