Skip to content

Commit

Permalink
refactor: Update Aggr dashboard to sync with SM (#2568)
Browse files Browse the repository at this point in the history
* refactor: Update Aggr dashboard to sync with SM
  • Loading branch information
Hardikl authored Jan 3, 2024
1 parent c2e30ac commit 0421eeb
Show file tree
Hide file tree
Showing 2 changed files with 397 additions and 106 deletions.
126 changes: 92 additions & 34 deletions grafana/dashboards/cmode/aggregate.json
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,7 @@
},
"gridPos": {
"h": 5,
"w": 5,
"w": 4,
"x": 9,
"y": 1
},
Expand Down Expand Up @@ -383,6 +383,64 @@
"title": "Total Space",
"type": "stat"
},
{
"datasource": "${DS_PROMETHEUS}",
"description": "Space used or reserved in bytes. Includes volume guarantees and aggregate metadata..",
"fieldConfig": {
"defaults": {
"color": {
"mode": "thresholds"
},
"decimals": 2,
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "rgb(21, 118, 171)",
"value": null
}
]
},
"unit": "bytes"
},
"overrides": []
},
"gridPos": {
"h": 5,
"w": 4,
"x": 13,
"y": 1
},
"id": 811,
"options": {
"colorMode": "value",
"graphMode": "area",
"justifyMode": "auto",
"orientation": "horizontal",
"reduceOptions": {
"calcs": [
"lastNotNull"
],
"fields": "",
"values": false
},
"text": {},
"textMode": "auto"
},
"pluginVersion": "8.1.8",
"targets": [
{
"exemplar": false,
"expr": "sum(aggr_space_used{datacenter=~\"$Datacenter\",cluster=~\"$Cluster\",node=~\"$Node\",aggr=~\"$Aggregate\"})",
"interval": "",
"legendFormat": "",
"refId": "A"
}
],
"title": "Used and Reserved Space",
"type": "stat"
},
{
"datasource": "${DS_PROMETHEUS}",
"description": "Space available in bytes.",
Expand All @@ -408,8 +466,8 @@
},
"gridPos": {
"h": 5,
"w": 5,
"x": 14,
"w": 4,
"x": 17,
"y": 1
},
"id": 25,
Expand Down Expand Up @@ -468,8 +526,8 @@
},
"gridPos": {
"h": 5,
"w": 5,
"x": 19,
"w": 3,
"x": 21,
"y": 1
},
"id": 26,
Expand Down Expand Up @@ -2396,7 +2454,7 @@
"panels": [
{
"datasource": "${DS_PROMETHEUS}",
"description": "Storage efficiency ratio of space used.",
"description": "Storage efficiency ratio without snapshots and flexclones.",
"fieldConfig": {
"defaults": {
"color": {
Expand All @@ -2421,7 +2479,7 @@
"x": 0,
"y": 55
},
"id": 41,
"id": 45,
"options": {
"colorMode": "value",
"graphMode": "area",
Expand All @@ -2441,18 +2499,18 @@
"targets": [
{
"exemplar": false,
"expr": "sum(aggr_total_logical_used{datacenter=~\"$Datacenter\",cluster=~\"$Cluster\",aggr=~\"$Aggregate\"})/sum(aggr_total_physical_used{datacenter=~\"$Datacenter\",cluster=~\"$Cluster\",aggr=~\"$Aggregate\"})",
"expr": "sum(aggr_logical_used_wo_snapshots_flexclones{datacenter=~\"$Datacenter\",cluster=~\"$Cluster\",aggr=~\"$Aggregate\"})/sum(aggr_physical_used_wo_snapshots_flexclones{datacenter=~\"$Datacenter\",cluster=~\"$Cluster\",aggr=~\"$Aggregate\"})",
"interval": "",
"legendFormat": "",
"refId": "A"
}
],
"title": "Total",
"title": "Data Reduction",
"type": "stat"
},
{
"datasource": "${DS_PROMETHEUS}",
"description": "Storage efficiency ratio without snapshot.",
"description": "Storage efficiency ratio with flexclones.",
"fieldConfig": {
"defaults": {
"color": {
Expand Down Expand Up @@ -2504,12 +2562,12 @@
"refId": "A"
}
],
"title": "Total w/o Snapshots",
"title": "Data Reduction with FlexClones",
"type": "stat"
},
{
"datasource": "${DS_PROMETHEUS}",
"description": "Storage efficiency ratio without snapshots and flexclones.",
"description": "Storage efficiency ratio of total space used.",
"fieldConfig": {
"defaults": {
"color": {
Expand All @@ -2534,7 +2592,7 @@
"x": 16,
"y": 55
},
"id": 45,
"id": 41,
"options": {
"colorMode": "value",
"graphMode": "area",
Expand All @@ -2554,13 +2612,13 @@
"targets": [
{
"exemplar": false,
"expr": "sum(aggr_logical_used_wo_snapshots_flexclones{datacenter=~\"$Datacenter\",cluster=~\"$Cluster\",aggr=~\"$Aggregate\"})/sum(aggr_physical_used_wo_snapshots_flexclones{datacenter=~\"$Datacenter\",cluster=~\"$Cluster\",aggr=~\"$Aggregate\"})",
"expr": "sum(aggr_total_logical_used{datacenter=~\"$Datacenter\",cluster=~\"$Cluster\",aggr=~\"$Aggregate\"})/sum(aggr_total_physical_used{datacenter=~\"$Datacenter\",cluster=~\"$Cluster\",aggr=~\"$Aggregate\"})",
"interval": "",
"legendFormat": "",
"refId": "A"
}
],
"title": "Total w/o Snapshots & FlexClones",
"title": "Data Reduction with Snapshots & FlexClones",
"type": "stat"
},
{
Expand Down Expand Up @@ -2620,7 +2678,7 @@
"x": 0,
"y": 59
},
"id": 47,
"id": 55,
"options": {
"legend": {
"calcs": [
Expand All @@ -2639,18 +2697,18 @@
"targets": [
{
"exemplar": false,
"expr": "aggr_total_logical_used{datacenter=~\"$Datacenter\",cluster=~\"$Cluster\",node=~\"$Node\",aggr=~\"$Aggregate\"}",
"expr": "aggr_logical_used_wo_snapshots_flexclones{datacenter=~\"$Datacenter\",cluster=~\"$Cluster\",node=~\"$Node\",aggr=~\"$Aggregate\"}",
"interval": "",
"legendFormat": "{{node}} - {{aggr}}",
"refId": "A"
}
],
"title": "Total Logical Used",
"title": "Logical Used",
"type": "timeseries"
},
{
"datasource": "${DS_PROMETHEUS}",
"description": "Total Physical Used.",
"description": "Total data deduction physical used without snapshots and Flexclones.",
"fieldConfig": {
"defaults": {
"color": {
Expand Down Expand Up @@ -2705,7 +2763,7 @@
"x": 12,
"y": 59
},
"id": 49,
"id": 57,
"options": {
"legend": {
"calcs": [
Expand All @@ -2724,18 +2782,18 @@
"targets": [
{
"exemplar": false,
"expr": "aggr_total_physical_used{datacenter=~\"$Datacenter\",cluster=~\"$Cluster\",node=~\"$Node\",aggr=~\"$Aggregate\"}",
"expr": "aggr_physical_used_wo_snapshots_flexclones{datacenter=~\"$Datacenter\",cluster=~\"$Cluster\",node=~\"$Node\",aggr=~\"$Aggregate\"}",
"interval": "",
"legendFormat": "{{node}} - {{aggr}}",
"refId": "A"
}
],
"title": "Total Physical Used",
"title": "Physical Used",
"type": "timeseries"
},
{
"datasource": "${DS_PROMETHEUS}",
"description": "Logical used.",
"description": "Logical used with flexclones.",
"fieldConfig": {
"defaults": {
"color": {
Expand Down Expand Up @@ -2815,12 +2873,12 @@
"refId": "A"
}
],
"title": "Logical Used w/o Snapshots",
"title": "Logical Used with FlexClones",
"type": "timeseries"
},
{
"datasource": "${DS_PROMETHEUS}",
"description": "Total Data Reduction Physical Used Without Snapshots.",
"description": "Total Data Reduction Physical Used with FlexClones.",
"fieldConfig": {
"defaults": {
"color": {
Expand Down Expand Up @@ -2900,12 +2958,12 @@
"refId": "A"
}
],
"title": "Physical Used w/o Snapshots",
"title": "Physical Used with FlexClones",
"type": "timeseries"
},
{
"datasource": "${DS_PROMETHEUS}",
"description": "Logical used.",
"description": "Logical Used with Snapshots & flexClones.",
"fieldConfig": {
"defaults": {
"color": {
Expand Down Expand Up @@ -2960,7 +3018,7 @@
"x": 0,
"y": 75
},
"id": 55,
"id": 47,
"options": {
"legend": {
"calcs": [
Expand All @@ -2979,18 +3037,18 @@
"targets": [
{
"exemplar": false,
"expr": "aggr_logical_used_wo_snapshots_flexclones{datacenter=~\"$Datacenter\",cluster=~\"$Cluster\",node=~\"$Node\",aggr=~\"$Aggregate\"}",
"expr": "aggr_total_logical_used{datacenter=~\"$Datacenter\",cluster=~\"$Cluster\",node=~\"$Node\",aggr=~\"$Aggregate\"}",
"interval": "",
"legendFormat": "{{node}} - {{aggr}}",
"refId": "A"
}
],
"title": "Logical Used w/o Snapshots & FlexClones",
"title": "Logical Used with Snapshots & FlexClones",
"type": "timeseries"
},
{
"datasource": "${DS_PROMETHEUS}",
"description": "Total data deduction physical used without snapshots and Flexclones.",
"description": "Physical Used with Snapshots & FlexClones.",
"fieldConfig": {
"defaults": {
"color": {
Expand Down Expand Up @@ -3045,7 +3103,7 @@
"x": 12,
"y": 75
},
"id": 57,
"id": 49,
"options": {
"legend": {
"calcs": [
Expand All @@ -3064,13 +3122,13 @@
"targets": [
{
"exemplar": false,
"expr": "aggr_physical_used_wo_snapshots_flexclones{datacenter=~\"$Datacenter\",cluster=~\"$Cluster\",node=~\"$Node\",aggr=~\"$Aggregate\"}",
"expr": "aggr_space_physical_used{datacenter=~\"$Datacenter\",cluster=~\"$Cluster\",node=~\"$Node\",aggr=~\"$Aggregate\"}",
"interval": "",
"legendFormat": "{{node}} - {{aggr}}",
"refId": "A"
}
],
"title": "Physical Used w/o Snapshots & FlexClones",
"title": "Physical Used with Snapshots & FlexClones",
"type": "timeseries"
}
],
Expand Down
Loading

0 comments on commit 0421eeb

Please sign in to comment.