OSDs panel in host-details grafana dashboard shows total of all OSDs
across all hosts even if a particular host is selected from the
ceph_hosts filter. This PR intends to fix this issue
Fixes: https://tracker.ceph.com/issues/70226
Signed-off-by: Aashish Sharnma <aasharma@redhat.com>
(cherry picked from commit
223c1363791981a35bcb3cac841e665e080cc1f5)
'OSDs',
'',
'current',
- 'count(sum by (ceph_daemon) (ceph_osd_metadata{%(matchers)s}))' % $.matchers(),
+ 'count(sum by (ceph_daemon) (ceph_osd_metadata{%(matchers)s hostname=~"$ceph_hosts"}))' % $.matchers(),
null,
'time_series',
0,
"tableColumn": "",
"targets": [
{
- "expr": "count(sum by (ceph_daemon) (ceph_osd_metadata{cluster=~\"$cluster\", }))",
+ "expr": "count(sum by (ceph_daemon) (ceph_osd_metadata{cluster=~\"$cluster\", hostname=~\"$ceph_hosts\"}))",
"format": "time_series",
"intervalFactor": 1,
"legendFormat": "",