Skip to content

Commit

Permalink
fix: add color to relevant value mapping columns in dashboards
Browse files Browse the repository at this point in the history
  • Loading branch information
rahulguptajss authored and cgrinds committed Aug 2, 2024
1 parent 9f3d801 commit 57f80d4
Show file tree
Hide file tree
Showing 4 changed files with 66 additions and 90 deletions.
37 changes: 9 additions & 28 deletions grafana/dashboards/cmode/aggregate.json
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@
"gnetId": null,
"graphTooltip": 1,
"id": null,
"iteration": 1721125645502,
"iteration": 1722596631356,
"links": [
{
"asDropdown": true,
Expand Down Expand Up @@ -618,40 +618,21 @@
"value": [
{
"options": {
"0": {
"color": "red",
"index": 1,
"text": "offline/error"
},
"1": {
"color": "green",
"index": 0,
"text": "online"
}
},
"type": "value"
},
{
"options": {
"from": 0,
"result": {
"text": "offline/error"
},
"to": 0.999
},
"type": "range"
}
]
},
{
"id": "thresholds",
"value": {
"mode": "absolute",
"steps": [
{
"color": "rgb(199, 48, 66)",
"value": null
},
{
"color": "rgb(74, 163, 52)",
"value": 1
}
]
}
},
{
"id": "custom.displayMode",
"value": "color-background"
Expand Down Expand Up @@ -6795,5 +6776,5 @@
"timezone": "",
"title": "ONTAP: Aggregate",
"uid": "cdot-aggregate",
"version": 14
"version": 15
}
18 changes: 13 additions & 5 deletions grafana/dashboards/cmode/cluster.json
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@
"gnetId": null,
"graphTooltip": 1,
"id": null,
"iteration": 1718090119984,
"iteration": 1722598083639,
"links": [
{
"asDropdown": true,
Expand Down Expand Up @@ -1628,9 +1628,13 @@
{
"options": {
"0": {
"color": "red",
"index": 1,
"text": "not healthy"
},
"1": {
"color": "green",
"index": 0,
"text": "OK"
}
},
Expand Down Expand Up @@ -2149,9 +2153,13 @@
{
"options": {
"0": {
"color": "red",
"index": 1,
"text": "not healthy"
},
"1": {
"color": "green",
"index": 0,
"text": "OK"
}
},
Expand Down Expand Up @@ -2768,7 +2776,7 @@
"h": 1,
"w": 24,
"x": 0,
"y": 38
"y": 35
},
"id": 97,
"panels": [
Expand Down Expand Up @@ -3434,7 +3442,7 @@
"h": 1,
"w": 24,
"x": 0,
"y": 39
"y": 36
},
"id": 184,
"panels": [
Expand Down Expand Up @@ -4121,7 +4129,7 @@
"h": 1,
"w": 24,
"x": 0,
"y": 40
"y": 37
},
"id": 214,
"panels": [
Expand Down Expand Up @@ -4611,5 +4619,5 @@
"timezone": "",
"title": "ONTAP: Cluster",
"uid": "cdot-cluster",
"version": 5
"version": 6
}
22 changes: 14 additions & 8 deletions grafana/dashboards/cmode/datacenter.json
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@
"gnetId": null,
"graphTooltip": 1,
"id": null,
"iteration": 1718008746540,
"iteration": 1722588393410,
"links": [
{
"asDropdown": true,
Expand Down Expand Up @@ -967,10 +967,12 @@
{
"options": {
"0": {
"color": "red",
"index": 1,
"text": "Not Healthy"
},
"1": {
"color": "green",
"index": 0,
"text": "OK"
}
Expand Down Expand Up @@ -1039,7 +1041,7 @@
"h": 7,
"w": 8,
"x": 0,
"y": 36
"y": 38
},
"id": 480,
"options": {
Expand Down Expand Up @@ -1130,9 +1132,13 @@
{
"options": {
"0": {
"color": "red",
"index": 1,
"text": "not healthy"
},
"1": {
"color": "green",
"index": 0,
"text": "OK"
}
},
Expand Down Expand Up @@ -1266,7 +1272,7 @@
"h": 7,
"w": 16,
"x": 8,
"y": 36
"y": 38
},
"id": 528,
"interval": "",
Expand Down Expand Up @@ -1377,7 +1383,7 @@
"h": 4,
"w": 24,
"x": 0,
"y": 37
"y": 39
},
"id": 619,
"options": {
Expand Down Expand Up @@ -1412,7 +1418,7 @@
"h": 16,
"w": 8,
"x": 0,
"y": 41
"y": 43
},
"id": 621,
"options": {
Expand Down Expand Up @@ -1563,7 +1569,7 @@
"h": 16,
"w": 8,
"x": 8,
"y": 41
"y": 43
},
"id": 623,
"options": {
Expand Down Expand Up @@ -1716,7 +1722,7 @@
"h": 16,
"w": 8,
"x": 16,
"y": 41
"y": 43
},
"id": 625,
"options": {
Expand Down Expand Up @@ -4126,5 +4132,5 @@
"timezone": "",
"title": "ONTAP: Datacenter",
"uid": "cdot-datacenter",
"version": 2
"version": 3
}
Loading

0 comments on commit 57f80d4

Please sign in to comment.