summaryrefslogtreecommitdiffstats
path: root/monitoring/ceph-mixin
diff options
context:
space:
mode:
authorNizamudeen A <nia@redhat.com>2023-11-30 09:08:54 +0100
committerGitHub <noreply@github.com>2023-11-30 09:08:54 +0100
commita42e286fc0259585ad8e453ac97c816f70bc2505 (patch)
tree14f008e098a10cd08e95c387349d87ab1e152407 /monitoring/ceph-mixin
parentMerge PR #53431 into main (diff)
parentmgr/dashboard: info on why RBD graphs are empty (diff)
downloadceph-a42e286fc0259585ad8e453ac97c816f70bc2505.tar.xz
ceph-a42e286fc0259585ad8e453ac97c816f70bc2505.zip
Merge pull request #54355 from nobuto-m/info-rbd-stats-pools
mgr/dashboard: info on why RBD graphs are empty Reviewed-by: Ankush Behl <cloudbehl@gmail.com> Reviewed-by: Nizamudeen A <nia@redhat.com>
Diffstat (limited to 'monitoring/ceph-mixin')
-rw-r--r--monitoring/ceph-mixin/dashboards/rbd.libsonnet29
-rw-r--r--monitoring/ceph-mixin/dashboards_out/rbd-details.json6
-rw-r--r--monitoring/ceph-mixin/dashboards_out/rbd-overview.json12
3 files changed, 32 insertions, 15 deletions
diff --git a/monitoring/ceph-mixin/dashboards/rbd.libsonnet b/monitoring/ceph-mixin/dashboards/rbd.libsonnet
index 709d4e04f7e..8ae9d272e50 100644
--- a/monitoring/ceph-mixin/dashboards/rbd.libsonnet
+++ b/monitoring/ceph-mixin/dashboards/rbd.libsonnet
@@ -1,12 +1,22 @@
local g = import 'grafonnet/grafana.libsonnet';
local u = import 'utils.libsonnet';
+local info_rbd_stats = std.join(
+ '',
+ [
+ 'RBD per-image IO statistics are disabled by default.\n\n',
+ 'Please refer to ',
+ 'https://docs.ceph.com/en/latest/mgr/prometheus/#rbd-io-statistics ',
+ 'for information about how to enable those optionally.',
+ ]
+);
+
(import 'utils.libsonnet') {
'rbd-details.json':
- local RbdDetailsPanel(title, formatY1, expr1, expr2, x, y, w, h) =
+ local RbdDetailsPanel(title, description, formatY1, expr1, expr2, x, y, w, h) =
$.graphPanelSchema({},
title,
- '',
+ description,
'null as zero',
false,
formatY1,
@@ -83,6 +93,7 @@ local u = import 'utils.libsonnet';
.addPanels([
RbdDetailsPanel(
'IOPS',
+ info_rbd_stats,
'iops',
'rate(ceph_rbd_write_ops{%(matchers)s, pool="$pool", image="$image"}[$__rate_interval])' % $.matchers()
,
@@ -94,6 +105,7 @@ local u = import 'utils.libsonnet';
),
RbdDetailsPanel(
'Throughput',
+ info_rbd_stats,
'Bps',
'rate(ceph_rbd_write_bytes{%(matchers)s, pool="$pool", image="$image"}[$__rate_interval])' % $.matchers(),
'rate(ceph_rbd_read_bytes{%(matchers)s, pool="$pool", image="$image"}[$__rate_interval])' % $.matchers(),
@@ -104,6 +116,7 @@ local u = import 'utils.libsonnet';
),
RbdDetailsPanel(
'Average Latency',
+ info_rbd_stats,
'ns',
|||
rate(ceph_rbd_write_latency_sum{%(matchers)s, pool="$pool", image="$image"}[$__rate_interval]) /
@@ -121,6 +134,7 @@ local u = import 'utils.libsonnet';
]),
'rbd-overview.json':
local RbdOverviewPanel(title,
+ description,
formatY1,
expr1,
expr2,
@@ -132,7 +146,7 @@ local u = import 'utils.libsonnet';
h) =
$.graphPanelSchema({},
title,
- '',
+ description,
'null as zero',
false,
formatY1,
@@ -196,6 +210,7 @@ local u = import 'utils.libsonnet';
.addPanels([
RbdOverviewPanel(
'IOPS',
+ info_rbd_stats,
'short',
'round(sum(rate(ceph_rbd_write_ops{%(matchers)s}[$__rate_interval])))' % $.matchers(),
'round(sum(rate(ceph_rbd_read_ops{%(matchers)s}[$__rate_interval])))' % $.matchers(),
@@ -208,6 +223,7 @@ local u = import 'utils.libsonnet';
),
RbdOverviewPanel(
'Throughput',
+ info_rbd_stats,
'Bps',
'round(sum(rate(ceph_rbd_write_bytes{%(matchers)s}[$__rate_interval])))' % $.matchers(),
'round(sum(rate(ceph_rbd_read_bytes{%(matchers)s}[$__rate_interval])))' % $.matchers(),
@@ -220,6 +236,7 @@ local u = import 'utils.libsonnet';
),
RbdOverviewPanel(
'Average Latency',
+ info_rbd_stats,
'ns',
|||
round(
@@ -242,7 +259,7 @@ local u = import 'utils.libsonnet';
),
$.addTableSchema(
'$datasource',
- '',
+ info_rbd_stats,
{ col: 3, desc: true },
[
$.overviewStyle('Pool', 'pool', 'string', 'short'),
@@ -273,7 +290,7 @@ local u = import 'utils.libsonnet';
) + { gridPos: { x: 0, y: 7, w: 8, h: 7 } },
$.addTableSchema(
'$datasource',
- '',
+ info_rbd_stats,
{ col: 3, desc: true },
[
$.overviewStyle('Pool', 'pool', 'string', 'short'),
@@ -304,7 +321,7 @@ local u = import 'utils.libsonnet';
) + { gridPos: { x: 8, y: 7, w: 8, h: 7 } },
$.addTableSchema(
'$datasource',
- '',
+ info_rbd_stats,
{ col: 3, desc: true },
[
$.overviewStyle('Pool', 'pool', 'string', 'short'),
diff --git a/monitoring/ceph-mixin/dashboards_out/rbd-details.json b/monitoring/ceph-mixin/dashboards_out/rbd-details.json
index f64de312af5..2d5d4ecac4a 100644
--- a/monitoring/ceph-mixin/dashboards_out/rbd-details.json
+++ b/monitoring/ceph-mixin/dashboards_out/rbd-details.json
@@ -43,7 +43,7 @@
"dashLength": 10,
"dashes": false,
"datasource": "$datasource",
- "description": "",
+ "description": "RBD per-image IO statistics are disabled by default.\n\nPlease refer to https://docs.ceph.com/en/latest/mgr/prometheus/#rbd-io-statistics for information about how to enable those optionally.",
"fill": 1,
"fillGradient": 0,
"gridPos": {
@@ -136,7 +136,7 @@
"dashLength": 10,
"dashes": false,
"datasource": "$datasource",
- "description": "",
+ "description": "RBD per-image IO statistics are disabled by default.\n\nPlease refer to https://docs.ceph.com/en/latest/mgr/prometheus/#rbd-io-statistics for information about how to enable those optionally.",
"fill": 1,
"fillGradient": 0,
"gridPos": {
@@ -229,7 +229,7 @@
"dashLength": 10,
"dashes": false,
"datasource": "$datasource",
- "description": "",
+ "description": "RBD per-image IO statistics are disabled by default.\n\nPlease refer to https://docs.ceph.com/en/latest/mgr/prometheus/#rbd-io-statistics for information about how to enable those optionally.",
"fill": 1,
"fillGradient": 0,
"gridPos": {
diff --git a/monitoring/ceph-mixin/dashboards_out/rbd-overview.json b/monitoring/ceph-mixin/dashboards_out/rbd-overview.json
index 86b354a6089..c367bd16fa3 100644
--- a/monitoring/ceph-mixin/dashboards_out/rbd-overview.json
+++ b/monitoring/ceph-mixin/dashboards_out/rbd-overview.json
@@ -55,7 +55,7 @@
"dashLength": 10,
"dashes": false,
"datasource": "$datasource",
- "description": "",
+ "description": "RBD per-image IO statistics are disabled by default.\n\nPlease refer to https://docs.ceph.com/en/latest/mgr/prometheus/#rbd-io-statistics for information about how to enable those optionally.",
"fill": 1,
"fillGradient": 0,
"gridPos": {
@@ -148,7 +148,7 @@
"dashLength": 10,
"dashes": false,
"datasource": "$datasource",
- "description": "",
+ "description": "RBD per-image IO statistics are disabled by default.\n\nPlease refer to https://docs.ceph.com/en/latest/mgr/prometheus/#rbd-io-statistics for information about how to enable those optionally.",
"fill": 1,
"fillGradient": 0,
"gridPos": {
@@ -241,7 +241,7 @@
"dashLength": 10,
"dashes": false,
"datasource": "$datasource",
- "description": "",
+ "description": "RBD per-image IO statistics are disabled by default.\n\nPlease refer to https://docs.ceph.com/en/latest/mgr/prometheus/#rbd-io-statistics for information about how to enable those optionally.",
"fill": 1,
"fillGradient": 0,
"gridPos": {
@@ -331,7 +331,7 @@
{
"columns": [ ],
"datasource": "$datasource",
- "description": "",
+ "description": "RBD per-image IO statistics are disabled by default.\n\nPlease refer to https://docs.ceph.com/en/latest/mgr/prometheus/#rbd-io-statistics for information about how to enable those optionally.",
"gridPos": {
"h": 7,
"w": 8,
@@ -433,7 +433,7 @@
{
"columns": [ ],
"datasource": "$datasource",
- "description": "",
+ "description": "RBD per-image IO statistics are disabled by default.\n\nPlease refer to https://docs.ceph.com/en/latest/mgr/prometheus/#rbd-io-statistics for information about how to enable those optionally.",
"gridPos": {
"h": 7,
"w": 8,
@@ -535,7 +535,7 @@
{
"columns": [ ],
"datasource": "$datasource",
- "description": "",
+ "description": "RBD per-image IO statistics are disabled by default.\n\nPlease refer to https://docs.ceph.com/en/latest/mgr/prometheus/#rbd-io-statistics for information about how to enable those optionally.",
"gridPos": {
"h": 7,
"w": 8,