Skip to content

Commit

Permalink
Use last value over a 24h period for info metrics now that they are b…
Browse files Browse the repository at this point in the history
…eing cached (#37)

* Use last value over 24h for info metrics

* Fix last_over_time interval for node_is_offline
  • Loading branch information
mason359 authored Mar 22, 2023
1 parent 8b8603c commit 03a4fd8
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 16 deletions.
4 changes: 2 additions & 2 deletions grafana/provisioning/dashboards/qumulo/cluster.json
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@
},
"editorMode": "builder",
"exemplar": false,
"expr": "qumulo_info{instance=~\"$cluster\"}",
"expr": "last_over_time(qumulo_info{instance=~\"$cluster\"}[24h])",
"format": "table",
"instant": true,
"legendFormat": "__auto",
Expand Down Expand Up @@ -2051,6 +2051,6 @@
"timezone": "",
"title": "Cluster Overview",
"uid": "isJoSTGVz",
"version": 6,
"version": 2,
"weekStart": ""
}
23 changes: 9 additions & 14 deletions grafana/provisioning/dashboards/qumulo/node.json
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@
},
"editorMode": "builder",
"exemplar": false,
"expr": "qumulo_info{instance=~\"$cluster\"}",
"expr": "last_over_time(qumulo_info{instance=~\"$cluster\"}[24h])",
"format": "table",
"instant": true,
"legendFormat": "__auto",
Expand Down Expand Up @@ -318,7 +318,7 @@
},
"editorMode": "builder",
"exemplar": false,
"expr": "qumulo_node_info{instance=~\"$cluster\"}",
"expr": "last_over_time(qumulo_node_info{instance=~\"$cluster\"}[24h])",
"format": "table",
"instant": true,
"legendFormat": "{{node_model}}",
Expand All @@ -331,7 +331,7 @@
"uid": "${datasource}"
},
"editorMode": "builder",
"expr": "qumulo_quorum_node_is_offline{instance=~\"$cluster\"}",
"expr": "last_over_time(qumulo_quorum_node_is_offline{instance=~\"$cluster\"}[24h])",
"format": "table",
"hide": false,
"legendFormat": "__auto",
Expand Down Expand Up @@ -757,8 +757,7 @@
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
"color": "green"
}
]
}
Expand Down Expand Up @@ -850,8 +849,7 @@
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
"color": "green"
},
{
"color": "red",
Expand Down Expand Up @@ -917,8 +915,7 @@
"mode": "absolute",
"steps": [
{
"color": "red",
"value": null
"color": "red"
},
{
"color": "green",
Expand Down Expand Up @@ -1015,8 +1012,7 @@
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
"color": "green"
}
]
}
Expand Down Expand Up @@ -1104,8 +1100,7 @@
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
"color": "green"
}
]
}
Expand Down Expand Up @@ -1763,6 +1758,6 @@
"timezone": "",
"title": "Node Overview",
"uid": "R66fOPnVz",
"version": 18,
"version": 2,
"weekStart": ""
}

0 comments on commit 03a4fd8

Please sign in to comment.