From: Piyush Agarwal Date: Wed, 22 Jan 2025 05:21:58 +0000 (+0530) Subject: mgr/dashboard: Changing SimpleGraphPanel to TimeSeries Panel in pool.libsonnet X-Git-Tag: v19.2.3~289^2 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=007ff30beafda999a0a9c1839c9a62c9c01140fe;p=ceph.git mgr/dashboard: Changing SimpleGraphPanel to TimeSeries Panel in pool.libsonnet Fixes:- https://tracker.ceph.com/issues/70229 Signed-off-by: Piyush Agarwal (cherry picked from commit 09807250719b566c3c20fe57d2f323eb81b38ee5) --- diff --git a/monitoring/ceph-mixin/dashboards/pool.libsonnet b/monitoring/ceph-mixin/dashboards/pool.libsonnet index 0683211404676..3d8aab62d3952 100644 --- a/monitoring/ceph-mixin/dashboards/pool.libsonnet +++ b/monitoring/ceph-mixin/dashboards/pool.libsonnet @@ -513,74 +513,85 @@ local g = import 'grafonnet/grafana.libsonnet'; ] ), - $.simpleGraphPanel( - {}, - 'Top $topk Client IOPS by Pool', - 'This chart shows the sum of read and write IOPS from all clients by pool', - 'short', - 'IOPS', - 0, - ||| - topk($topk, - round( - ( - rate(ceph_pool_rd{%(matchers)s}[$__rate_interval]) + - rate(ceph_pool_wr{%(matchers)s}[$__rate_interval]) - ), 1 - ) * on(pool_id) group_left(instance,name) ceph_pool_metadata{%(matchers)s}) - ||| % $.matchers(), - '{{name}} ', - 0, - 9, - 12, - 8 + $.timeSeriesPanel( + title='Top $topk Client IOPS by Pool', + datasource='$datasource', + gridPosition={ x: 0, y: 9, w: 12, h: 8 }, + unit='short', + axisLabel='IOPS', + drawStyle='line', + fillOpacity=8, + tooltip={ mode: 'multi', sort: 'none' }, + colorMode='palette-classic', + spanNulls=true, ) - .addTarget( + .addTargets([ + $.addTargetSchema( + ||| + topk($topk, + round( + ( + rate(ceph_pool_rd{%(matchers)s}[$__rate_interval]) + + rate(ceph_pool_wr{%(matchers)s}[$__rate_interval]) + ), 1 + ) * on(pool_id) group_left(instance,name) ceph_pool_metadata{%(matchers)s} + ) + ||| % $.matchers(), + '{{name}}' + ), $.addTargetSchema( ||| topk($topk, rate(ceph_pool_wr{%(matchers)s}[$__rate_interval]) + - on(pool_id) group_left(instance,name) ceph_pool_metadata{%(matchers)s} + on(pool_id) group_left(instance,name) ceph_pool_metadata{%(matchers)s} ) ||| % $.matchers(), '{{name}} - write' - ) - ), - $.simpleGraphPanel( - {}, - 'Top $topk Client Bandwidth by Pool', - 'The chart shows the sum of read and write bytes from all clients, by pool', - 'Bps', - 'Throughput', - 0, - ||| - topk($topk, - ( - rate(ceph_pool_rd_bytes{%(matchers)s}[$__rate_interval]) + + ), + ]), + $.timeSeriesPanel( + title='Top $topk Client Bandwidth by Pool', + datasource='$datasource', + gridPosition={ x: 12, y: 9, w: 12, h: 8 }, + unit='Bps', + axisLabel='Throughput', + drawStyle='line', + fillOpacity=8, + tooltip={ mode: 'multi', sort: 'none' }, + colorMode='palette-classic', + spanNulls=true, + ) + .addTargets([ + $.addTargetSchema( + ||| + topk($topk, + ( + rate(ceph_pool_rd_bytes{%(matchers)s}[$__rate_interval]) + rate(ceph_pool_wr_bytes{%(matchers)s}[$__rate_interval]) - ) * on(pool_id) group_left(instance, name) ceph_pool_metadata{%(matchers)s} - ) - ||| % $.matchers(), - '{{name}}', - 12, - 9, - 12, - 8 - ), - $.simpleGraphPanel( - {}, - 'Pool Capacity Usage (RAW)', - 'Historical view of capacity usage, to help identify growth and trends in pool consumption', - 'bytes', - 'Capacity Used', - 0, - 'ceph_pool_bytes_used{%(matchers)s} * on(pool_id) group_right ceph_pool_metadata{%(matchers)s}' % $.matchers(), - '{{name}}', - 0, - 17, - 24, - 7 - ), + ) * on(pool_id) group_left(instance, name) ceph_pool_metadata{%(matchers)s} + ) + ||| % $.matchers(), + '{{name}}' + ), + ]), + $.timeSeriesPanel( + title='Pool Capacity Usage (RAW)', + datasource='$datasource', + gridPosition={ x: 0, y: 17, w: 24, h: 7 }, + unit='bytes', + axisLabel='Capacity Used', + drawStyle='line', + fillOpacity=8, + tooltip={ mode: 'multi', sort: 'none' }, + colorMode='palette-classic', + spanNulls=true, + ) + .addTargets([ + $.addTargetSchema( + 'ceph_pool_bytes_used{%(matchers)s} * on(pool_id) group_right ceph_pool_metadata{%(matchers)s}' % $.matchers(), + '{{name}}' + ), + ]), ]), 'pool-detail.json': $.dashboardSchema( @@ -670,106 +681,111 @@ local g = import 'grafonnet/grafana.libsonnet'; 5, 7 ), - $.simpleGraphPanel( - { - read_op_per_sec: - '#3F6833', - write_op_per_sec: '#E5AC0E', - }, - '$pool_name Object Ingress/Egress', - '', - 'ops', - 'Objects out(-) / in(+) ', - null, - ||| - deriv(ceph_pool_objects{%(matchers)s}[1m]) * - on(pool_id) group_left(instance, name) ceph_pool_metadata{name=~"$pool_name", %(matchers)s} - ||| % $.matchers(), - 'Objects per second', - 12, - 0, - 12, - 7 - ), - $.simpleGraphPanel( - { - read_op_per_sec: '#3F6833', - write_op_per_sec: '#E5AC0E', - }, - '$pool_name Client IOPS', - '', - 'iops', - 'Read (-) / Write (+)', - null, - ||| - rate(ceph_pool_rd{%(matchers)s}[$__rate_interval]) * - on(pool_id) group_left(instance,name) ceph_pool_metadata{name=~"$pool_name", %(matchers)s} - ||| % $.matchers(), - 'reads', - 0, - 7, - 12, - 7 + $.timeSeriesPanel( + title='$pool_name Object Ingress/Egress', + datasource='$datasource', + gridPosition={ x: 12, y: 0, w: 12, h: 7 }, + unit='ops', + axisLabel='Objects out(-) / in(+)', + drawStyle='line', + fillOpacity=8, + tooltip={ mode: 'multi', sort: 'none' }, + colorMode='palette-classic', + spanNulls=true, + ) + .addTargets([ + $.addTargetSchema( + ||| + deriv(ceph_pool_objects{%(matchers)s}[1m]) * + on(pool_id) group_left(instance, name) ceph_pool_metadata{name=~"$pool_name", %(matchers)s} + ||| % $.matchers(), + 'Objects per second' + ), + ]), + $.timeSeriesPanel( + title='$pool_name Client IOPS', + datasource='$datasource', + gridPosition={ x: 0, y: 7, w: 12, h: 7 }, + unit='iops', + axisLabel='Read (-) / Write (+)', + drawStyle='line', + fillOpacity=8, + tooltip={ mode: 'multi', sort: 'none' }, + colorMode='palette-classic', + spanNulls=true, ) - .addSeriesOverride({ alias: 'reads', transform: 'negative-Y' }) - .addTarget( + .addTargets([ + $.addTargetSchema( + ||| + rate(ceph_pool_rd{%(matchers)s}[$__rate_interval]) * + on(pool_id) group_left(instance, name) ceph_pool_metadata{name=~"$pool_name", %(matchers)s} + ||| % $.matchers(), + 'reads' + ), $.addTargetSchema( ||| rate(ceph_pool_wr{%(matchers)s}[$__rate_interval]) * on(pool_id) group_left(instance, name) ceph_pool_metadata{name=~"$pool_name", %(matchers)s} ||| % $.matchers(), 'writes' - ) - ), - $.simpleGraphPanel( - { - read_op_per_sec: '#3F6833', - write_op_per_sec: '#E5AC0E', - }, - '$pool_name Client Throughput', - '', - 'Bps', - 'Read (-) / Write (+)', - null, - ||| - rate(ceph_pool_rd_bytes{%(matchers)s}[$__rate_interval]) + - on(pool_id) group_left(instance, name) ceph_pool_metadata{name=~"$pool_name", %(matchers)s} - ||| % $.matchers(), - 'reads', - 12, - 7, - 12, - 7 + ), + ]) + .addSeriesOverride({ + alias: 'reads', + transform: 'negative-Y', + }), + $.timeSeriesPanel( + title='$pool_name Client Throughput', + datasource='$datasource', + gridPosition={ x: 12, y: 7, w: 12, h: 7 }, + unit='Bps', + axisLabel='Read (-) / Write (+)', + drawStyle='line', + fillOpacity=8, + tooltip={ mode: 'multi', sort: 'none' }, + colorMode='palette-classic', + spanNulls=true, ) - .addSeriesOverride({ alias: 'reads', transform: 'negative-Y' }) - .addTarget( + .addTargets([ + $.addTargetSchema( + ||| + rate(ceph_pool_rd_bytes{%(matchers)s}[$__rate_interval]) + + on(pool_id) group_left(instance, name) ceph_pool_metadata{name=~"$pool_name", %(matchers)s} + ||| % $.matchers(), + 'reads' + ), $.addTargetSchema( ||| rate(ceph_pool_wr_bytes{%(matchers)s}[$__rate_interval]) + - on(pool_id) group_left(instance,name) ceph_pool_metadata{name=~"$pool_name", %(matchers)s} + on(pool_id) group_left(instance, name) ceph_pool_metadata{name=~"$pool_name", %(matchers)s} ||| % $.matchers(), 'writes' - ) - ), - $.simpleGraphPanel( - { - read_op_per_sec: '#3F6833', - write_op_per_sec: '#E5AC0E', - }, - '$pool_name Objects', - '', - 'short', - 'Objects', - null, - ||| - ceph_pool_objects{%(matchers)s} * - on(pool_id) group_left(instance,name) ceph_pool_metadata{name=~"$pool_name", %(matchers)s} - ||| % $.matchers(), - 'Number of Objects', - 0, - 14, - 12, - 7 - ), + ), + ]) + .addSeriesOverride({ + alias: 'reads', + transform: 'negative-Y', + }), + $.timeSeriesPanel( + title='$pool_name Objects', + datasource='$datasource', + gridPosition={ x: 0, y: 14, w: 12, h: 7 }, + unit='short', + axisLabel='Objects', + drawStyle='line', + fillOpacity=8, + tooltip={ mode: 'multi', sort: 'none' }, + colorMode='palette-classic', + spanNulls=true, + ) + .addTargets([ + $.addTargetSchema( + ||| + ceph_pool_objects{%(matchers)s} * + on(pool_id) group_left(instance, name) ceph_pool_metadata{name=~"$pool_name", %(matchers)s} + ||| % $.matchers(), + 'Number of Objects' + ), + ]), ]), } diff --git a/monitoring/ceph-mixin/dashboards_out/pool-detail.json b/monitoring/ceph-mixin/dashboards_out/pool-detail.json index 5e5bf6e9b8b26..0874efa6e4f74 100644 --- a/monitoring/ceph-mixin/dashboards_out/pool-detail.json +++ b/monitoring/ceph-mixin/dashboards_out/pool-detail.json @@ -207,26 +207,50 @@ "valueName": false }, { - "aliasColors": { - "read_op_per_sec": "#3F6833", - "write_op_per_sec": "#E5AC0E" - }, - "bars": false, - "dashLength": 10, - "dashes": false, "datasource": "$datasource", - "description": "", "fieldConfig": { "defaults": { + "color": { + "mode": "palette-classic" + }, "custom": { + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "Objects out(-) / in(+)", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "line", "fillOpacity": 8, - "showPoints": "never" + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 0, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "", + "spanNulls": true, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "thresholds": { + "mode": "absolute", + "steps": [ ] }, "unit": "ops" - } + }, + "overrides": [ ] }, - "fill": 1, - "fillGradient": 0, "gridPos": { "h": 7, "w": 12, @@ -234,31 +258,20 @@ "y": 0 }, "id": 4, - "legend": { - "alignAsTable": false, - "avg": false, - "current": false, - "max": false, - "min": false, - "rightSide": false, - "show": true, - "sideWidth": null, - "total": false, - "values": false + "options": { + "legend": { + "calcs": [ ], + "displayMode": "list", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "multi", + "sort": "none" + } }, - "lines": true, - "linewidth": 1, - "links": [ ], - "nullPointMode": "null", - "percentage": false, - "pointradius": 5, - "points": false, - "renderer": "flot", - "repeat": null, + "pluginVersion": "9.1.3", "seriesOverrides": [ ], - "spaceLength": 10, - "stack": false, - "steppedLine": false, "targets": [ { "expr": "deriv(ceph_pool_objects{cluster=~\"$cluster\", }[1m]) *\n on(pool_id) group_left(instance, name) ceph_pool_metadata{name=~\"$pool_name\", cluster=~\"$cluster\", }\n", @@ -268,63 +281,54 @@ "refId": "A" } ], - "thresholds": [ ], - "timeFrom": null, - "timeShift": null, "title": "$pool_name Object Ingress/Egress", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "timeseries", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [ ] - }, - "yaxes": [ - { - "format": "ops", - "label": "Objects out(-) / in(+) ", - "logBase": 1, - "max": null, - "min": null, - "show": true - }, - { - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - } - ] + "type": "timeseries" }, { - "aliasColors": { - "read_op_per_sec": "#3F6833", - "write_op_per_sec": "#E5AC0E" - }, - "bars": false, - "dashLength": 10, - "dashes": false, "datasource": "$datasource", - "description": "", "fieldConfig": { "defaults": { + "color": { + "mode": "palette-classic" + }, "custom": { + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "Read (-) / Write (+)", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "line", "fillOpacity": 8, - "showPoints": "never" + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 0, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "", + "spanNulls": true, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "thresholds": { + "mode": "absolute", + "steps": [ ] }, "unit": "iops" - } + }, + "overrides": [ ] }, - "fill": 1, - "fillGradient": 0, "gridPos": { "h": 7, "w": 12, @@ -332,39 +336,28 @@ "y": 7 }, "id": 5, - "legend": { - "alignAsTable": false, - "avg": false, - "current": false, - "max": false, - "min": false, - "rightSide": false, - "show": true, - "sideWidth": null, - "total": false, - "values": false + "options": { + "legend": { + "calcs": [ ], + "displayMode": "list", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "multi", + "sort": "none" + } }, - "lines": true, - "linewidth": 1, - "links": [ ], - "nullPointMode": "null", - "percentage": false, - "pointradius": 5, - "points": false, - "renderer": "flot", - "repeat": null, + "pluginVersion": "9.1.3", "seriesOverrides": [ { "alias": "reads", "transform": "negative-Y" } ], - "spaceLength": 10, - "stack": false, - "steppedLine": false, "targets": [ { - "expr": "rate(ceph_pool_rd{cluster=~\"$cluster\", }[$__rate_interval]) *\n on(pool_id) group_left(instance,name) ceph_pool_metadata{name=~\"$pool_name\", cluster=~\"$cluster\", }\n", + "expr": "rate(ceph_pool_rd{cluster=~\"$cluster\", }[$__rate_interval]) *\n on(pool_id) group_left(instance, name) ceph_pool_metadata{name=~\"$pool_name\", cluster=~\"$cluster\", }\n", "format": "time_series", "intervalFactor": 1, "legendFormat": "reads", @@ -378,63 +371,54 @@ "refId": "B" } ], - "thresholds": [ ], - "timeFrom": null, - "timeShift": null, "title": "$pool_name Client IOPS", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "timeseries", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [ ] - }, - "yaxes": [ - { - "format": "iops", - "label": "Read (-) / Write (+)", - "logBase": 1, - "max": null, - "min": null, - "show": true - }, - { - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - } - ] + "type": "timeseries" }, { - "aliasColors": { - "read_op_per_sec": "#3F6833", - "write_op_per_sec": "#E5AC0E" - }, - "bars": false, - "dashLength": 10, - "dashes": false, "datasource": "$datasource", - "description": "", "fieldConfig": { "defaults": { + "color": { + "mode": "palette-classic" + }, "custom": { + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "Read (-) / Write (+)", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "line", "fillOpacity": 8, - "showPoints": "never" + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 0, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "", + "spanNulls": true, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "thresholds": { + "mode": "absolute", + "steps": [ ] }, "unit": "Bps" - } + }, + "overrides": [ ] }, - "fill": 1, - "fillGradient": 0, "gridPos": { "h": 7, "w": 12, @@ -442,36 +426,25 @@ "y": 7 }, "id": 6, - "legend": { - "alignAsTable": false, - "avg": false, - "current": false, - "max": false, - "min": false, - "rightSide": false, - "show": true, - "sideWidth": null, - "total": false, - "values": false + "options": { + "legend": { + "calcs": [ ], + "displayMode": "list", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "multi", + "sort": "none" + } }, - "lines": true, - "linewidth": 1, - "links": [ ], - "nullPointMode": "null", - "percentage": false, - "pointradius": 5, - "points": false, - "renderer": "flot", - "repeat": null, + "pluginVersion": "9.1.3", "seriesOverrides": [ { "alias": "reads", "transform": "negative-Y" } ], - "spaceLength": 10, - "stack": false, - "steppedLine": false, "targets": [ { "expr": "rate(ceph_pool_rd_bytes{cluster=~\"$cluster\", }[$__rate_interval]) +\n on(pool_id) group_left(instance, name) ceph_pool_metadata{name=~\"$pool_name\", cluster=~\"$cluster\", }\n", @@ -481,70 +454,61 @@ "refId": "A" }, { - "expr": "rate(ceph_pool_wr_bytes{cluster=~\"$cluster\", }[$__rate_interval]) +\n on(pool_id) group_left(instance,name) ceph_pool_metadata{name=~\"$pool_name\", cluster=~\"$cluster\", }\n", + "expr": "rate(ceph_pool_wr_bytes{cluster=~\"$cluster\", }[$__rate_interval]) +\n on(pool_id) group_left(instance, name) ceph_pool_metadata{name=~\"$pool_name\", cluster=~\"$cluster\", }\n", "format": "time_series", "intervalFactor": 1, "legendFormat": "writes", "refId": "B" } ], - "thresholds": [ ], - "timeFrom": null, - "timeShift": null, "title": "$pool_name Client Throughput", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "timeseries", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [ ] - }, - "yaxes": [ - { - "format": "Bps", - "label": "Read (-) / Write (+)", - "logBase": 1, - "max": null, - "min": null, - "show": true - }, - { - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - } - ] + "type": "timeseries" }, { - "aliasColors": { - "read_op_per_sec": "#3F6833", - "write_op_per_sec": "#E5AC0E" - }, - "bars": false, - "dashLength": 10, - "dashes": false, "datasource": "$datasource", - "description": "", "fieldConfig": { "defaults": { + "color": { + "mode": "palette-classic" + }, "custom": { + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "Objects", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "line", "fillOpacity": 8, - "showPoints": "never" + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 0, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "", + "spanNulls": true, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "thresholds": { + "mode": "absolute", + "steps": [ ] }, "unit": "short" - } + }, + "overrides": [ ] }, - "fill": 1, - "fillGradient": 0, "gridPos": { "h": 7, "w": 12, @@ -552,75 +516,31 @@ "y": 14 }, "id": 7, - "legend": { - "alignAsTable": false, - "avg": false, - "current": false, - "max": false, - "min": false, - "rightSide": false, - "show": true, - "sideWidth": null, - "total": false, - "values": false + "options": { + "legend": { + "calcs": [ ], + "displayMode": "list", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "multi", + "sort": "none" + } }, - "lines": true, - "linewidth": 1, - "links": [ ], - "nullPointMode": "null", - "percentage": false, - "pointradius": 5, - "points": false, - "renderer": "flot", - "repeat": null, + "pluginVersion": "9.1.3", "seriesOverrides": [ ], - "spaceLength": 10, - "stack": false, - "steppedLine": false, "targets": [ { - "expr": "ceph_pool_objects{cluster=~\"$cluster\", } *\n on(pool_id) group_left(instance,name) ceph_pool_metadata{name=~\"$pool_name\", cluster=~\"$cluster\", }\n", + "expr": "ceph_pool_objects{cluster=~\"$cluster\", } *\n on(pool_id) group_left(instance, name) ceph_pool_metadata{name=~\"$pool_name\", cluster=~\"$cluster\", }\n", "format": "time_series", "intervalFactor": 1, "legendFormat": "Number of Objects", "refId": "A" } ], - "thresholds": [ ], - "timeFrom": null, - "timeShift": null, "title": "$pool_name Objects", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "timeseries", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [ ] - }, - "yaxes": [ - { - "format": "short", - "label": "Objects", - "logBase": 1, - "max": null, - "min": null, - "show": true - }, - { - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - } - ] + "type": "timeseries" } ], "refresh": "30s", diff --git a/monitoring/ceph-mixin/dashboards_out/pool-overview.json b/monitoring/ceph-mixin/dashboards_out/pool-overview.json index fa32b3368cfc7..3ad2d43227f51 100644 --- a/monitoring/ceph-mixin/dashboards_out/pool-overview.json +++ b/monitoring/ceph-mixin/dashboards_out/pool-overview.json @@ -1297,23 +1297,50 @@ "type": "table" }, { - "aliasColors": { }, - "bars": false, - "dashLength": 10, - "dashes": false, "datasource": "$datasource", - "description": "This chart shows the sum of read and write IOPS from all clients by pool", "fieldConfig": { "defaults": { + "color": { + "mode": "palette-classic" + }, "custom": { + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "IOPS", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "line", "fillOpacity": 8, - "showPoints": "never" + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 0, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "", + "spanNulls": true, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "thresholds": { + "mode": "absolute", + "steps": [ ] }, "unit": "short" - } + }, + "overrides": [ ] }, - "fill": 1, - "fillGradient": 0, "gridPos": { "h": 8, "w": 12, @@ -1321,101 +1348,84 @@ "y": 9 }, "id": 11, - "legend": { - "alignAsTable": false, - "avg": false, - "current": false, - "max": false, - "min": false, - "rightSide": false, - "show": true, - "sideWidth": null, - "total": false, - "values": false + "options": { + "legend": { + "calcs": [ ], + "displayMode": "list", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "multi", + "sort": "none" + } }, - "lines": true, - "linewidth": 1, - "links": [ ], - "nullPointMode": "null", - "percentage": false, - "pointradius": 5, - "points": false, - "renderer": "flot", - "repeat": null, + "pluginVersion": "9.1.3", "seriesOverrides": [ ], - "spaceLength": 10, - "stack": false, - "steppedLine": false, "targets": [ { - "expr": "topk($topk,\n round(\n (\n rate(ceph_pool_rd{cluster=~\"$cluster\", }[$__rate_interval]) +\n rate(ceph_pool_wr{cluster=~\"$cluster\", }[$__rate_interval])\n ), 1\n ) * on(pool_id) group_left(instance,name) ceph_pool_metadata{cluster=~\"$cluster\", })\n", + "expr": "topk($topk,\n round(\n (\n rate(ceph_pool_rd{cluster=~\"$cluster\", }[$__rate_interval]) +\n rate(ceph_pool_wr{cluster=~\"$cluster\", }[$__rate_interval])\n ), 1\n ) * on(pool_id) group_left(instance,name) ceph_pool_metadata{cluster=~\"$cluster\", }\n)\n", "format": "time_series", "intervalFactor": 1, - "legendFormat": "{{name}} ", + "legendFormat": "{{name}}", "refId": "A" }, { - "expr": "topk($topk,\n rate(ceph_pool_wr{cluster=~\"$cluster\", }[$__rate_interval]) +\n on(pool_id) group_left(instance,name) ceph_pool_metadata{cluster=~\"$cluster\", }\n)\n", + "expr": "topk($topk,\n rate(ceph_pool_wr{cluster=~\"$cluster\", }[$__rate_interval]) +\n on(pool_id) group_left(instance,name) ceph_pool_metadata{cluster=~\"$cluster\", }\n)\n", "format": "time_series", "intervalFactor": 1, "legendFormat": "{{name}} - write", "refId": "B" } ], - "thresholds": [ ], - "timeFrom": null, - "timeShift": null, "title": "Top $topk Client IOPS by Pool", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "timeseries", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [ ] - }, - "yaxes": [ - { - "format": "short", - "label": "IOPS", - "logBase": 1, - "max": null, - "min": 0, - "show": true - }, - { - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": 0, - "show": true - } - ] + "type": "timeseries" }, { - "aliasColors": { }, - "bars": false, - "dashLength": 10, - "dashes": false, "datasource": "$datasource", - "description": "The chart shows the sum of read and write bytes from all clients, by pool", "fieldConfig": { "defaults": { + "color": { + "mode": "palette-classic" + }, "custom": { + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "Throughput", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "line", "fillOpacity": 8, - "showPoints": "never" + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 0, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "", + "spanNulls": true, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "thresholds": { + "mode": "absolute", + "steps": [ ] }, "unit": "Bps" - } + }, + "overrides": [ ] }, - "fill": 1, - "fillGradient": 0, "gridPos": { "h": 8, "w": 12, @@ -1423,94 +1433,77 @@ "y": 9 }, "id": 12, - "legend": { - "alignAsTable": false, - "avg": false, - "current": false, - "max": false, - "min": false, - "rightSide": false, - "show": true, - "sideWidth": null, - "total": false, - "values": false + "options": { + "legend": { + "calcs": [ ], + "displayMode": "list", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "multi", + "sort": "none" + } }, - "lines": true, - "linewidth": 1, - "links": [ ], - "nullPointMode": "null", - "percentage": false, - "pointradius": 5, - "points": false, - "renderer": "flot", - "repeat": null, + "pluginVersion": "9.1.3", "seriesOverrides": [ ], - "spaceLength": 10, - "stack": false, - "steppedLine": false, "targets": [ { - "expr": "topk($topk,\n (\n rate(ceph_pool_rd_bytes{cluster=~\"$cluster\", }[$__rate_interval]) +\n rate(ceph_pool_wr_bytes{cluster=~\"$cluster\", }[$__rate_interval])\n ) * on(pool_id) group_left(instance, name) ceph_pool_metadata{cluster=~\"$cluster\", }\n)\n", + "expr": "topk($topk,\n (\n rate(ceph_pool_rd_bytes{cluster=~\"$cluster\", }[$__rate_interval]) +\n rate(ceph_pool_wr_bytes{cluster=~\"$cluster\", }[$__rate_interval])\n ) * on(pool_id) group_left(instance, name) ceph_pool_metadata{cluster=~\"$cluster\", }\n)\n", "format": "time_series", "intervalFactor": 1, "legendFormat": "{{name}}", "refId": "A" } ], - "thresholds": [ ], - "timeFrom": null, - "timeShift": null, "title": "Top $topk Client Bandwidth by Pool", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "timeseries", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [ ] - }, - "yaxes": [ - { - "format": "Bps", - "label": "Throughput", - "logBase": 1, - "max": null, - "min": 0, - "show": true - }, - { - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": 0, - "show": true - } - ] + "type": "timeseries" }, { - "aliasColors": { }, - "bars": false, - "dashLength": 10, - "dashes": false, "datasource": "$datasource", - "description": "Historical view of capacity usage, to help identify growth and trends in pool consumption", "fieldConfig": { "defaults": { + "color": { + "mode": "palette-classic" + }, "custom": { + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "Capacity Used", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "line", "fillOpacity": 8, - "showPoints": "never" + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 0, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "", + "spanNulls": true, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "thresholds": { + "mode": "absolute", + "steps": [ ] }, "unit": "bytes" - } + }, + "overrides": [ ] }, - "fill": 1, - "fillGradient": 0, "gridPos": { "h": 7, "w": 24, @@ -1518,31 +1511,20 @@ "y": 17 }, "id": 13, - "legend": { - "alignAsTable": false, - "avg": false, - "current": false, - "max": false, - "min": false, - "rightSide": false, - "show": true, - "sideWidth": null, - "total": false, - "values": false + "options": { + "legend": { + "calcs": [ ], + "displayMode": "list", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "multi", + "sort": "none" + } }, - "lines": true, - "linewidth": 1, - "links": [ ], - "nullPointMode": "null", - "percentage": false, - "pointradius": 5, - "points": false, - "renderer": "flot", - "repeat": null, + "pluginVersion": "9.1.3", "seriesOverrides": [ ], - "spaceLength": 10, - "stack": false, - "steppedLine": false, "targets": [ { "expr": "ceph_pool_bytes_used{cluster=~\"$cluster\", } * on(pool_id) group_right ceph_pool_metadata{cluster=~\"$cluster\", }", @@ -1552,41 +1534,8 @@ "refId": "A" } ], - "thresholds": [ ], - "timeFrom": null, - "timeShift": null, "title": "Pool Capacity Usage (RAW)", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "timeseries", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [ ] - }, - "yaxes": [ - { - "format": "bytes", - "label": "Capacity Used", - "logBase": 1, - "max": null, - "min": 0, - "show": true - }, - { - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": 0, - "show": true - } - ] + "type": "timeseries" } ], "refresh": "30s",