summaryrefslogtreecommitdiffstats
path: root/monitoring/ceph-mixin/dashboards/rgw.libsonnet
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-23 16:45:17 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-23 16:45:44 +0000
commit17d6a993fc17d533460c5f40f3908c708e057c18 (patch)
tree1a3bd93e0ecd74fa02f93a528fe2f87e5314c4b5 /monitoring/ceph-mixin/dashboards/rgw.libsonnet
parentReleasing progress-linux version 18.2.2-0progress7.99u1. (diff)
downloadceph-17d6a993fc17d533460c5f40f3908c708e057c18.tar.xz
ceph-17d6a993fc17d533460c5f40f3908c708e057c18.zip
Merging upstream version 18.2.3.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'monitoring/ceph-mixin/dashboards/rgw.libsonnet')
-rw-r--r--monitoring/ceph-mixin/dashboards/rgw.libsonnet67
1 files changed, 52 insertions, 15 deletions
diff --git a/monitoring/ceph-mixin/dashboards/rgw.libsonnet b/monitoring/ceph-mixin/dashboards/rgw.libsonnet
index 892480d1c..557f1ddcc 100644
--- a/monitoring/ceph-mixin/dashboards/rgw.libsonnet
+++ b/monitoring/ceph-mixin/dashboards/rgw.libsonnet
@@ -24,7 +24,7 @@ local u = import 'utils.libsonnet';
'{{source_zone}}'
),
]
- ) + { gridPos: { x: x, y: y, w: w, h: h } };
+ ) + { type: 'timeseries' } + { fieldConfig: { defaults: { unit: formatY1, custom: { fillOpacity: 8, showPoints: 'never' } } } } + { gridPos: { x: x, y: y, w: w, h: h } };
$.dashboardSchema(
'RGW Sync Overview',
@@ -140,7 +140,7 @@ local u = import 'utils.libsonnet';
{},
title,
description,
- 'null',
+ 'null as zero',
false,
formatY1,
formatY2,
@@ -158,7 +158,7 @@ local u = import 'utils.libsonnet';
)
.addTargets(
[$.addTargetSchema(expr1, legendFormat1)]
- ) + { gridPos: { x: x, y: y, w: w, h: h } };
+ ) + { type: 'timeseries' } + { fieldConfig: { defaults: { unit: formatY1, custom: { fillOpacity: 8, showPoints: 'never' } } } } + { gridPos: { x: x, y: y, w: w, h: h } };
$.dashboardSchema(
'RGW Overview',
@@ -658,7 +658,7 @@ local u = import 'utils.libsonnet';
$.graphPanelSchema(aliasColors,
title,
description,
- 'null',
+ 'null as zero',
false,
formatY1,
formatY2,
@@ -669,7 +669,7 @@ local u = import 'utils.libsonnet';
'$datasource')
.addTargets(
[$.addTargetSchema(expr1, legendFormat1), $.addTargetSchema(expr2, legendFormat2)]
- ) + { gridPos: { x: x, y: y, w: w, h: h } };
+ ) + { type: 'timeseries' } + { fieldConfig: { defaults: { unit: formatY1, custom: { fillOpacity: 8, showPoints: 'never' } } } } + { gridPos: { x: x, y: y, w: w, h: h } };
$.dashboardSchema(
'RGW Instance Detail',
@@ -825,15 +825,52 @@ local u = import 'utils.libsonnet';
),
]
),
- $.simplePieChart(
- {
- GETs: '#7eb26d',
- 'Other (HEAD,POST,DELETE)': '#447ebc',
- PUTs: '#eab839',
- Requests: '#3f2b5b',
- Failures: '#bf1b00',
- }, '', 'Workload Breakdown'
- )
+
+ $.pieChartPanel('Workload Breakdown',
+ '',
+ '$datasource',
+ { x: 20, y: 1, w: 4, h: 8 },
+ 'table',
+ 'bottom',
+ true,
+ [],
+ { mode: 'single', sort: 'none' },
+ 'pie',
+ ['percent', 'value'],
+ 'palette-classic',
+ overrides=[
+ {
+ matcher: { id: 'byName', options: 'Failures' },
+ properties: [
+ { id: 'color', value: { mode: 'fixed', fixedColor: '#bf1b00' } },
+ ],
+ },
+ {
+ matcher: { id: 'byName', options: 'GETs' },
+ properties: [
+ { id: 'color', value: { mode: 'fixed', fixedColor: '#7eb26d' } },
+ ],
+ },
+ {
+ matcher: { id: 'byName', options: 'Other (HEAD,POST,DELETE)' },
+ properties: [
+ { id: 'color', value: { mode: 'fixed', fixedColor: '#447ebc' } },
+ ],
+ },
+ {
+ matcher: { id: 'byName', options: 'PUTs' },
+ properties: [
+ { id: 'color', value: { mode: 'fixed', fixedColor: '#eab839' } },
+ ],
+ },
+ {
+ matcher: { id: 'byName', options: 'Requests' },
+ properties: [
+ { id: 'color', value: { mode: 'fixed', fixedColor: '#3f2b5b' } },
+ ],
+ },
+ ],
+ reduceOptions={ values: false, calcs: ['lastNotNull'], fields: '' })
.addTarget($.addTargetSchema(
|||
rate(ceph_rgw_failed_req{%(matchers)s}[$__rate_interval]) *
@@ -867,6 +904,6 @@ local u = import 'utils.libsonnet';
ceph_rgw_metadata{%(matchers)s, ceph_daemon=~"$rgw_servers"}
||| % $.matchers(),
'Other (DELETE,LIST) {{ceph_daemon}}'
- )) + { gridPos: { x: 20, y: 1, w: 4, h: 8 } },
+ )),
]),
}