)
.addPanels([
$.addRowSchema(false, true, 'MDS Performance') + { gridPos: { x: 0, y: 0, w: 24, h: 1 } },
- $.simpleGraphPanel(
- {},
- 'MDS Workload - $mds_servers',
- '',
- 'none',
- 'Reads(-) / Writes (+)',
- 0,
- 'sum(rate(ceph_objecter_op_r{ceph_daemon=~"($mds_servers).*", %(matchers)s}[$__rate_interval]))' % $.matchers(),
- 'Read Ops',
- 0,
- 1,
- 12,
- 9
+ $.timeSeriesPanel(
+ title='MDS Workload - $mds_servers',
+ datasource='$datasource',
+ gridPosition={ x: 0, y: 1, w: 12, h: 9 },
+ axisLabel='Reads(-) / Writes (+)',
+ showPoints='never',
+ min=0,
+ spanNulls=true,
)
- .addTarget($.addTargetSchema(
- 'sum(rate(ceph_objecter_op_w{ceph_daemon=~"($mds_servers).*", %(matchers)s}[$__rate_interval]))' % $.matchers(),
- 'Write Ops'
- ))
+ .addTargets([
+ $.addTargetSchema(
+ 'sum(rate(ceph_objecter_op_r{ceph_daemon=~"($mds_servers).*", %(matchers)s}[$__rate_interval]))' % $.matchers(),
+ 'Read Ops'
+ ),
+ $.addTargetSchema(
+ 'sum(rate(ceph_objecter_op_w{ceph_daemon=~"($mds_servers).*", %(matchers)s}[$__rate_interval]))' % $.matchers(),
+ 'Write Ops'
+ ),
+ ])
.addSeriesOverride(
{ alias: '/.*Reads/', transform: 'negative-Y' }
),
- $.simpleGraphPanel(
- {},
- 'Client Request Load - $mds_servers',
- '',
- 'none',
- 'Client Requests',
- 0,
- 'ceph_mds_server_handle_client_request{ceph_daemon=~"($mds_servers).*", %(matchers)s}' % $.matchers(),
- '{{ceph_daemon}}',
- 12,
- 1,
- 12,
- 9
- ),
+ $.timeSeriesPanel(
+ title='Client Request Load - $mds_servers',
+ datasource='$datasource',
+ gridPosition={ x: 12, y: 1, w: 12, h: 9 },
+ axisLabel='Client Requests',
+ showPoints='never',
+ min=0,
+ spanNulls=true,
+ )
+ .addTargets([
+ $.addTargetSchema(
+ 'ceph_mds_server_handle_client_request{ceph_daemon=~"($mds_servers).*", %(matchers)s}' % $.matchers(),
+ '{{ceph_daemon}}'
+ ),
+ ]),
]),
}
axisPlacement='auto',
barAlignment=0,
drawStyle='line',
- fillOpacity=0,
+ fillOpacity=8,
gradientMode='none',
lineInterpolation='linear',
- lineWidth=0,
+ lineWidth=1,
pointSize=0,
scaleDistributionType='linear',
showPoints='',
},
overrides: [],
},
+ seriesOverrides: [],
options: {
legend: {
calcs: [],
addThresholds(steps):: std.foldl(function(p, s) p.addThreshold(s), steps, self),
addCalcs(calcs):: std.foldl(function(p, t) p.addCalc(t), calcs, self),
addOverrides(overrides):: std.foldl(function(p, o) p.addOverride(o.matcher, o.properties), overrides, self),
+ addSeriesOverride(override):: self {
+ seriesOverrides+: [override],
+ },
},
}
"type": "row"
},
{
- "aliasColors": { },
- "bars": false,
- "dashLength": 10,
- "dashes": false,
"datasource": "$datasource",
- "description": "",
"fieldConfig": {
"defaults": {
+ "color": {
+ "mode": "palette-classic"
+ },
"custom": {
+ "axisCenteredZero": false,
+ "axisColorMode": "text",
+ "axisLabel": "Reads(-) / Writes (+)",
+ "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": "never",
+ "spanNulls": true,
+ "stacking": {
+ "group": "A",
+ "mode": "none"
+ },
+ "thresholdsStyle": {
+ "mode": "off"
+ }
+ },
+ "min": 0,
+ "thresholds": {
+ "mode": "absolute",
+ "steps": [ ]
},
"unit": "none"
- }
+ },
+ "overrides": [ ]
},
- "fill": 1,
- "fillGradient": 0,
"gridPos": {
"h": 9,
"w": 12,
"y": 1
},
"id": 3,
- "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": "sum(rate(ceph_objecter_op_r{ceph_daemon=~\"($mds_servers).*\", cluster=~\"$cluster\", }[$__rate_interval]))",
"refId": "B"
}
],
- "thresholds": [ ],
- "timeFrom": null,
- "timeShift": null,
"title": "MDS Workload - $mds_servers",
- "tooltip": {
- "shared": true,
- "sort": 0,
- "value_type": "individual"
- },
- "type": "timeseries",
- "xaxis": {
- "buckets": null,
- "mode": "time",
- "name": null,
- "show": true,
- "values": [ ]
- },
- "yaxes": [
- {
- "format": "none",
- "label": "Reads(-) / Writes (+)",
- "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": "",
"fieldConfig": {
"defaults": {
+ "color": {
+ "mode": "palette-classic"
+ },
"custom": {
+ "axisCenteredZero": false,
+ "axisColorMode": "text",
+ "axisLabel": "Client Requests",
+ "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": "never",
+ "spanNulls": true,
+ "stacking": {
+ "group": "A",
+ "mode": "none"
+ },
+ "thresholdsStyle": {
+ "mode": "off"
+ }
+ },
+ "min": 0,
+ "thresholds": {
+ "mode": "absolute",
+ "steps": [ ]
},
"unit": "none"
- }
+ },
+ "overrides": [ ]
},
- "fill": 1,
- "fillGradient": 0,
"gridPos": {
"h": 9,
"w": 12,
"y": 1
},
"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": "ceph_mds_server_handle_client_request{ceph_daemon=~\"($mds_servers).*\", cluster=~\"$cluster\", }",
"refId": "A"
}
],
- "thresholds": [ ],
- "timeFrom": null,
- "timeShift": null,
"title": "Client Request Load - $mds_servers",
- "tooltip": {
- "shared": true,
- "sort": 0,
- "value_type": "individual"
- },
- "type": "timeseries",
- "xaxis": {
- "buckets": null,
- "mode": "time",
- "name": null,
- "show": true,
- "values": [ ]
- },
- "yaxes": [
- {
- "format": "none",
- "label": "Client Requests",
- "logBase": 1,
- "max": null,
- "min": 0,
- "show": true
- },
- {
- "format": "short",
- "label": null,
- "logBase": 1,
- "max": null,
- "min": 0,
- "show": true
- }
- ]
+ "type": "timeseries"
}
],
"refresh": "30s",