Skip to content

Commit

Permalink
Update node metric names at several dashboards
Browse files Browse the repository at this point in the history
  • Loading branch information
frodenas committed Jun 19, 2018
1 parent f26e6be commit a2d769c
Show file tree
Hide file tree
Showing 8 changed files with 408 additions and 141 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1940,7 +1940,7 @@
"steppedLine": false,
"targets": [
{
"expr": "irate(node_network_receive_bytes{device=\"eth0\"}[5m]) *on(instance) group_left(bosh_job_ip) node_role{bosh_deployment=~\"$bosh_deployment\", bosh_job_name=\"worker\"}",
"expr": "irate(node_network_receive_bytes_total{device=\"eth0\"}[5m]) *on(instance) group_left(bosh_job_ip) node_role{bosh_deployment=~\"$bosh_deployment\", bosh_job_name=\"worker\"}",
"format": "time_series",
"interval": "",
"intervalFactor": 2,
Expand All @@ -1949,7 +1949,7 @@
"step": 20
},
{
"expr": "irate(node_network_transmit_bytes{device=\"eth0\"}[5m]) *on(instance) group_left(bosh_job_ip) node_role{bosh_deployment=~\"$bosh_deployment\", bosh_job_name=\"worker\"}",
"expr": "irate(node_network_transmit_bytes_total{device=\"eth0\"}[5m]) *on(instance) group_left(bosh_job_ip) node_role{bosh_deployment=~\"$bosh_deployment\", bosh_job_name=\"worker\"}",
"format": "time_series",
"intervalFactor": 2,
"legendFormat": "{{bosh_job_ip}}",
Expand Down
2 changes: 1 addition & 1 deletion jobs/mysql_dashboards/templates/mysql_overview.json
Original file line number Diff line number Diff line change
Expand Up @@ -1735,7 +1735,7 @@
"steppedLine": false,
"targets": [
{
"expr": "node_memory_MemTotal{instance=\"$host\"}",
"expr": "node_memory_MemTotal_bytes{instance=\"$host\"}",
"intervalFactor": 2,
"legendFormat": "System Memory",
"refId": "G",
Expand Down
91 changes: 66 additions & 25 deletions jobs/system_dashboards/templates/bosh_system_disk_performance.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"type": "grafana",
"id": "grafana",
"name": "Grafana",
"version": "5.0.4"
"version": "5.1.4"
},
{
"type": "panel",
Expand Down Expand Up @@ -46,7 +46,7 @@
"gnetId": null,
"graphTooltip": 0,
"id": null,
"iteration": 1523184225441,
"iteration": 1529440872935,
"links": [
{
"asDropdown": true,
Expand Down Expand Up @@ -121,7 +121,8 @@
"calculatedInterval": "2m",
"datasourceErrors": {},
"errors": {},
"expr": "(rate(node_disk_read_time_ms{device=~\"$device\", instance=~\"$host(:[0-9]+)?\"}[$interval]) / rate(node_disk_reads_completed{device=~\"$device\", instance=~\"$host(:[0-9]+)?\"}[$interval])) or (irate(node_disk_read_time_ms{device=~\"$device\", instance=~\"$host(:[0-9]+)?\"}[5m]) / irate(node_disk_reads_completed{device=~\"$device\", instance=~\"$host(:[0-9]+)?\"}[5m]))",
"expr": "(rate(node_disk_read_time_seconds_total{device=~\"$device\", instance=~\"$host(:[0-9]+)?\"}[$interval]) / rate(node_disk_reads_completed_total{device=~\"$device\", instance=~\"$host(:[0-9]+)?\"}[$interval])) or (irate(node_disk_read_time_seconds_total{device=~\"$device\", instance=~\"$host(:[0-9]+)?\"}[5m]) / irate(node_disk_reads_completed_total{device=~\"$device\", instance=~\"$host(:[0-9]+)?\"}[5m]))",
"format": "time_series",
"interval": "$interval",
"intervalFactor": 1,
"legendFormat": "Read: {{ device }}",
Expand All @@ -134,7 +135,8 @@
"calculatedInterval": "2m",
"datasourceErrors": {},
"errors": {},
"expr": "(rate(node_disk_write_time_ms{device=~\"$device\", instance=~\"$host(:[0-9]+)?\"}[$interval]) / rate(node_disk_writes_completed{device=~\"$device\", instance=~\"$host(:[0-9]+)?\"}[$interval])) or (irate(node_disk_write_time_ms{device=~\"$device\", instance=~\"$host(:[0-9]+)?\"}[5m]) / irate(node_disk_writes_completed{device=~\"$device\", instance=~\"$host(:[0-9]+)?\"}[5m]))",
"expr": "(rate(node_disk_write_time_seconds_total{device=~\"$device\", instance=~\"$host(:[0-9]+)?\"}[$interval]) / rate(node_disk_writes_completed_total{device=~\"$device\", instance=~\"$host(:[0-9]+)?\"}[$interval])) or (irate(node_disk_write_time_seconds_total{device=~\"$device\", instance=~\"$host(:[0-9]+)?\"}[5m]) / irate(node_disk_writes_completed_total{device=~\"$device\", instance=~\"$host(:[0-9]+)?\"}[5m]))",
"format": "time_series",
"interval": "$interval",
"intervalFactor": 1,
"legendFormat": "Write: {{ device }}",
Expand Down Expand Up @@ -165,22 +167,26 @@
},
"yaxes": [
{
"format": "ms",
"format": "s",
"label": "",
"logBase": 2,
"max": null,
"min": 0,
"show": true
},
{
"format": "ms",
"format": "s",
"label": "",
"logBase": 1,
"max": null,
"min": 0,
"show": true
}
]
],
"yaxis": {
"align": false,
"alignLevel": null
}
},
{
"aliasColors": {},
Expand Down Expand Up @@ -233,7 +239,8 @@
"calculatedInterval": "2m",
"datasourceErrors": {},
"errors": {},
"expr": "rate(node_disk_reads_completed{device=~\"$device\", instance=~\"$host(:[0-9]+)?\"}[$interval]) or irate(node_disk_reads_completed{device=~\"$device\", instance=~\"$host(:[0-9]+)?\"}[5m])",
"expr": "rate(node_disk_reads_completed_total{device=~\"$device\", instance=~\"$host(:[0-9]+)?\"}[$interval]) or irate(node_disk_reads_completed_total{device=~\"$device\", instance=~\"$host(:[0-9]+)?\"}[5m])",
"format": "time_series",
"interval": "$interval",
"intervalFactor": 1,
"legendFormat": "Read: {{ device }}",
Expand All @@ -246,7 +253,8 @@
"calculatedInterval": "2m",
"datasourceErrors": {},
"errors": {},
"expr": "rate(node_disk_writes_completed{device=~\"$device\", instance=~\"$host(:[0-9]+)?\"}[$interval]) or irate(node_disk_writes_completed{device=~\"$device\", instance=~\"$host(:[0-9]+)?\"}[5m])",
"expr": "rate(node_disk_writes_completed_total{device=~\"$device\", instance=~\"$host(:[0-9]+)?\"}[$interval]) or irate(node_disk_writes_completed_total{device=~\"$device\", instance=~\"$host(:[0-9]+)?\"}[5m])",
"format": "time_series",
"interval": "$interval",
"intervalFactor": 1,
"legendFormat": "Write: {{ device }}",
Expand Down Expand Up @@ -292,7 +300,11 @@
"min": 0,
"show": true
}
]
],
"yaxis": {
"align": false,
"alignLevel": null
}
},
{
"aliasColors": {},
Expand Down Expand Up @@ -345,7 +357,8 @@
"calculatedInterval": "2m",
"datasourceErrors": {},
"errors": {},
"expr": "rate(node_disk_bytes_read{device=~\"$device\", instance=~\"$host(:[0-9]+)?\"}[$interval]) or irate(node_disk_bytes_read{device=~\"$device\", instance=~\"$host(:[0-9]+)?\"}[5m])",
"expr": "rate(node_disk_read_bytes_total{device=~\"$device\", instance=~\"$host(:[0-9]+)?\"}[$interval]) or irate(node_disk_read_bytes_total{device=~\"$device\", instance=~\"$host(:[0-9]+)?\"}[5m])",
"format": "time_series",
"interval": "$interval",
"intervalFactor": 1,
"legendFormat": "Read: {{ device }}",
Expand All @@ -358,7 +371,8 @@
"calculatedInterval": "2m",
"datasourceErrors": {},
"errors": {},
"expr": "rate(node_disk_bytes_written{device=~\"$device\", instance=~\"$host(:[0-9]+)?\"}[$interval]) or irate(node_disk_bytes_written{device=~\"$device\", instance=~\"$host(:[0-9]+)?\"}[5m])",
"expr": "rate(node_disk_written_bytes_total{device=~\"$device\", instance=~\"$host(:[0-9]+)?\"}[$interval]) or irate(node_disk_written_bytes_total{device=~\"$device\", instance=~\"$host(:[0-9]+)?\"}[5m])",
"format": "time_series",
"interval": "$interval",
"intervalFactor": 1,
"legendFormat": "Write: {{ device }}",
Expand Down Expand Up @@ -404,7 +418,11 @@
"min": 0,
"show": true
}
]
],
"yaxis": {
"align": false,
"alignLevel": null
}
},
{
"aliasColors": {},
Expand Down Expand Up @@ -455,7 +473,8 @@
"calculatedInterval": "2m",
"datasourceErrors": {},
"errors": {},
"expr": "rate(node_disk_read_time_ms{device=~\"$device\", instance=~\"$host(:[0-9]+)?\"}[$interval])/1000 or irate(node_disk_read_time_ms{device=~\"$device\", instance=~\"$host(:[0-9]+)?\"}[5m])/1000",
"expr": "rate(node_disk_read_time_seconds_total{device=~\"$device\", instance=~\"$host(:[0-9]+)?\"}[$interval])/1000 or irate(node_disk_read_time_seconds_total{device=~\"$device\", instance=~\"$host(:[0-9]+)?\"}[5m])/1000",
"format": "time_series",
"interval": "$interval",
"intervalFactor": 1,
"legendFormat": "Read: {{ device }}",
Expand All @@ -468,7 +487,8 @@
"calculatedInterval": "2m",
"datasourceErrors": {},
"errors": {},
"expr": "rate(node_disk_write_time_ms{device=~\"$device\", instance=~\"$host(:[0-9]+)?\"}[$interval])/1000 or irate(node_disk_write_time_ms{device=~\"$device\", instance=~\"$host(:[0-9]+)?\"}[5m])/1000",
"expr": "rate(node_disk_write_time_seconds_total{device=~\"$device\", instance=~\"$host(:[0-9]+)?\"}[$interval])/1000 or irate(node_disk_write_time_seconds_total{device=~\"$device\", instance=~\"$host(:[0-9]+)?\"}[5m])/1000",
"format": "time_series",
"interval": "$interval",
"intervalFactor": 1,
"legendFormat": "Write: {{ device }}",
Expand Down Expand Up @@ -514,7 +534,11 @@
"min": 0,
"show": true
}
]
],
"yaxis": {
"align": false,
"alignLevel": null
}
},
{
"aliasColors": {},
Expand Down Expand Up @@ -567,7 +591,8 @@
"calculatedInterval": "2m",
"datasourceErrors": {},
"errors": {},
"expr": "rate(node_disk_io_time_ms{device=~\"$device\", instance=~\"$host(:[0-9]+)?\"}[$interval])/1000 or irate(node_disk_io_time_ms{device=~\"$device\", instance=~\"$host(:[0-9]+)?\"}[5m])/1000",
"expr": "rate(node_disk_io_time_seconds_total{device=~\"$device\", instance=~\"$host(:[0-9]+)?\"}[$interval])/1000 or irate(node_disk_io_time_seconds_total{device=~\"$device\", instance=~\"$host(:[0-9]+)?\"}[5m])/1000",
"format": "time_series",
"interval": "$interval",
"intervalFactor": 1,
"legendFormat": "{{ device }}",
Expand Down Expand Up @@ -613,7 +638,11 @@
"min": 0,
"show": true
}
]
],
"yaxis": {
"align": false,
"alignLevel": null
}
},
{
"aliasColors": {},
Expand Down Expand Up @@ -664,7 +693,8 @@
"calculatedInterval": "2m",
"datasourceErrors": {},
"errors": {},
"expr": "(1 + rate(node_disk_reads_merged{device=~\"$device\", instance=~\"$host(:[0-9]+)?\"}[$interval]) / rate(node_disk_reads_completed{device=~\"$device\", instance=~\"$host(:[0-9]+)?\"}[$interval])) or (1 + irate(node_disk_reads_merged{device=~\"$device\", instance=~\"$host(:[0-9]+)?\"}[5m]) / irate(node_disk_reads_completed{device=~\"$device\", instance=~\"$host(:[0-9]+)?\"}[5m]))",
"expr": "(1 + rate(node_disk_reads_merged_total{device=~\"$device\", instance=~\"$host(:[0-9]+)?\"}[$interval]) / rate(node_disk_reads_completed_total{device=~\"$device\", instance=~\"$host(:[0-9]+)?\"}[$interval])) or (1 + irate(node_disk_reads_merged_total{device=~\"$device\", instance=~\"$host(:[0-9]+)?\"}[5m]) / irate(node_disk_reads_completed_total{device=~\"$device\", instance=~\"$host(:[0-9]+)?\"}[5m]))",
"format": "time_series",
"interval": "$interval",
"intervalFactor": 1,
"legendFormat": "Read Ratio: {{ device }}",
Expand All @@ -677,7 +707,8 @@
"calculatedInterval": "2m",
"datasourceErrors": {},
"errors": {},
"expr": "(1 + rate(node_disk_writes_merged{device=~\"$device\", instance=~\"$host(:[0-9]+)?\"}[$interval]) / rate(node_disk_writes_completed{device=~\"$device\", instance=~\"$host(:[0-9]+)?\"}[$interval])) or (1 + irate(node_disk_writes_merged{device=~\"$device\", instance=~\"$host(:[0-9]+)?\"}[5m]) / irate(node_disk_writes_completed{device=~\"$device\", instance=~\"$host(:[0-9]+)?\"}[5m]))",
"expr": "(1 + rate(node_disk_writes_merged_total{device=~\"$device\", instance=~\"$host(:[0-9]+)?\"}[$interval]) / rate(node_disk_writes_completed_total{device=~\"$device\", instance=~\"$host(:[0-9]+)?\"}[$interval])) or (1 + irate(node_disk_writes_merged_total{device=~\"$device\", instance=~\"$host(:[0-9]+)?\"}[5m]) / irate(node_disk_writes_completed_total{device=~\"$device\", instance=~\"$host(:[0-9]+)?\"}[5m]))",
"format": "time_series",
"interval": "$interval",
"intervalFactor": 1,
"legendFormat": "Write Ratio: {{ device }}",
Expand Down Expand Up @@ -723,7 +754,11 @@
"min": 0,
"show": true
}
]
],
"yaxis": {
"align": false,
"alignLevel": null
}
},
{
"aliasColors": {
Expand Down Expand Up @@ -777,7 +812,8 @@
"calculatedInterval": "2m",
"datasourceErrors": {},
"errors": {},
"expr": "rate(node_disk_sectors_read{instance=~\"$host(:[0-9]+)?\", device=~\"$device\"}[$interval]) * 512 / rate(node_disk_reads_completed{instance=~\"$host(:[0-9]+)?\", device=~\"$device\"}[$interval]) or irate(node_disk_sectors_read{instance=~\"$host(:[0-9]+)?\", device=~\"$device\"}[5m]) * 512 / irate(node_disk_reads_completed{instance=~\"$host(:[0-9]+)?\", device=~\"$device\"}[5m]) ",
"expr": "rate(node_disk_read_bytes_total{instance=~\"$host(:[0-9]+)?\", device=~\"$device\"}[$interval]) / 512 / rate(node_disk_reads_completed_total{instance=~\"$host(:[0-9]+)?\", device=~\"$device\"}[$interval]) or irate(node_disk_read_bytes_total{instance=~\"$host(:[0-9]+)?\", device=~\"$device\"}[5m]) / 512 / irate(node_disk_reads_completed_total{instance=~\"$host(:[0-9]+)?\", device=~\"$device\"}[5m]) ",
"format": "time_series",
"interval": "$interval",
"intervalFactor": 1,
"legendFormat": "Read size: {{ device }}",
Expand All @@ -790,7 +826,8 @@
"calculatedInterval": "2m",
"datasourceErrors": {},
"errors": {},
"expr": "rate(node_disk_sectors_written{instance=~\"$host(:[0-9]+)?\", device=~\"$device\"}[$interval]) * 512 / rate(node_disk_writes_completed{instance=~\"$host(:[0-9]+)?\", device=~\"$device\"}[$interval]) or irate(node_disk_sectors_written{instance=~\"$host(:[0-9]+)?\", device=~\"$device\"}[5m]) * 512 / irate(node_disk_writes_completed{instance=~\"$host(:[0-9]+)?\", device=~\"$device\"}[5m]) ",
"expr": "rate(node_disk_written_bytes_total{instance=~\"$host(:[0-9]+)?\", device=~\"$device\"}[$interval]) / 512 / rate(node_disk_writes_completed_total{instance=~\"$host(:[0-9]+)?\", device=~\"$device\"}[$interval]) or irate(node_disk_written_bytes_total{instance=~\"$host(:[0-9]+)?\", device=~\"$device\"}[5m]) / 512 / irate(node_disk_writes_completed_total{instance=~\"$host(:[0-9]+)?\", device=~\"$device\"}[5m]) ",
"format": "time_series",
"interval": "$interval",
"intervalFactor": 1,
"legendFormat": "Write size: {{ device }}",
Expand Down Expand Up @@ -836,7 +873,11 @@
"min": 0,
"show": true
}
]
],
"yaxis": {
"align": false,
"alignLevel": null
}
}
],
"refresh": "30s",
Expand Down Expand Up @@ -1021,7 +1062,7 @@
"multiFormat": "regex values",
"name": "device",
"options": [],
"query": "label_values(node_disk_reads_completed{instance=~\"$host(:[0-9]+)?\", device!~\"dm-.+\"}, device)",
"query": "label_values(node_disk_reads_completed_total{instance=~\"$host(:[0-9]+)?\", device!~\"dm-.+\"}, device)",
"refresh": 1,
"refresh_on_load": false,
"regex": "",
Expand Down
18 changes: 12 additions & 6 deletions jobs/system_dashboards/templates/bosh_system_disk_space.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"type": "grafana",
"id": "grafana",
"name": "Grafana",
"version": "5.0.4"
"version": "5.1.4"
},
{
"type": "panel",
Expand Down Expand Up @@ -46,7 +46,7 @@
"gnetId": null,
"graphTooltip": 0,
"id": null,
"iteration": 1523184285959,
"iteration": 1529440633914,
"links": [
{
"asDropdown": true,
Expand Down Expand Up @@ -134,7 +134,8 @@
"calculatedInterval": "2m",
"datasourceErrors": {},
"errors": {},
"expr": "node_filesystem_size{instance=~\"$host(:[0-9]+)?\", fstype!~\"rootfs|selinuxfs|autofs|rpc_pipefs|tmpfs\", mountpoint=\"$mountpoint\"} - node_filesystem_avail{instance=~\"$host(:[0-9]+)?\", fstype!~\"rootfs|selinuxfs|autofs|rpc_pipefs|tmpfs\", mountpoint=\"$mountpoint\"}",
"expr": "node_filesystem_size_bytes{instance=~\"$host(:[0-9]+)?\", fstype!~\"rootfs|selinuxfs|autofs|rpc_pipefs|tmpfs\", mountpoint=\"$mountpoint\"} - node_filesystem_avail_bytes{instance=~\"$host(:[0-9]+)?\", fstype!~\"rootfs|selinuxfs|autofs|rpc_pipefs|tmpfs\", mountpoint=\"$mountpoint\"}",
"format": "time_series",
"hide": false,
"interval": "$interval",
"intervalFactor": 1,
Expand All @@ -147,7 +148,8 @@
"calculatedInterval": "2m",
"datasourceErrors": {},
"errors": {},
"expr": "node_filesystem_avail{instance=~\"$host(:[0-9]+)?\", fstype!~\"rootfs|selinuxfs|autofs|rpc_pipefs|tmpfs\", mountpoint=\"$mountpoint\"}",
"expr": "node_filesystem_avail_bytes{instance=~\"$host(:[0-9]+)?\", fstype!~\"rootfs|selinuxfs|autofs|rpc_pipefs|tmpfs\", mountpoint=\"$mountpoint\"}",
"format": "time_series",
"interval": "$interval",
"intervalFactor": 1,
"legendFormat": "Free (device {{ device }}, {{ fstype }})",
Expand Down Expand Up @@ -192,7 +194,11 @@
"min": null,
"show": true
}
]
],
"yaxis": {
"align": false,
"alignLevel": null
}
}
],
"refresh": "30s",
Expand Down Expand Up @@ -378,7 +384,7 @@
"multiFormat": "regex values",
"name": "mountpoint",
"options": [],
"query": "label_values(node_filesystem_avail{instance=~\"$host(:[0-9]+)?\", fstype!~\"rootfs|selinuxfs|autofs|rpc_pipefs|tmpfs\"}, mountpoint)",
"query": "label_values(node_filesystem_avail_bytes{instance=~\"$host(:[0-9]+)?\", fstype!~\"rootfs|selinuxfs|autofs|rpc_pipefs|tmpfs\"}, mountpoint)",
"refresh": 1,
"refresh_on_load": false,
"regex": "",
Expand Down
Loading

0 comments on commit a2d769c

Please sign in to comment.