Skip to content

Commit

Permalink
disk usage should be per node (#360)
Browse files Browse the repository at this point in the history
This series set the disk pie-chart usage to be per node, so the repeated
pannel, would show the per server usage.

Signed-off-by: Amnon Heiman <[email protected]>
  • Loading branch information
amnonh committed Aug 12, 2018
1 parent 3b9e36a commit 217bd65
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions grafana/scylla-dash-per-machine.2.3.template.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"height": "250px",
"targets": [
{
"expr": "sum(node_filesystem_avail{mountpoint=\"$mount_point\"})",
"expr": "sum(node_filesystem_avail{mountpoint=\"$mount_point\", instance=~\"$node\"})",
"interval": "",
"intervalFactor": 1,
"legendFormat": "Free",
Expand All @@ -30,7 +30,7 @@
"step": 7200
},
{
"expr": "(sum(node_filesystem_size{mountpoint=\"$mount_point\"})-sum(node_filesystem_avail{mountpoint=\"$mount_point\"}))",
"expr": "(sum(node_filesystem_size{mountpoint=\"$mount_point\", instance=~\"$node\"})-sum(node_filesystem_avail{mountpoint=\"$mount_point\", instance=~\"$node\"}))",
"intervalFactor": 1,
"legendFormat": "Used",
"refId": "B",
Expand Down
4 changes: 2 additions & 2 deletions grafana/scylla-dash-per-machine.master.template.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"height": "250px",
"targets": [
{
"expr": "sum(node_filesystem_avail{mountpoint=\"$mount_point\"})",
"expr": "sum(node_filesystem_avail{mountpoint=\"$mount_point\", instance=~\"$node\"})",
"interval": "",
"intervalFactor": 1,
"legendFormat": "Free",
Expand All @@ -30,7 +30,7 @@
"step": 7200
},
{
"expr": "(sum(node_filesystem_size{mountpoint=\"$mount_point\"})-sum(node_filesystem_avail{mountpoint=\"$mount_point\"}))",
"expr": "(sum(node_filesystem_size{mountpoint=\"$mount_point\", instance=~\"$node\"})-sum(node_filesystem_avail{mountpoint=\"$mount_point\", instance=~\"$node\"}))",
"intervalFactor": 1,
"legendFormat": "Used",
"refId": "B",
Expand Down

0 comments on commit 217bd65

Please sign in to comment.