Skip to content
This repository has been archived by the owner on Mar 19, 2021. It is now read-only.

fixed dashboards and added new var -- node-exporter v0.16.0+ #57

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
118 changes: 94 additions & 24 deletions dist/dashboards/k8s-cluster.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,27 +5,46 @@
"type": "grafana",
"id": "grafana",
"name": "Grafana",
"version": "5.0.0-pre1"
"version": "5.1.2"
},
{
"type": "datasource",
"id": "prometheus",
"name": "Prometheus",
"version": "1.0.0"
"type": "panel",
"id": "graph",
"name": "Graph",
"version": "5.0.0"
},
{
"type": "panel",
"id": "singlestat",
"name": "Singlestat",
"version": ""
"version": "5.0.0"
},
{
"type": "panel",
"id": "table",
"name": "Table",
"version": "5.0.0"
}
],
"annotations": {},
"annotations": {
"list": [
{
"builtIn": 1,
"datasource": "-- Grafana --",
"enable": true,
"hide": true,
"iconColor": "rgba(0, 211, 255, 1)",
"name": "Annotations & Alerts",
"type": "dashboard"
}
]
},
"description": "Summary metrics about containers running on Kubernetes nodes.",
"editable": true,
"gnetId": null,
"graphTooltip": 1,
"id": null,
"iteration": 1548249374049,
"links": [
{
"asDropdown": true,
Expand Down Expand Up @@ -65,7 +84,7 @@
"datasource": "$datasource",
"format": "percentunit",
"gauge": {
"maxValue": 1,
"maxValue": 100,
"minValue": 0,
"show": true,
"thresholdLabels": false,
Expand Down Expand Up @@ -120,7 +139,7 @@
"refId": "A"
}
],
"thresholds": ".8,.9",
"thresholds": "80,90",
"title": "Cluster Pod Usage",
"type": "singlestat",
"valueFontSize": "80%",
Expand All @@ -145,7 +164,7 @@
"datasource": "$datasource",
"format": "percentunit",
"gauge": {
"maxValue": 1,
"maxValue": 100,
"minValue": 0,
"show": true,
"thresholdLabels": false,
Expand Down Expand Up @@ -200,7 +219,7 @@
"refId": "A"
}
],
"thresholds": ".8,.9",
"thresholds": "80,90",
"title": "Cluster CPU Usage",
"type": "singlestat",
"valueFontSize": "80%",
Expand All @@ -225,7 +244,7 @@
"datasource": "$datasource",
"format": "percentunit",
"gauge": {
"maxValue": 1,
"maxValue": 100,
"minValue": 0,
"show": true,
"thresholdLabels": false,
Expand Down Expand Up @@ -280,7 +299,7 @@
"refId": "A"
}
],
"thresholds": ".8,.9",
"thresholds": "80,90",
"title": "Cluster Memory Usage",
"type": "singlestat",
"valueFontSize": "80%",
Expand All @@ -305,7 +324,7 @@
"datasource": "$datasource",
"format": "percentunit",
"gauge": {
"maxValue": 1,
"maxValue": 100,
"minValue": 0,
"show": true,
"thresholdLabels": false,
Expand Down Expand Up @@ -354,13 +373,13 @@
"tableColumn": "",
"targets": [
{
"expr": "(sum (node_filesystem_size{nodename=~\"$node\"}) - sum (node_filesystem_free{nodename=~\"$node\"})) / sum (node_filesystem_size{nodename=~\"$node\"})",
"expr": "(sum (node_filesystem_size_bytes{nodename=~\"$instance\"}) - sum (node_filesystem_free_bytes{nodename=~\"$instance\"})) / sum (node_filesystem_size_bytes{nodename=~\"$instance\"})",
"format": "time_series",
"intervalFactor": 1,
"refId": "A"
}
],
"thresholds": ".8,.9",
"thresholds": "80,90",
"title": "Cluster Disk Usage",
"type": "singlestat",
"valueFontSize": "80%",
Expand Down Expand Up @@ -465,7 +484,11 @@
"min": null,
"show": true
}
]
],
"yaxis": {
"align": false,
"alignLevel": null
}
},
{
"aliasColors": {},
Expand Down Expand Up @@ -560,7 +583,11 @@
"min": null,
"show": true
}
]
],
"yaxis": {
"align": false,
"alignLevel": null
}
},
{
"aliasColors": {},
Expand Down Expand Up @@ -654,7 +681,11 @@
"min": null,
"show": true
}
]
],
"yaxis": {
"align": false,
"alignLevel": null
}
},
{
"aliasColors": {},
Expand Down Expand Up @@ -693,14 +724,14 @@
"steppedLine": false,
"targets": [
{
"expr": "sum(node_filesystem_size{nodename=~\"$node\"}) - sum(node_filesystem_free{nodename=~\"$node\"})",
"expr": "sum(node_filesystem_size_bytes{nodename=~\"$instance\"}) - sum(node_filesystem_free_bytes{nodename=~\"$instance\"})",
"format": "time_series",
"intervalFactor": 1,
"legendFormat": "usage",
"refId": "A"
},
{
"expr": "sum(node_filesystem_size{nodename=~\"$node\"})",
"expr": "sum(node_filesystem_size_bytes{nodename=~\"$instance\"})",
"format": "time_series",
"intervalFactor": 1,
"legendFormat": "limit",
Expand Down Expand Up @@ -741,7 +772,11 @@
"min": null,
"show": true
}
]
],
"yaxis": {
"align": false,
"alignLevel": null
}
},
{
"collapsed": false,
Expand Down Expand Up @@ -2065,7 +2100,7 @@
"tableColumn": "",
"targets": [
{
"expr": "sum(delta(kube_pod_container_status_restarts{namespace=\"kube-system\"}[30m]))",
"expr": "sum(delta(kube_pod_container_status_restarts_total{namespace=\"kube-system\"}[30m]))",
"format": "time_series",
"intervalFactor": 1,
"refId": "A"
Expand Down Expand Up @@ -2508,6 +2543,11 @@
"templating": {
"list": [
{
"current": {
"selected": true,
"text": "Staging",
"value": "Staging"
},
"hide": 0,
"label": null,
"name": "cluster",
Expand All @@ -2519,6 +2559,7 @@
},
{
"allValue": null,
"current": {},
"datasource": "$cluster",
"hide": 2,
"includeAll": false,
Expand All @@ -2537,6 +2578,11 @@
"useTags": false
},
{
"current": {
"selected": true,
"text": "Prometheus",
"value": "Prometheus"
},
"hide": 2,
"label": "",
"name": "datasource",
Expand All @@ -2548,6 +2594,7 @@
},
{
"allValue": null,
"current": {},
"datasource": "$cluster",
"hide": 0,
"includeAll": true,
Expand All @@ -2567,6 +2614,7 @@
},
{
"allValue": null,
"current": {},
"datasource": "$cluster",
"hide": 0,
"includeAll": true,
Expand All @@ -2583,6 +2631,26 @@
"tagsQuery": null,
"type": "query",
"useTags": false
},
{
"allValue": null,
"current": {},
"datasource": "$cluster",
"hide": 0,
"includeAll": true,
"label": null,
"multi": true,
"name": "instance",
"options": [],
"query": "instance",
"refresh": 1,
"regex": "",
"sort": 0,
"tagValuesQuery": null,
"tags": [],
"tagsQuery": null,
"type": "query",
"useTags": false
}
]
},
Expand Down Expand Up @@ -2616,5 +2684,7 @@
]
},
"timezone": "browser",
"title": "K8s Cluster"
"title": "K8s Cluster",
"uid": "XVS5mXQmz",
"version": 4
}
Loading