$.addStatPanel(
title='Cluster Capacity',
- unit='decbytes',
+ unit='bytes',
datasource='$datasource',
gridPosition={ x: 6, y: 1, w: 3, h: 3 },
graphMode='area',
)
.addThresholds([
{ color: 'green', value: null },
- { color: 'red', value: 80 },
])
.addTargets([
$.addTargetSchema(
displayValueWithAlias='When Alias Displayed',
units='none',
valueHandler='Number Threshold',
- expr='count(ceph_osd_in{%(matchers)s})' % $.matchers(),
+ expr='sum(ceph_osd_in{%(matchers)s})' % $.matchers(),
legendFormat='In',
interval='$interval',
datasource='$datasource',
warn=1,
datasource='$datasource',
),
+ ])
+ .addOverrides([
+ { matcher: { id: 'byName', options: 'All' }, properties: [
+ { id: 'color', value: { mode: 'fixed' } },
+ ] },
+ { matcher: { id: 'byName', options: 'Out' }, properties: [
+ {
+ id: 'thresholds',
+ value: { mode: 'absolute', steps: [
+ { color: 'green', value: null },
+ { color: 'red', value: 1 },
+ ] },
+ },
+ ] },
+ { matcher: { id: 'byName', options: 'Down' }, properties: [
+ {
+ id: 'thresholds',
+ value: { mode: 'absolute', steps: [
+ { color: 'green', value: null },
+ { color: 'red', value: 1 },
+ ] },
+ },
+ ] },
]),
$.addStatPanel(
displayName='',
maxDataPoints=100,
colorMode='none',
- unit='decbytes',
+ unit='bytes',
pluginVersion='9.4.7',
)
.addMappings([
pointSize=5,
lineWidth=1,
showPoints='never',
- unit='decbytes',
+ unit='bytes',
displayMode='table',
tooltip={ mode: 'multi', sort: 'desc' },
interval='$interval',
pointSize=5,
lineWidth=1,
showPoints='never',
- unit='decbytes',
+ unit='bytes',
displayMode='table',
tooltip={ mode: 'multi', sort: 'desc' },
interval='$interval',
}
]
},
- "unit": "decbytes"
+ "unit": "bytes"
}
},
"gridPos": {
{
"color": "green",
"value": null
- },
- {
- "color": "red",
- "value": 80
}
]
},
"unit": "none"
- }
+ },
+ "overrides": [
+ {
+ "matcher": {
+ "id": "byName",
+ "options": "All"
+ },
+ "properties": [
+ {
+ "id": "color",
+ "value": {
+ "mode": "fixed"
+ }
+ }
+ ]
+ },
+ {
+ "matcher": {
+ "id": "byName",
+ "options": "Out"
+ },
+ "properties": [
+ {
+ "id": "thresholds",
+ "value": {
+ "mode": "absolute",
+ "steps": [
+ {
+ "color": "green",
+ "value": null
+ },
+ {
+ "color": "red",
+ "value": 1
+ }
+ ]
+ }
+ }
+ ]
+ },
+ {
+ "matcher": {
+ "id": "byName",
+ "options": "Down"
+ },
+ "properties": [
+ {
+ "id": "thresholds",
+ "value": {
+ "mode": "absolute",
+ "steps": [
+ {
+ "color": "green",
+ "value": null
+ },
+ {
+ "color": "red",
+ "value": 1
+ }
+ ]
+ }
+ }
+ ]
+ }
+ ]
},
"flipCard": false,
"flipTime": 5,
"displayAliasType": "Always",
"displayType": "Regular",
"displayValueWithAlias": "When Alias Displayed",
- "expr": "count(ceph_osd_in{cluster=~\"$cluster\", })",
+ "expr": "sum(ceph_osd_in{cluster=~\"$cluster\", })",
"format": "time_series",
"interval": "$interval",
"intervalFactor": 1,
}
]
},
- "unit": "decbytes"
+ "unit": "bytes"
}
},
"gridPos": {
}
]
},
- "unit": "decbytes"
+ "unit": "bytes"
},
"overrides": [ ]
},
}
]
},
- "unit": "decbytes"
+ "unit": "bytes"
},
"overrides": [ ]
},