Skip to content
This repository has been archived by the owner on Apr 12, 2024. It is now read-only.

Update panel type, add hostname & cluster dropdown, fix jsonnet typo #6

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
.DS_Store
.gitignore
.vscode/settings.json
vsan-prometheus-servicediscovery/bearer-token
vsan-prometheus-servicediscovery/vsan_sd.json
vsan-prometheus-setup/__pycache__/vsanapiutils.cpython-310.pyc
vsan-prometheus-setup/__pycache__/vsanmgmtObjects.cpython-310.pyc
75 changes: 64 additions & 11 deletions grafana-dashboard/dashboards/grafana-dashboard-cpu.json
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@
"targets": [
{
"expr": "topk(5, rate(vmware_esx_world_usedtime_seconds_total{subsystem=\"DOM\"}[1m]) / rate(vmware_esx_world_uptime_seconds_total{subsystem=\"DOM\"}[1m])) * 100",
"legendFormat": "{{hostname}}",
"refId": "A"
}
],
Expand Down Expand Up @@ -114,7 +115,7 @@
"dashLength": 10,
"dashes": false,
"datasource": null,
"expr": "topk(5, rate(vmware_esx_world_readytime_seconds_total{subsystem=\"DOM\"}[1m]) / rate(vmware_esx_world_uptime_seconds_total{subsystem=\"DOM\"}[1m])) * 100",
"expr": "topk(5, rate(vmware_esx_world_usedtime_seconds_total{subsystem=\"DOM\"}[1m]) / rate(vmware_esx_world_uptime_seconds_total{subsystem=\"DOM\"}[1m])) * 100",
"fill": 1,
"fillGradient": 0,
"format": "percent",
Expand Down Expand Up @@ -151,7 +152,8 @@
"steppedLine": false,
"targets": [
{
"expr": "topk(5, rate(vmware_esx_world_readytime_seconds_total{subsystem=\"DOM\"}[1m]) / rate(vmware_esx_world_uptime_seconds_total{subsystem=\"DOM\"}[1m])) * 100",
"expr": "topk(5, rate(vmware_esx_world_usedtime_seconds_total{subsystem=\"DOM\"}[1m]) / rate(vmware_esx_world_uptime_seconds_total{subsystem=\"DOM\"}[1m])) * 100",
"legendFormat": "{{hostname}}",
"refId": "A"
}
],
Expand Down Expand Up @@ -242,6 +244,7 @@
"targets": [
{
"expr": "topk(5, rate(vmware_esx_world_usedtime_seconds_total{subsystem=\"LLOG\"}[1m]) / rate(vmware_esx_world_uptime_seconds_total{subsystem=\"LLOG\"}[1m])) * 100",
"legendFormat": "{{hostname}}",
"refId": "A"
}
],
Expand Down Expand Up @@ -294,7 +297,7 @@
"dashLength": 10,
"dashes": false,
"datasource": null,
"expr": "topk(5, rate(vmware_esx_world_readytime_seconds_total{subsystem=\"LLOG\"}[1m]) / rate(vmware_esx_world_uptime_seconds_total{subsystem=\"LLOG\"}[1m])) * 100",
"expr": "topk(5, rate(vmware_esx_world_usedtime_seconds_total{subsystem=\"LLOG\"}[1m]) / rate(vmware_esx_world_uptime_seconds_total{subsystem=\"LLOG\"}[1m])) * 100",
"fill": 1,
"fillGradient": 0,
"format": "percent",
Expand Down Expand Up @@ -331,7 +334,8 @@
"steppedLine": false,
"targets": [
{
"expr": "topk(5, rate(vmware_esx_world_readytime_seconds_total{subsystem=\"LLOG\"}[1m]) / rate(vmware_esx_world_uptime_seconds_total{subsystem=\"LLOG\"}[1m])) * 100",
"expr": "topk(5, rate(vmware_esx_world_usedtime_seconds_total{subsystem=\"LLOG\"}[1m]) / rate(vmware_esx_world_uptime_seconds_total{subsystem=\"LLOG\"}[1m])) * 100",
"legendFormat": "{{hostname}}",
"refId": "A"
}
],
Expand Down Expand Up @@ -422,6 +426,7 @@
"targets": [
{
"expr": "topk(5, rate(vmware_esx_world_usedtime_seconds_total{subsystem=\"PLOG\"}[1m]) / rate(vmware_esx_world_uptime_seconds_total{subsystem=\"PLOG\"}[1m])) * 100",
"legendFormat": "{{hostname}}",
"refId": "A"
}
],
Expand Down Expand Up @@ -474,7 +479,7 @@
"dashLength": 10,
"dashes": false,
"datasource": null,
"expr": "topk(5, rate(vmware_esx_world_readytime_seconds_total{subsystem=\"PLOG\"}[1m]) / rate(vmware_esx_world_uptime_seconds_total{subsystem=\"PLOG\"}[1m])) * 100",
"expr": "topk(5, rate(vmware_esx_world_usedtime_seconds_total{subsystem=\"PLOG\"}[1m]) / rate(vmware_esx_world_uptime_seconds_total{subsystem=\"PLOG\"}[1m])) * 100",
"fill": 1,
"fillGradient": 0,
"format": "percent",
Expand Down Expand Up @@ -511,7 +516,8 @@
"steppedLine": false,
"targets": [
{
"expr": "topk(5, rate(vmware_esx_world_readytime_seconds_total{subsystem=\"PLOG\"}[1m]) / rate(vmware_esx_world_uptime_seconds_total{subsystem=\"PLOG\"}[1m])) * 100",
"expr": "topk(5, rate(vmware_esx_world_usedtime_seconds_total{subsystem=\"PLOG\"}[1m]) / rate(vmware_esx_world_uptime_seconds_total{subsystem=\"PLOG\"}[1m])) * 100",
"legendFormat": "{{hostname}}",
"refId": "A"
}
],
Expand Down Expand Up @@ -602,6 +608,7 @@
"targets": [
{
"expr": "topk(5, rate(vmware_esx_world_usedtime_seconds_total{subsystem=\"Network\"}[1m]) / rate(vmware_esx_world_uptime_seconds_total{subsystem=\"Network\"}[1m])) * 100",
"legendFormat": "{{hostname}}",
"refId": "A"
}
],
Expand Down Expand Up @@ -654,7 +661,7 @@
"dashLength": 10,
"dashes": false,
"datasource": null,
"expr": "topk(5, rate(vmware_esx_world_readytime_seconds_total{subsystem=\"Network\"}[1m]) / rate(vmware_esx_world_uptime_seconds_total{subsystem=\"Network\"}[1m])) * 100",
"expr": "topk(5, rate(vmware_esx_world_usedtime_seconds_total{subsystem=\"Network\"}[1m]) / rate(vmware_esx_world_uptime_seconds_total{subsystem=\"Network\"}[1m])) * 100",
"fill": 1,
"fillGradient": 0,
"format": "percent",
Expand Down Expand Up @@ -691,7 +698,8 @@
"steppedLine": false,
"targets": [
{
"expr": "topk(5, rate(vmware_esx_world_readytime_seconds_total{subsystem=\"Network\"}[1m]) / rate(vmware_esx_world_uptime_seconds_total{subsystem=\"Network\"}[1m])) * 100",
"expr": "topk(5, rate(vmware_esx_world_usedtime_seconds_total{subsystem=\"Network\"}[1m]) / rate(vmware_esx_world_uptime_seconds_total{subsystem=\"Network\"}[1m])) * 100",
"legendFormat": "{{hostname}}",
"refId": "A"
}
],
Expand Down Expand Up @@ -782,6 +790,7 @@
"targets": [
{
"expr": "topk(5, rate(vmware_esx_world_usedtime_seconds_total{subsystem=\"CMMDS\"}[1m]) / rate(vmware_esx_world_uptime_seconds_total{subsystem=\"CMMDS\"}[1m])) * 100",
"legendFormat": "{{hostname}}",
"refId": "A"
}
],
Expand Down Expand Up @@ -834,7 +843,7 @@
"dashLength": 10,
"dashes": false,
"datasource": null,
"expr": "topk(5, rate(vmware_esx_world_readytime_seconds_total{subsystem=\"CMMDS\"}[1m]) / rate(vmware_esx_world_uptime_seconds_total{subsystem=\"CMMDS\"}[1m])) * 100",
"expr": "topk(5, rate(vmware_esx_world_usedtime_seconds_total{subsystem=\"CMMDS\"}[1m]) / rate(vmware_esx_world_uptime_seconds_total{subsystem=\"CMMDS\"}[1m])) * 100",
"fill": 1,
"fillGradient": 0,
"format": "percent",
Expand Down Expand Up @@ -871,7 +880,8 @@
"steppedLine": false,
"targets": [
{
"expr": "topk(5, rate(vmware_esx_world_readytime_seconds_total{subsystem=\"CMMDS\"}[1m]) / rate(vmware_esx_world_uptime_seconds_total{subsystem=\"CMMDS\"}[1m])) * 100",
"expr": "topk(5, rate(vmware_esx_world_usedtime_seconds_total{subsystem=\"CMMDS\"}[1m]) / rate(vmware_esx_world_uptime_seconds_total{subsystem=\"CMMDS\"}[1m])) * 100",
"legendFormat": "{{hostname}}",
"refId": "A"
}
],
Expand Down Expand Up @@ -926,7 +936,50 @@
"vsan"
],
"templating": {
"list": [ ]
"list": [
{
"datasource": {
"type": "prometheus",
"uid": "MKCZcgjnz"
},
"definition": "label_values(cluster_name)",
"hide": 0,
"includeAll": false,
"multi": false,
"name": "Cluster",
"options": [ ],
"query": {
"query": "label_values(cluster_name)",
"refId": "StandardVariableQuery"
},
"refresh": 1,
"regex": "",
"skipUrlSync": false,
"sort": 1,
"type": "query"
},
{
"datasource": {
"type": "prometheus",
"uid": "MKCZcgjnz"
},
"definition": "label_values({cluster_name=~\"$Cluster\"},hostname)",
"hide": 0,
"includeAll": true,
"multi": true,
"name": "hostname",
"options": [ ],
"query": {
"query": "label_values({cluster_name=~\"$Cluster\"},hostname)",
"refId": "StandardVariableQuery"
},
"refresh": 1,
"regex": "",
"skipUrlSync": false,
"sort": 1,
"type": "query"
}
]
},
"time": {
"from": "now-1h",
Expand Down
Loading