mgr/dashboard: Show the OSD's Out and Down panels as red whenever an OSD is in Out or Down state in Ceph Cluster grafana dashboard

Fixes: https://tracker.ceph.com/issues/62969

Signed-off-by: Aashish Sharma <aasharma@redhat.com>
This commit is contained in:
Aashish Sharma 2023-09-25 17:05:50 +05:30
parent f747ab3d09
commit a29e6a8673

View File

@ -256,7 +256,93 @@
}
],
"title": "OSDs",
"type": "stat"
"type": "stat",
"fieldConfig": {
"defaults": {
"mappings": [],
"thresholds": {
"mode": "percentage",
"steps": [
{
"color": "green",
"value": null
}
]
}
},
"overrides": [
{
"matcher": {
"id": "byName",
"options": "All"
},
"properties": [
{
"id": "color",
"value": {
"mode": "fixed"
}
}
]
},
{
"matcher": {
"id": "byName",
"options": "Out"
},
"properties": [
{
"id": "thresholds",
"value": {
"mode": "percentage",
"steps": [
{
"color": "green",
"value": null
},
{
"color": "orange",
"value": 0.1
},
{
"value": 10,
"color": "red"
}
]
}
}
]
},
{
"matcher": {
"id": "byName",
"options": "Down"
},
"properties": [
{
"id": "thresholds",
"value": {
"mode": "percentage",
"steps": [
{
"color": "green",
"value": null
},
{
"color": "orange",
"value": 0.1
},
{
"value": 10,
"color": "red"
}
]
}
}
]
}
]
}
},
{
"clusterName": "",
@ -1276,4 +1362,4 @@
"timezone": "",
"title": "Ceph - Cluster",
"version": 13
}
}