]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
doc/mgr/prometheus: correct metric name 44666/head
authorTatjana Dehler <tdehler@suse.com>
Wed, 19 Jan 2022 14:15:15 +0000 (15:15 +0100)
committerTatjana Dehler <tdehler@suse.com>
Wed, 19 Jan 2022 14:20:41 +0000 (15:20 +0100)
Replace the metric name `node_disk_bytes_written` by
`node_disk_written_bytes_total` to reflect changes made in node exporter
version 0.16.0
https://github.com/prometheus/node_exporter/releases/tag/v0.16.0 /
https://github.com/prometheus/node_exporter/blob/v0.16.0/docs/example-16-compatibility-rules.yml .

Fixes: https://tracker.ceph.com/issues/53932
Signed-off-by: Tatjana Dehler <tdehler@suse.com>
doc/mgr/prometheus.rst

index f36d8c77c4faa529b6351c9ebd5df396ad2ddd4b..35d7f83b30712026f22b1f8e93428d717816d409 100644 (file)
@@ -253,7 +253,7 @@ The goal is to run a query like
 
 ::
 
-    rate(node_disk_bytes_written[30s]) and
+    rate(node_disk_written_bytes_total[30s]) and
     on (device,instance) ceph_disk_occupation_human{ceph_daemon="osd.0"}
 
 Out of the box the above query will not return any metrics since the ``instance`` labels of
@@ -284,7 +284,7 @@ To correlate an OSD and its disks write rate, the following query can be used:
 ::
 
     label_replace(
-        rate(node_disk_bytes_written[30s]),
+        rate(node_disk_written_bytes_total[30s]),
         "exported_instance",
         "$1",
         "instance",