Project

General

Profile

Actions

Bug #47537

closed

Prometheus rbd metrics absent by default

Added by Daniël Vos over 3 years ago. Updated 4 days ago.

Status:
Resolved
Priority:
Normal
Category:
prometheus module
Target version:
% Done:

100%

Source:
Community (user)
Tags:
Backport:
pacific octopus
Regression:
No
Severity:
4 - irritation
Reviewed:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

Hello,

According to https://docs.ceph.com/en/latest/mgr/prometheus/#rbd-io-statistics statistics should be collected for all rbd enabled pools by default

My cluster has a osd pool by the name of "LXD" that contains rbd images. `ceph config get mgr mgr/prometheus/rbd_stats_pools` is empty and according to the docs this means that it should collect/export metrics for all pools but unfortunately it does not.

When I explicitly tell it to export metrics for the pool 'LXD' as such: `ceph config set mgr mgr/prometheus/rbd_stats_pools 'LXD'` ceph_rbd_* metrics pop up in my prometheus.

And ofcourse when I empty the config option with `ceph config rm mgr mgr/prometheus/rbd_stats_pools` my rbd metrics disappear

Are the docs incorrect or is this a logic error somewhere? :)

ceph config get mgr mgr/prometheus/rbd_stats_pools
LXD

ceph config rm mgr mgr/prometheus/rbd_stats_pools
<metrics disappear>

ceph config set mgr mgr/prometheus/rbd_stats_pools 'LXD'
<metrics appear again>

ceph osd pool application get LXD
{
    "rbd": {}
}

Running on Ceph 15.2.4

Actions

Also available in: Atom PDF