Exporter returns zero values for osdmap (osds_up, etc) using latest/edge channel against bionic-ussuri/octopus
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Prometheus Ceph Exporter Charm |
In Progress
|
High
|
Unassigned |
Bug Description
$ sudo snap list
Name Version Rev Tracking Publisher Notes
core 16-2.46.1 9993 latest/stable canonical✓ core
core18 20200724 1885 latest/stable canonical✓ base
prometheus-
# Exporter returns wrong metrics
$ curl -s 127.0.0.
# HELP ceph_osds Count of total OSDs in the cluster
# TYPE ceph_osds gauge
ceph_osds{
# HELP ceph_osds_down Count of OSDs that are in DOWN state
# TYPE ceph_osds_down gauge
ceph_osds_
# HELP ceph_osds_in Count of OSDs that are in IN state and available to serve requests
# TYPE ceph_osds_in gauge
ceph_osds_
# HELP ceph_osds_up Count of OSDs that are in UP state
# TYPE ceph_osds_up gauge
ceph_osds_
###### real cluster state:
$ sudo ceph -s
cluster:
id: d3cf4c68-
health: HEALTH_OK
services:
mon: 3 daemons, quorum juju-e75ae8-
mgr: juju-e75ae8-
osd: 25 osds: 25 up (since 2h), 25 in (since 46h)
rgw: 3 daemons active (juju-e75ae8-
task status:
data:
pools: 19 pools, 961 pgs
objects: 1.05k objects, 2.6 GiB
usage: 35 GiB used, 54 TiB / 54 TiB avail
pgs: 961 active+clean
io:
client: 17 KiB/s rd, 17 op/s rd, 0 op/s wr
Changed in charm-prometheus-ceph-exporter: | |
status: | Confirmed → In Progress |
The above discrepancy leads to the wrong data rendering in the Grafana dashboard as well (see screenshot attached).