Created
August 17, 2021 14:13
-
-
Save etenzy/ab0b43a045b562406e243d5b708262df to your computer and use it in GitHub Desktop.
Kubernetes Monitoring Overview
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"annotations": { | |
"list": [ | |
{ | |
"builtIn": 1, | |
"datasource": "-- Grafana --", | |
"enable": true, | |
"hide": true, | |
"iconColor": "rgba(0, 211, 255, 1)", | |
"name": "Annotations & Alerts", | |
"type": "dashboard" | |
} | |
] | |
}, | |
"description": "Dashboard for Kubernetes cluster with Prometheus.", | |
"editable": true, | |
"gnetId": 14623, | |
"graphTooltip": 0, | |
"id": 15, | |
"iteration": 1629209509037, | |
"links": [], | |
"panels": [ | |
{ | |
"collapsed": false, | |
"datasource": "Prometheus", | |
"gridPos": { | |
"h": 1, | |
"w": 24, | |
"x": 0, | |
"y": 0 | |
}, | |
"id": 79, | |
"panels": [], | |
"title": "Cluster Health", | |
"type": "row" | |
}, | |
{ | |
"cacheTimeout": null, | |
"datasource": "$cluster", | |
"fieldConfig": { | |
"defaults": { | |
"color": { | |
"mode": "thresholds" | |
}, | |
"mappings": [ | |
{ | |
"options": { | |
"match": "null", | |
"result": { | |
"text": "UP" | |
} | |
}, | |
"type": "special" | |
} | |
], | |
"thresholds": { | |
"mode": "absolute", | |
"steps": [ | |
{ | |
"color": "green", | |
"value": null | |
}, | |
{ | |
"color": "red", | |
"value": 80 | |
} | |
] | |
}, | |
"unit": "none" | |
}, | |
"overrides": [] | |
}, | |
"gridPos": { | |
"h": 4, | |
"w": 4, | |
"x": 0, | |
"y": 1 | |
}, | |
"id": 81, | |
"interval": null, | |
"links": [], | |
"maxDataPoints": 100, | |
"options": { | |
"colorMode": "value", | |
"graphMode": "none", | |
"justifyMode": "auto", | |
"orientation": "horizontal", | |
"reduceOptions": { | |
"calcs": [ | |
"sum" | |
], | |
"fields": "", | |
"values": false | |
}, | |
"text": {}, | |
"textMode": "auto" | |
}, | |
"pluginVersion": "7.5.5", | |
"targets": [ | |
{ | |
"exemplar": true, | |
"expr": "sum(up{job=~\"apiserver|kube-scheduler|kube-controller-manager\"} == 0)", | |
"interval": "", | |
"legendFormat": "", | |
"refId": "A" | |
} | |
], | |
"timeFrom": null, | |
"timeShift": null, | |
"title": "Control Plane Status", | |
"type": "stat" | |
}, | |
{ | |
"cacheTimeout": null, | |
"datasource": "Prometheus", | |
"fieldConfig": { | |
"defaults": { | |
"color": { | |
"mode": "thresholds" | |
}, | |
"mappings": [ | |
{ | |
"options": { | |
"match": "null", | |
"result": { | |
"color": "#299c46", | |
"text": "0" | |
} | |
}, | |
"type": "special" | |
} | |
], | |
"thresholds": { | |
"mode": "absolute", | |
"steps": [ | |
{ | |
"color": "#299c46", | |
"value": null | |
}, | |
{ | |
"color": "rgba(237, 129, 40, 0.89)", | |
"value": 1 | |
}, | |
{ | |
"color": "#d44a3a", | |
"value": 3 | |
} | |
] | |
}, | |
"unit": "none" | |
}, | |
"overrides": [] | |
}, | |
"gridPos": { | |
"h": 2, | |
"w": 4, | |
"x": 4, | |
"y": 1 | |
}, | |
"id": 117, | |
"interval": null, | |
"links": [], | |
"maxDataPoints": 100, | |
"options": { | |
"colorMode": "background", | |
"graphMode": "none", | |
"justifyMode": "auto", | |
"orientation": "horizontal", | |
"reduceOptions": { | |
"calcs": [ | |
"lastNotNull" | |
], | |
"fields": "", | |
"values": false | |
}, | |
"text": {}, | |
"textMode": "auto" | |
}, | |
"pluginVersion": "7.5.5", | |
"targets": [ | |
{ | |
"exemplar": true, | |
"expr": "sum(kube_node_spec_unschedulable)", | |
"format": "time_series", | |
"interval": "", | |
"intervalFactor": 1, | |
"legendFormat": "", | |
"refId": "A" | |
} | |
], | |
"title": "Node Unschedulable", | |
"type": "stat" | |
}, | |
{ | |
"datasource": null, | |
"fieldConfig": { | |
"defaults": { | |
"color": { | |
"mode": "thresholds" | |
}, | |
"mappings": [], | |
"thresholds": { | |
"mode": "absolute", | |
"steps": [ | |
{ | |
"color": "green", | |
"value": null | |
}, | |
{ | |
"color": "red", | |
"value": 80 | |
} | |
] | |
} | |
}, | |
"overrides": [] | |
}, | |
"gridPos": { | |
"h": 4, | |
"w": 4, | |
"x": 8, | |
"y": 1 | |
}, | |
"id": 127, | |
"links": [], | |
"options": { | |
"displayMode": "gradient", | |
"orientation": "auto", | |
"reduceOptions": { | |
"calcs": [ | |
"lastNotNull" | |
], | |
"fields": "", | |
"values": false | |
}, | |
"showUnfilled": true, | |
"text": {} | |
}, | |
"pluginVersion": "7.5.5", | |
"targets": [ | |
{ | |
"expr": "sum(kube_node_info{node=~\"$Node\"})", | |
"format": "time_series", | |
"intervalFactor": 2, | |
"legendFormat": "Total", | |
"refId": "A" | |
}, | |
{ | |
"exemplar": true, | |
"expr": "sum(kube_node_status_condition{condition=\"Ready\", node=~\"$Node\", status!=\"true\"})", | |
"format": "time_series", | |
"instant": false, | |
"interval": "", | |
"intervalFactor": 2, | |
"legendFormat": "Unavailable", | |
"refId": "B" | |
} | |
], | |
"timeFrom": null, | |
"timeShift": null, | |
"title": "Nodes", | |
"type": "bargauge" | |
}, | |
{ | |
"cacheTimeout": null, | |
"datasource": "$cluster", | |
"description": "requested cores / all capacity cores", | |
"fieldConfig": { | |
"defaults": { | |
"color": { | |
"mode": "thresholds" | |
}, | |
"decimals": 2, | |
"mappings": [ | |
{ | |
"options": { | |
"match": "null", | |
"result": { | |
"text": "N/A" | |
} | |
}, | |
"type": "special" | |
} | |
], | |
"max": 100, | |
"min": 0, | |
"thresholds": { | |
"mode": "absolute", | |
"steps": [ | |
{ | |
"color": "#629e51", | |
"value": null | |
}, | |
{ | |
"color": "#f9934e", | |
"value": 65 | |
}, | |
{ | |
"color": "#e24d42", | |
"value": 90 | |
} | |
] | |
}, | |
"unit": "percent" | |
}, | |
"overrides": [] | |
}, | |
"gridPos": { | |
"h": 4, | |
"w": 3, | |
"x": 12, | |
"y": 1 | |
}, | |
"id": 6, | |
"interval": null, | |
"links": [], | |
"maxDataPoints": 100, | |
"options": { | |
"orientation": "horizontal", | |
"reduceOptions": { | |
"calcs": [ | |
"lastNotNull" | |
], | |
"fields": "", | |
"values": false | |
}, | |
"showThresholdLabels": false, | |
"showThresholdMarkers": true, | |
"text": {} | |
}, | |
"pluginVersion": "7.5.5", | |
"targets": [ | |
{ | |
"exemplar": true, | |
"expr": "sum (kube_pod_container_resource_requests{node=~\"^$Node$\",resource=\"cpu\"}) / sum (machine_cpu_cores{kubernetes_io_hostname=~\"^$Node$\"}) * 100", | |
"format": "time_series", | |
"interval": "10s", | |
"intervalFactor": 1, | |
"legendFormat": "", | |
"refId": "A", | |
"step": 10 | |
} | |
], | |
"title": "CPU Requested ($Node)", | |
"type": "gauge" | |
}, | |
{ | |
"cacheTimeout": null, | |
"datasource": "$cluster", | |
"description": "requested mem/all capacity mem", | |
"fieldConfig": { | |
"defaults": { | |
"color": { | |
"mode": "thresholds" | |
}, | |
"mappings": [ | |
{ | |
"options": { | |
"match": "null", | |
"result": { | |
"text": "N/A" | |
} | |
}, | |
"type": "special" | |
} | |
], | |
"max": 100, | |
"min": 0, | |
"thresholds": { | |
"mode": "absolute", | |
"steps": [ | |
{ | |
"color": "#629e51", | |
"value": null | |
}, | |
{ | |
"color": "#f9934e", | |
"value": 65 | |
}, | |
{ | |
"color": "#e24d42", | |
"value": 90 | |
} | |
] | |
}, | |
"unit": "percent" | |
}, | |
"overrides": [] | |
}, | |
"gridPos": { | |
"h": 4, | |
"w": 3, | |
"x": 15, | |
"y": 1 | |
}, | |
"id": 4, | |
"interval": null, | |
"links": [], | |
"maxDataPoints": 100, | |
"options": { | |
"orientation": "horizontal", | |
"reduceOptions": { | |
"calcs": [ | |
"lastNotNull" | |
], | |
"fields": "", | |
"values": false | |
}, | |
"showThresholdLabels": false, | |
"showThresholdMarkers": true, | |
"text": {} | |
}, | |
"pluginVersion": "7.5.5", | |
"targets": [ | |
{ | |
"exemplar": true, | |
"expr": "sum (kube_pod_container_resource_requests{node=~\"^$Node$\",resource=\"memory\"}) / sum (machine_memory_bytes{kubernetes_io_hostname=~\"^$Node$\"}) * 100", | |
"format": "time_series", | |
"interval": "10s", | |
"intervalFactor": 1, | |
"legendFormat": "", | |
"refId": "A", | |
"step": 10 | |
} | |
], | |
"title": "Memory Requested ($Node)", | |
"type": "gauge" | |
}, | |
{ | |
"cacheTimeout": null, | |
"datasource": "Prometheus", | |
"fieldConfig": { | |
"defaults": { | |
"color": { | |
"mode": "thresholds" | |
}, | |
"mappings": [ | |
{ | |
"options": { | |
"match": "null", | |
"result": { | |
"color": "#299c46", | |
"text": "0" | |
} | |
}, | |
"type": "special" | |
} | |
], | |
"thresholds": { | |
"mode": "absolute", | |
"steps": [ | |
{ | |
"color": "#299c46", | |
"value": null | |
}, | |
{ | |
"color": "rgba(237, 129, 40, 0.89)", | |
"value": 1 | |
}, | |
{ | |
"color": "#d44a3a" | |
} | |
] | |
}, | |
"unit": "none" | |
}, | |
"overrides": [] | |
}, | |
"gridPos": { | |
"h": 2, | |
"w": 3, | |
"x": 18, | |
"y": 1 | |
}, | |
"id": 119, | |
"interval": null, | |
"links": [], | |
"maxDataPoints": 100, | |
"options": { | |
"colorMode": "background", | |
"graphMode": "none", | |
"justifyMode": "auto", | |
"orientation": "horizontal", | |
"reduceOptions": { | |
"calcs": [ | |
"lastNotNull" | |
], | |
"fields": "", | |
"values": false | |
}, | |
"text": {}, | |
"textMode": "auto" | |
}, | |
"pluginVersion": "7.5.5", | |
"targets": [ | |
{ | |
"expr": "sum(kube_node_status_condition{condition=\"DiskPressure\", node=~\"$Node\", status!=\"false\"})", | |
"format": "time_series", | |
"intervalFactor": 1, | |
"refId": "A" | |
} | |
], | |
"title": "Disk Pressure", | |
"type": "stat" | |
}, | |
{ | |
"cacheTimeout": null, | |
"datasource": "Prometheus", | |
"fieldConfig": { | |
"defaults": { | |
"color": { | |
"mode": "thresholds" | |
}, | |
"mappings": [ | |
{ | |
"options": { | |
"match": "null", | |
"result": { | |
"color": "#299c46", | |
"text": "0" | |
} | |
}, | |
"type": "special" | |
} | |
], | |
"thresholds": { | |
"mode": "absolute", | |
"steps": [ | |
{ | |
"color": "#299c46", | |
"value": null | |
}, | |
{ | |
"color": "rgba(237, 129, 40, 0.89)", | |
"value": 1 | |
}, | |
{ | |
"color": "#d44a3a" | |
} | |
] | |
}, | |
"unit": "none" | |
}, | |
"overrides": [] | |
}, | |
"gridPos": { | |
"h": 2, | |
"w": 3, | |
"x": 21, | |
"y": 1 | |
}, | |
"id": 125, | |
"interval": null, | |
"links": [], | |
"maxDataPoints": 100, | |
"options": { | |
"colorMode": "background", | |
"graphMode": "area", | |
"justifyMode": "auto", | |
"orientation": "horizontal", | |
"reduceOptions": { | |
"calcs": [ | |
"lastNotNull" | |
], | |
"fields": "", | |
"values": false | |
}, | |
"text": {}, | |
"textMode": "auto" | |
}, | |
"pluginVersion": "7.5.5", | |
"targets": [ | |
{ | |
"expr": "sum(kube_node_status_condition{condition=\"NetworkUnavailable\", node=~\"$Node\", status!=\"false\"})", | |
"format": "time_series", | |
"intervalFactor": 1, | |
"refId": "A" | |
} | |
], | |
"title": "Network Unavailable", | |
"type": "stat" | |
}, | |
{ | |
"cacheTimeout": null, | |
"datasource": "$cluster", | |
"fieldConfig": { | |
"defaults": { | |
"color": { | |
"mode": "thresholds" | |
}, | |
"mappings": [ | |
{ | |
"options": { | |
"match": "null", | |
"result": { | |
"text": "N/A" | |
} | |
}, | |
"type": "special" | |
} | |
], | |
"thresholds": { | |
"mode": "absolute", | |
"steps": [ | |
{ | |
"color": "#299c46", | |
"value": null | |
}, | |
{ | |
"color": "rgba(237, 129, 40, 0.89)", | |
"value": 1 | |
}, | |
{ | |
"color": "#d44a3a", | |
"value": 3 | |
} | |
] | |
}, | |
"unit": "none" | |
}, | |
"overrides": [] | |
}, | |
"gridPos": { | |
"h": 2, | |
"w": 4, | |
"x": 4, | |
"y": 3 | |
}, | |
"id": 83, | |
"interval": null, | |
"links": [], | |
"maxDataPoints": 100, | |
"options": { | |
"colorMode": "value", | |
"graphMode": "none", | |
"justifyMode": "auto", | |
"orientation": "horizontal", | |
"reduceOptions": { | |
"calcs": [ | |
"lastNotNull" | |
], | |
"fields": "", | |
"values": false | |
}, | |
"text": {}, | |
"textMode": "auto" | |
}, | |
"pluginVersion": "7.5.5", | |
"targets": [ | |
{ | |
"expr": "sum(kube_node_status_condition{condition=\"Ready\",status!=\"true\"})", | |
"refId": "A" | |
} | |
], | |
"timeFrom": null, | |
"timeShift": null, | |
"title": "Node Not Ready", | |
"type": "stat" | |
}, | |
{ | |
"cacheTimeout": null, | |
"datasource": "Prometheus", | |
"fieldConfig": { | |
"defaults": { | |
"color": { | |
"mode": "thresholds" | |
}, | |
"mappings": [ | |
{ | |
"options": { | |
"match": "null", | |
"result": { | |
"color": "#299c46", | |
"text": "0" | |
} | |
}, | |
"type": "special" | |
} | |
], | |
"thresholds": { | |
"mode": "absolute", | |
"steps": [ | |
{ | |
"color": "#299c46", | |
"value": null | |
}, | |
{ | |
"color": "rgba(237, 129, 40, 0.89)", | |
"value": 1 | |
}, | |
{ | |
"color": "#d44a3a" | |
} | |
] | |
}, | |
"unit": "none" | |
}, | |
"overrides": [] | |
}, | |
"gridPos": { | |
"h": 2, | |
"w": 3, | |
"x": 18, | |
"y": 3 | |
}, | |
"id": 121, | |
"interval": null, | |
"links": [], | |
"maxDataPoints": 100, | |
"options": { | |
"colorMode": "background", | |
"graphMode": "none", | |
"justifyMode": "auto", | |
"orientation": "horizontal", | |
"reduceOptions": { | |
"calcs": [ | |
"lastNotNull" | |
], | |
"fields": "", | |
"values": false | |
}, | |
"text": {}, | |
"textMode": "auto" | |
}, | |
"pluginVersion": "7.5.5", | |
"targets": [ | |
{ | |
"expr": "sum(kube_node_status_condition{condition=\"MemoryPressure\", node=~\"$Node\", status!=\"false\"})", | |
"format": "time_series", | |
"intervalFactor": 1, | |
"refId": "A" | |
} | |
], | |
"title": "Memory Pressure", | |
"type": "stat" | |
}, | |
{ | |
"cacheTimeout": null, | |
"datasource": "Prometheus", | |
"fieldConfig": { | |
"defaults": { | |
"color": { | |
"mode": "thresholds" | |
}, | |
"mappings": [ | |
{ | |
"options": { | |
"match": "null", | |
"result": { | |
"color": "#299c46", | |
"text": "0" | |
} | |
}, | |
"type": "special" | |
} | |
], | |
"thresholds": { | |
"mode": "absolute", | |
"steps": [ | |
{ | |
"color": "#299c46", | |
"value": null | |
}, | |
{ | |
"color": "rgba(237, 129, 40, 0.89)", | |
"value": 1 | |
}, | |
{ | |
"color": "#d44a3a" | |
} | |
] | |
}, | |
"unit": "none" | |
}, | |
"overrides": [] | |
}, | |
"gridPos": { | |
"h": 2, | |
"w": 3, | |
"x": 21, | |
"y": 3 | |
}, | |
"id": 123, | |
"interval": null, | |
"links": [], | |
"maxDataPoints": 100, | |
"options": { | |
"colorMode": "background", | |
"graphMode": "none", | |
"justifyMode": "auto", | |
"orientation": "horizontal", | |
"reduceOptions": { | |
"calcs": [ | |
"lastNotNull" | |
], | |
"fields": "", | |
"values": false | |
}, | |
"text": {}, | |
"textMode": "auto" | |
}, | |
"pluginVersion": "7.5.5", | |
"targets": [ | |
{ | |
"expr": "sum(kube_node_status_condition{condition=\"PIDPressure\", node=~\"$Node\", status!=\"false\"})", | |
"format": "time_series", | |
"intervalFactor": 1, | |
"refId": "A" | |
} | |
], | |
"title": "PID Pressure", | |
"type": "stat" | |
}, | |
{ | |
"collapsed": false, | |
"datasource": "Prometheus", | |
"gridPos": { | |
"h": 1, | |
"w": 24, | |
"x": 0, | |
"y": 5 | |
}, | |
"id": 71, | |
"panels": [], | |
"title": "Total usage", | |
"type": "row" | |
}, | |
{ | |
"cacheTimeout": null, | |
"datasource": "$cluster", | |
"fieldConfig": { | |
"defaults": { | |
"color": { | |
"mode": "thresholds" | |
}, | |
"mappings": [], | |
"max": 100, | |
"min": 0, | |
"thresholds": { | |
"mode": "absolute", | |
"steps": [ | |
{ | |
"color": "green", | |
"value": null | |
}, | |
{ | |
"color": "red", | |
"value": 80 | |
} | |
] | |
}, | |
"unit": "percent" | |
}, | |
"overrides": [] | |
}, | |
"gridPos": { | |
"h": 5, | |
"w": 4, | |
"x": 0, | |
"y": 6 | |
}, | |
"id": 66, | |
"links": [], | |
"options": { | |
"orientation": "horizontal", | |
"reduceOptions": { | |
"calcs": [ | |
"lastNotNull" | |
], | |
"fields": "", | |
"values": false | |
}, | |
"showThresholdLabels": false, | |
"showThresholdMarkers": true, | |
"text": {} | |
}, | |
"pluginVersion": "7.5.5", | |
"repeat": null, | |
"repeatDirection": "v", | |
"targets": [ | |
{ | |
"exemplar": true, | |
"expr": "(sum(kube_pod_info{kubernetes_node=~\"^$Node$\"})) * 100 / (sum(kube_node_info) * 110)", | |
"format": "time_series", | |
"interval": "10s", | |
"intervalFactor": 1, | |
"legendFormat": "", | |
"refId": "A", | |
"step": 10 | |
} | |
], | |
"timeFrom": null, | |
"timeShift": null, | |
"title": "Pod Usage ($Node)", | |
"type": "gauge" | |
}, | |
{ | |
"cacheTimeout": null, | |
"datasource": "$cluster", | |
"fieldConfig": { | |
"defaults": { | |
"color": { | |
"mode": "thresholds" | |
}, | |
"mappings": [], | |
"max": 100, | |
"min": 0, | |
"thresholds": { | |
"mode": "absolute", | |
"steps": [ | |
{ | |
"color": "green", | |
"value": null | |
}, | |
{ | |
"color": "red", | |
"value": 80 | |
} | |
] | |
}, | |
"unit": "percent" | |
}, | |
"overrides": [] | |
}, | |
"gridPos": { | |
"h": 5, | |
"w": 6, | |
"x": 4, | |
"y": 6 | |
}, | |
"id": 97, | |
"links": [], | |
"options": { | |
"displayMode": "lcd", | |
"orientation": "horizontal", | |
"reduceOptions": { | |
"calcs": [ | |
"lastNotNull" | |
], | |
"fields": "", | |
"values": false | |
}, | |
"showUnfilled": true, | |
"text": {} | |
}, | |
"pluginVersion": "7.5.5", | |
"targets": [ | |
{ | |
"exemplar": true, | |
"expr": "100 - (avg (irate(node_cpu_seconds_total{mode=\"idle\",kubernetes_node=~\"^$Node$\",job=\"node-exporter\"}[5m])) * 100)", | |
"instant": false, | |
"interval": "", | |
"legendFormat": "", | |
"refId": "A" | |
} | |
], | |
"timeFrom": null, | |
"timeShift": null, | |
"title": "CPU Usage ($Node)", | |
"type": "bargauge" | |
}, | |
{ | |
"cacheTimeout": null, | |
"datasource": "$cluster", | |
"description": "", | |
"fieldConfig": { | |
"defaults": { | |
"color": { | |
"mode": "thresholds" | |
}, | |
"mappings": [], | |
"max": 100, | |
"min": 0, | |
"thresholds": { | |
"mode": "absolute", | |
"steps": [ | |
{ | |
"color": "green", | |
"value": null | |
}, | |
{ | |
"color": "red", | |
"value": 80 | |
} | |
] | |
}, | |
"unit": "percent" | |
}, | |
"overrides": [] | |
}, | |
"gridPos": { | |
"h": 5, | |
"w": 7, | |
"x": 10, | |
"y": 6 | |
}, | |
"id": 99, | |
"links": [], | |
"options": { | |
"displayMode": "lcd", | |
"orientation": "horizontal", | |
"reduceOptions": { | |
"calcs": [ | |
"lastNotNull" | |
], | |
"fields": "", | |
"values": false | |
}, | |
"showUnfilled": true, | |
"text": {} | |
}, | |
"pluginVersion": "7.5.5", | |
"targets": [ | |
{ | |
"exemplar": true, | |
"expr": "100 * (1- ((avg_over_time(node_memory_MemFree_bytes{kubernetes_node=~\"^$Node$\", job=\"node-exporter\"}[5m]) + avg_over_time(node_memory_Cached_bytes{kubernetes_node=~\"^$Node$\", job=\"node-exporter\"}[10m]) + avg_over_time(node_memory_Buffers_bytes{kubernetes_node=~\"^$Node$\",job=\"node-exporter\"}[5m])) / avg_over_time(node_memory_MemTotal_bytes{kubernetes_node=~\"^$Node$\",job=\"node-exporter\"}[5m])))", | |
"interval": "", | |
"legendFormat": "{{instance}}", | |
"refId": "A" | |
} | |
], | |
"timeFrom": null, | |
"timeShift": null, | |
"title": "Mem Usage ($Node)", | |
"type": "bargauge" | |
}, | |
{ | |
"cacheTimeout": null, | |
"datasource": "$cluster", | |
"fieldConfig": { | |
"defaults": { | |
"color": { | |
"mode": "thresholds" | |
}, | |
"mappings": [], | |
"max": 100, | |
"min": 0, | |
"thresholds": { | |
"mode": "absolute", | |
"steps": [ | |
{ | |
"color": "green", | |
"value": null | |
}, | |
{ | |
"color": "red", | |
"value": 80 | |
} | |
] | |
}, | |
"unit": "percent" | |
}, | |
"overrides": [] | |
}, | |
"gridPos": { | |
"h": 5, | |
"w": 7, | |
"x": 17, | |
"y": 6 | |
}, | |
"id": 7, | |
"links": [], | |
"options": { | |
"displayMode": "lcd", | |
"orientation": "horizontal", | |
"reduceOptions": { | |
"calcs": [ | |
"lastNotNull" | |
], | |
"fields": "", | |
"values": false | |
}, | |
"showUnfilled": true, | |
"text": {} | |
}, | |
"pluginVersion": "7.5.5", | |
"targets": [ | |
{ | |
"exemplar": true, | |
"expr": "sum (container_fs_usage_bytes{device=~\"^/dev/.*$\",id=\"/\",kubernetes_io_hostname=~\"^$Node$\",job=\"node-exporter\"}) / sum (container_fs_limit_bytes{device=~\"^/dev/.*$\",id=\"/\",kubernetes_io_hostname=~\"^$Node$\"}) * 100", | |
"format": "time_series", | |
"hide": true, | |
"interval": "10s", | |
"intervalFactor": 1, | |
"legendFormat": "", | |
"metric": "", | |
"refId": "A", | |
"step": 10 | |
}, | |
{ | |
"exemplar": true, | |
"expr": "100 - ((node_filesystem_avail_bytes{mountpoint=\"/\",fstype!=\"rootfs\",kubernetes_node=~\"^$Node$\",job=\"node-exporter\"} * 100) / node_filesystem_size_bytes{mountpoint=\"/\",fstype!=\"rootfs\",kubernetes_node=~\"^$Node$\",job=\"node-exporter\"})", | |
"instant": false, | |
"interval": "", | |
"legendFormat": "{{instance}}", | |
"refId": "B" | |
} | |
], | |
"timeFrom": null, | |
"timeShift": null, | |
"title": "Filesystem Usage ($Node)", | |
"type": "bargauge" | |
}, | |
{ | |
"cacheTimeout": null, | |
"datasource": "$cluster", | |
"fieldConfig": { | |
"defaults": { | |
"color": { | |
"fixedColor": "rgb(31, 120, 193)", | |
"mode": "fixed" | |
}, | |
"mappings": [ | |
{ | |
"options": { | |
"match": "null", | |
"result": { | |
"text": "N/A" | |
} | |
}, | |
"type": "special" | |
} | |
], | |
"thresholds": { | |
"mode": "absolute", | |
"steps": [ | |
{ | |
"color": "green", | |
"value": null | |
}, | |
{ | |
"color": "red", | |
"value": 80 | |
} | |
] | |
}, | |
"unit": "none" | |
}, | |
"overrides": [] | |
}, | |
"gridPos": { | |
"h": 4, | |
"w": 2, | |
"x": 0, | |
"y": 11 | |
}, | |
"id": 75, | |
"interval": null, | |
"links": [], | |
"maxDataPoints": 100, | |
"options": { | |
"colorMode": "none", | |
"graphMode": "area", | |
"justifyMode": "auto", | |
"orientation": "horizontal", | |
"reduceOptions": { | |
"calcs": [ | |
"lastNotNull" | |
], | |
"fields": "", | |
"values": false | |
}, | |
"text": {}, | |
"textMode": "auto" | |
}, | |
"pluginVersion": "7.5.5", | |
"targets": [ | |
{ | |
"expr": "count(kube_pod_info{node=~\"^$Node$\"})", | |
"format": "time_series", | |
"interval": "10s", | |
"intervalFactor": 1, | |
"refId": "A", | |
"step": 10 | |
} | |
], | |
"title": "Pods", | |
"type": "stat" | |
}, | |
{ | |
"cacheTimeout": null, | |
"datasource": "$cluster", | |
"fieldConfig": { | |
"defaults": { | |
"color": { | |
"fixedColor": "rgb(31, 120, 193)", | |
"mode": "fixed" | |
}, | |
"mappings": [ | |
{ | |
"options": { | |
"match": "null", | |
"result": { | |
"text": "N/A" | |
} | |
}, | |
"type": "special" | |
} | |
], | |
"thresholds": { | |
"mode": "absolute", | |
"steps": [ | |
{ | |
"color": "#299c46", | |
"value": null | |
}, | |
{ | |
"color": "rgba(237, 129, 40, 0.89)", | |
"value": 35 | |
}, | |
{ | |
"color": "#d44a3a", | |
"value": 65 | |
} | |
] | |
}, | |
"unit": "none" | |
}, | |
"overrides": [] | |
}, | |
"gridPos": { | |
"h": 4, | |
"w": 2, | |
"x": 2, | |
"y": 11 | |
}, | |
"id": 77, | |
"interval": null, | |
"links": [], | |
"maxDataPoints": 100, | |
"options": { | |
"colorMode": "none", | |
"graphMode": "area", | |
"justifyMode": "auto", | |
"orientation": "horizontal", | |
"reduceOptions": { | |
"calcs": [ | |
"lastNotNull" | |
], | |
"fields": "", | |
"values": false | |
}, | |
"text": {}, | |
"textMode": "auto" | |
}, | |
"pluginVersion": "7.5.5", | |
"targets": [ | |
{ | |
"exemplar": true, | |
"expr": "sum(kube_node_info) * 110", | |
"interval": "", | |
"legendFormat": "", | |
"refId": "A" | |
} | |
], | |
"timeFrom": null, | |
"timeShift": null, | |
"title": "Capacity pods", | |
"type": "stat" | |
}, | |
{ | |
"cacheTimeout": null, | |
"datasource": "$cluster", | |
"fieldConfig": { | |
"defaults": { | |
"color": { | |
"fixedColor": "rgb(31, 120, 193)", | |
"mode": "fixed" | |
}, | |
"decimals": 2, | |
"mappings": [ | |
{ | |
"options": { | |
"match": "null", | |
"result": { | |
"text": "N/A" | |
} | |
}, | |
"type": "special" | |
} | |
], | |
"thresholds": { | |
"mode": "absolute", | |
"steps": [ | |
{ | |
"color": "green", | |
"value": null | |
}, | |
{ | |
"color": "red", | |
"value": 80 | |
} | |
] | |
}, | |
"unit": "none" | |
}, | |
"overrides": [] | |
}, | |
"gridPos": { | |
"h": 4, | |
"w": 2, | |
"x": 4, | |
"y": 11 | |
}, | |
"id": 11, | |
"interval": null, | |
"links": [], | |
"maxDataPoints": 100, | |
"options": { | |
"colorMode": "none", | |
"graphMode": "area", | |
"justifyMode": "auto", | |
"orientation": "horizontal", | |
"reduceOptions": { | |
"calcs": [ | |
"lastNotNull" | |
], | |
"fields": "", | |
"values": false | |
}, | |
"text": {}, | |
"textMode": "auto" | |
}, | |
"pluginVersion": "7.5.5", | |
"targets": [ | |
{ | |
"expr": "sum (rate (container_cpu_usage_seconds_total{id=\"/\",kubernetes_io_hostname=~\"^$Node$\"}[2m]))", | |
"format": "time_series", | |
"interval": "10s", | |
"intervalFactor": 1, | |
"refId": "A", | |
"step": 10 | |
} | |
], | |
"title": "Used", | |
"type": "stat" | |
}, | |
{ | |
"cacheTimeout": null, | |
"datasource": "$cluster", | |
"fieldConfig": { | |
"defaults": { | |
"color": { | |
"fixedColor": "rgb(31, 120, 193)", | |
"mode": "fixed" | |
}, | |
"decimals": 2, | |
"mappings": [ | |
{ | |
"options": { | |
"match": "null", | |
"result": { | |
"text": "N/A" | |
} | |
}, | |
"type": "special" | |
} | |
], | |
"thresholds": { | |
"mode": "absolute", | |
"steps": [ | |
{ | |
"color": "green", | |
"value": null | |
}, | |
{ | |
"color": "red", | |
"value": 80 | |
} | |
] | |
}, | |
"unit": "none" | |
}, | |
"overrides": [] | |
}, | |
"gridPos": { | |
"h": 4, | |
"w": 2, | |
"x": 6, | |
"y": 11 | |
}, | |
"id": 73, | |
"interval": null, | |
"links": [], | |
"maxDataPoints": 100, | |
"options": { | |
"colorMode": "none", | |
"graphMode": "area", | |
"justifyMode": "auto", | |
"orientation": "horizontal", | |
"reduceOptions": { | |
"calcs": [ | |
"lastNotNull" | |
], | |
"fields": "", | |
"values": false | |
}, | |
"text": {}, | |
"textMode": "auto" | |
}, | |
"pluginVersion": "7.5.5", | |
"targets": [ | |
{ | |
"exemplar": true, | |
"expr": "sum (kube_pod_container_resource_requests{node=~\"^$Node$\",resource=\"cpu\"})", | |
"format": "time_series", | |
"interval": "10s", | |
"intervalFactor": 1, | |
"legendFormat": "", | |
"refId": "A", | |
"step": 10 | |
} | |
], | |
"title": "Requests", | |
"type": "stat" | |
}, | |
{ | |
"cacheTimeout": null, | |
"datasource": "$cluster", | |
"fieldConfig": { | |
"defaults": { | |
"color": { | |
"fixedColor": "rgb(31, 120, 193)", | |
"mode": "fixed" | |
}, | |
"decimals": 2, | |
"mappings": [ | |
{ | |
"options": { | |
"match": "null", | |
"result": { | |
"text": "N/A" | |
} | |
}, | |
"type": "special" | |
} | |
], | |
"thresholds": { | |
"mode": "absolute", | |
"steps": [ | |
{ | |
"color": "green", | |
"value": null | |
}, | |
{ | |
"color": "red", | |
"value": 80 | |
} | |
] | |
}, | |
"unit": "none" | |
}, | |
"overrides": [] | |
}, | |
"gridPos": { | |
"h": 4, | |
"w": 2, | |
"x": 8, | |
"y": 11 | |
}, | |
"id": 69, | |
"interval": null, | |
"links": [], | |
"maxDataPoints": 100, | |
"options": { | |
"colorMode": "none", | |
"graphMode": "area", | |
"justifyMode": "auto", | |
"orientation": "horizontal", | |
"reduceOptions": { | |
"calcs": [ | |
"lastNotNull" | |
], | |
"fields": "", | |
"values": false | |
}, | |
"text": {}, | |
"textMode": "auto" | |
}, | |
"pluginVersion": "7.5.5", | |
"targets": [ | |
{ | |
"expr": "sum (machine_cpu_cores{kubernetes_io_hostname=~\"^$Node$\"})", | |
"format": "time_series", | |
"interval": "10s", | |
"intervalFactor": 1, | |
"refId": "A", | |
"step": 10 | |
} | |
], | |
"title": "Total", | |
"type": "stat" | |
}, | |
{ | |
"cacheTimeout": null, | |
"datasource": "$cluster", | |
"fieldConfig": { | |
"defaults": { | |
"color": { | |
"fixedColor": "rgb(31, 120, 193)", | |
"mode": "fixed" | |
}, | |
"decimals": 2, | |
"mappings": [ | |
{ | |
"options": { | |
"match": "null", | |
"result": { | |
"text": "N/A" | |
} | |
}, | |
"type": "special" | |
} | |
], | |
"thresholds": { | |
"mode": "absolute", | |
"steps": [ | |
{ | |
"color": "green", | |
"value": null | |
}, | |
{ | |
"color": "red", | |
"value": 80 | |
} | |
] | |
}, | |
"unit": "bytes" | |
}, | |
"overrides": [] | |
}, | |
"gridPos": { | |
"h": 4, | |
"w": 2, | |
"x": 10, | |
"y": 11 | |
}, | |
"id": 9, | |
"interval": null, | |
"links": [], | |
"maxDataPoints": 100, | |
"options": { | |
"colorMode": "none", | |
"graphMode": "area", | |
"justifyMode": "auto", | |
"orientation": "horizontal", | |
"reduceOptions": { | |
"calcs": [ | |
"lastNotNull" | |
], | |
"fields": "", | |
"values": false | |
}, | |
"text": {}, | |
"textMode": "auto" | |
}, | |
"pluginVersion": "7.5.5", | |
"targets": [ | |
{ | |
"expr": "sum (container_memory_working_set_bytes{id=\"/\",kubernetes_io_hostname=~\"^$Node$\"})", | |
"format": "time_series", | |
"interval": "10s", | |
"intervalFactor": 1, | |
"refId": "A", | |
"step": 10 | |
} | |
], | |
"title": "Used", | |
"type": "stat" | |
}, | |
{ | |
"cacheTimeout": null, | |
"datasource": "$cluster", | |
"fieldConfig": { | |
"defaults": { | |
"color": { | |
"fixedColor": "rgb(31, 120, 193)", | |
"mode": "fixed" | |
}, | |
"decimals": 2, | |
"mappings": [ | |
{ | |
"options": { | |
"match": "null", | |
"result": { | |
"text": "N/A" | |
} | |
}, | |
"type": "special" | |
} | |
], | |
"thresholds": { | |
"mode": "absolute", | |
"steps": [ | |
{ | |
"color": "green", | |
"value": null | |
}, | |
{ | |
"color": "red", | |
"value": 80 | |
} | |
] | |
}, | |
"unit": "bytes" | |
}, | |
"overrides": [] | |
}, | |
"gridPos": { | |
"h": 4, | |
"w": 2, | |
"x": 12, | |
"y": 11 | |
}, | |
"id": 74, | |
"interval": null, | |
"links": [], | |
"maxDataPoints": 100, | |
"options": { | |
"colorMode": "none", | |
"graphMode": "area", | |
"justifyMode": "auto", | |
"orientation": "horizontal", | |
"reduceOptions": { | |
"calcs": [ | |
"lastNotNull" | |
], | |
"fields": "", | |
"values": false | |
}, | |
"text": {}, | |
"textMode": "auto" | |
}, | |
"pluginVersion": "7.5.5", | |
"targets": [ | |
{ | |
"exemplar": true, | |
"expr": "sum (kube_pod_container_resource_requests{node=~\"^$Node$\",resource=\"memory\"})", | |
"format": "time_series", | |
"interval": "10s", | |
"intervalFactor": 1, | |
"legendFormat": "", | |
"refId": "A", | |
"step": 10 | |
} | |
], | |
"title": "Requests", | |
"type": "stat" | |
}, | |
{ | |
"cacheTimeout": null, | |
"datasource": "$cluster", | |
"fieldConfig": { | |
"defaults": { | |
"color": { | |
"fixedColor": "rgb(31, 120, 193)", | |
"mode": "fixed" | |
}, | |
"decimals": 2, | |
"mappings": [ | |
{ | |
"options": { | |
"match": "null", | |
"result": { | |
"text": "N/A" | |
} | |
}, | |
"type": "special" | |
} | |
], | |
"thresholds": { | |
"mode": "absolute", | |
"steps": [ | |
{ | |
"color": "green", | |
"value": null | |
}, | |
{ | |
"color": "red", | |
"value": 80 | |
} | |
] | |
}, | |
"unit": "bytes" | |
}, | |
"overrides": [] | |
}, | |
"gridPos": { | |
"h": 4, | |
"w": 3, | |
"x": 14, | |
"y": 11 | |
}, | |
"id": 65, | |
"interval": null, | |
"links": [], | |
"maxDataPoints": 100, | |
"options": { | |
"colorMode": "none", | |
"graphMode": "area", | |
"justifyMode": "auto", | |
"orientation": "horizontal", | |
"reduceOptions": { | |
"calcs": [ | |
"lastNotNull" | |
], | |
"fields": "", | |
"values": false | |
}, | |
"text": {}, | |
"textMode": "auto" | |
}, | |
"pluginVersion": "7.5.5", | |
"targets": [ | |
{ | |
"expr": "sum (machine_memory_bytes{kubernetes_io_hostname=~\"^$Node$\"})", | |
"format": "time_series", | |
"interval": "10s", | |
"intervalFactor": 1, | |
"refId": "A", | |
"step": 10 | |
} | |
], | |
"title": "Total", | |
"type": "stat" | |
}, | |
{ | |
"cacheTimeout": null, | |
"datasource": "$cluster", | |
"fieldConfig": { | |
"defaults": { | |
"color": { | |
"fixedColor": "rgb(31, 120, 193)", | |
"mode": "fixed" | |
}, | |
"decimals": 2, | |
"mappings": [ | |
{ | |
"options": { | |
"match": "null", | |
"result": { | |
"text": "N/A" | |
} | |
}, | |
"type": "special" | |
} | |
], | |
"thresholds": { | |
"mode": "absolute", | |
"steps": [ | |
{ | |
"color": "green", | |
"value": null | |
}, | |
{ | |
"color": "red", | |
"value": 80 | |
} | |
] | |
}, | |
"unit": "bytes" | |
}, | |
"overrides": [] | |
}, | |
"gridPos": { | |
"h": 4, | |
"w": 3, | |
"x": 17, | |
"y": 11 | |
}, | |
"id": 13, | |
"interval": null, | |
"links": [], | |
"maxDataPoints": 100, | |
"options": { | |
"colorMode": "none", | |
"graphMode": "area", | |
"justifyMode": "auto", | |
"orientation": "horizontal", | |
"reduceOptions": { | |
"calcs": [ | |
"lastNotNull" | |
], | |
"fields": "", | |
"values": false | |
}, | |
"text": {}, | |
"textMode": "auto" | |
}, | |
"pluginVersion": "7.5.5", | |
"targets": [ | |
{ | |
"expr": "sum (container_fs_usage_bytes{device=~\"^/dev/.*$\",id=\"/\",kubernetes_io_hostname=~\"^$Node$\"})", | |
"format": "time_series", | |
"interval": "10s", | |
"intervalFactor": 1, | |
"refId": "A", | |
"step": 10 | |
} | |
], | |
"title": "Used", | |
"type": "stat" | |
}, | |
{ | |
"cacheTimeout": null, | |
"datasource": "$cluster", | |
"fieldConfig": { | |
"defaults": { | |
"color": { | |
"fixedColor": "rgb(31, 120, 193)", | |
"mode": "fixed" | |
}, | |
"decimals": 2, | |
"mappings": [ | |
{ | |
"options": { | |
"match": "null", | |
"result": { | |
"text": "N/A" | |
} | |
}, | |
"type": "special" | |
} | |
], | |
"thresholds": { | |
"mode": "absolute", | |
"steps": [ | |
{ | |
"color": "green", | |
"value": null | |
}, | |
{ | |
"color": "red", | |
"value": 80 | |
} | |
] | |
}, | |
"unit": "bytes" | |
}, | |
"overrides": [] | |
}, | |
"gridPos": { | |
"h": 4, | |
"w": 4, | |
"x": 20, | |
"y": 11 | |
}, | |
"id": 14, | |
"interval": null, | |
"links": [], | |
"maxDataPoints": 100, | |
"options": { | |
"colorMode": "none", | |
"graphMode": "area", | |
"justifyMode": "auto", | |
"orientation": "horizontal", | |
"reduceOptions": { | |
"calcs": [ | |
"lastNotNull" | |
], | |
"fields": "", | |
"values": false | |
}, | |
"text": {}, | |
"textMode": "auto" | |
}, | |
"pluginVersion": "7.5.5", | |
"targets": [ | |
{ | |
"expr": "sum (container_fs_limit_bytes{device=~\"^/dev/.*$\",id=\"/\",kubernetes_io_hostname=~\"^$Node$\"})", | |
"format": "time_series", | |
"interval": "10s", | |
"intervalFactor": 1, | |
"refId": "A", | |
"step": 10 | |
} | |
], | |
"title": "Total", | |
"type": "stat" | |
}, | |
{ | |
"collapsed": false, | |
"datasource": "Prometheus", | |
"gridPos": { | |
"h": 1, | |
"w": 24, | |
"x": 0, | |
"y": 15 | |
}, | |
"id": 47, | |
"panels": [], | |
"title": "Top projects and pods usage", | |
"type": "row" | |
}, | |
{ | |
"aliasColors": {}, | |
"bars": true, | |
"dashLength": 10, | |
"dashes": false, | |
"datasource": "$cluster", | |
"fieldConfig": { | |
"defaults": { | |
"links": [] | |
}, | |
"overrides": [] | |
}, | |
"fill": 1, | |
"fillGradient": 0, | |
"gridPos": { | |
"h": 7, | |
"w": 12, | |
"x": 0, | |
"y": 16 | |
}, | |
"hiddenSeries": false, | |
"id": 91, | |
"legend": { | |
"avg": false, | |
"current": false, | |
"max": false, | |
"min": false, | |
"rightSide": false, | |
"show": false, | |
"total": false, | |
"values": false | |
}, | |
"lines": false, | |
"linewidth": 1, | |
"nullPointMode": "null", | |
"options": { | |
"alertThreshold": true | |
}, | |
"percentage": false, | |
"pluginVersion": "7.5.5", | |
"pointradius": 2, | |
"points": false, | |
"renderer": "flot", | |
"seriesOverrides": [], | |
"spaceLength": 10, | |
"stack": false, | |
"steppedLine": false, | |
"targets": [ | |
{ | |
"exemplar": true, | |
"expr": "topk(10,sum(kube_pod_container_resource_requests{resource=\"cpu\"}) by (namespace))", | |
"interval": "", | |
"legendFormat": "{{namespace}}", | |
"refId": "A" | |
} | |
], | |
"thresholds": [], | |
"timeFrom": null, | |
"timeRegions": [], | |
"timeShift": null, | |
"title": "Top 10 project based on CPU requests", | |
"tooltip": { | |
"shared": false, | |
"sort": 0, | |
"value_type": "individual" | |
}, | |
"type": "graph", | |
"xaxis": { | |
"buckets": null, | |
"mode": "series", | |
"name": null, | |
"show": true, | |
"values": [ | |
"current" | |
] | |
}, | |
"yaxes": [ | |
{ | |
"format": "short", | |
"label": "Cores", | |
"logBase": 1, | |
"max": null, | |
"min": null, | |
"show": true | |
}, | |
{ | |
"format": "short", | |
"label": null, | |
"logBase": 1, | |
"max": null, | |
"min": null, | |
"show": true | |
} | |
], | |
"yaxis": { | |
"align": false, | |
"alignLevel": null | |
} | |
}, | |
{ | |
"aliasColors": {}, | |
"bars": false, | |
"dashLength": 10, | |
"dashes": false, | |
"datasource": "$cluster", | |
"decimals": null, | |
"fieldConfig": { | |
"defaults": { | |
"links": [] | |
}, | |
"overrides": [] | |
}, | |
"fill": 1, | |
"fillGradient": 0, | |
"gridPos": { | |
"h": 7, | |
"w": 12, | |
"x": 12, | |
"y": 16 | |
}, | |
"hiddenSeries": false, | |
"id": 93, | |
"legend": { | |
"alignAsTable": true, | |
"avg": true, | |
"current": true, | |
"max": false, | |
"min": false, | |
"rightSide": true, | |
"show": true, | |
"total": false, | |
"values": true | |
}, | |
"lines": true, | |
"linewidth": 1, | |
"nullPointMode": "null", | |
"options": { | |
"alertThreshold": true | |
}, | |
"percentage": false, | |
"pluginVersion": "7.5.5", | |
"pointradius": 2, | |
"points": false, | |
"renderer": "flot", | |
"seriesOverrides": [], | |
"spaceLength": 10, | |
"stack": false, | |
"steppedLine": true, | |
"targets": [ | |
{ | |
"exemplar": true, | |
"expr": "sum(rate (container_cpu_usage_seconds_total{image!=\"\",kubernetes_io_hostname=~\"^$Node$\", namespace=~\"^$namespace$\",container=~\"^$application$\"}[5m])) by (pod)", | |
"hide": false, | |
"interval": "10s", | |
"legendFormat": "{{pod}}", | |
"refId": "A" | |
} | |
], | |
"thresholds": [], | |
"timeFrom": null, | |
"timeRegions": [], | |
"timeShift": null, | |
"title": "Pods based CPU usage", | |
"tooltip": { | |
"shared": true, | |
"sort": 2, | |
"value_type": "individual" | |
}, | |
"type": "graph", | |
"xaxis": { | |
"buckets": null, | |
"mode": "time", | |
"name": null, | |
"show": true, | |
"values": [] | |
}, | |
"yaxes": [ | |
{ | |
"format": "short", | |
"label": "cores", | |
"logBase": 1, | |
"max": null, | |
"min": null, | |
"show": true | |
}, | |
{ | |
"format": "short", | |
"label": null, | |
"logBase": 1, | |
"max": null, | |
"min": null, | |
"show": true | |
} | |
], | |
"yaxis": { | |
"align": false, | |
"alignLevel": null | |
} | |
}, | |
{ | |
"aliasColors": {}, | |
"bars": true, | |
"dashLength": 10, | |
"dashes": false, | |
"datasource": "$cluster", | |
"fieldConfig": { | |
"defaults": { | |
"links": [] | |
}, | |
"overrides": [] | |
}, | |
"fill": 1, | |
"fillGradient": 0, | |
"gridPos": { | |
"h": 7, | |
"w": 12, | |
"x": 0, | |
"y": 23 | |
}, | |
"hiddenSeries": false, | |
"id": 89, | |
"legend": { | |
"alignAsTable": false, | |
"avg": false, | |
"current": true, | |
"hideEmpty": false, | |
"hideZero": false, | |
"max": false, | |
"min": false, | |
"rightSide": false, | |
"show": false, | |
"total": false, | |
"values": true | |
}, | |
"lines": false, | |
"linewidth": 1, | |
"nullPointMode": "null", | |
"options": { | |
"alertThreshold": true | |
}, | |
"percentage": false, | |
"pluginVersion": "7.5.5", | |
"pointradius": 2, | |
"points": false, | |
"renderer": "flot", | |
"seriesOverrides": [], | |
"spaceLength": 10, | |
"stack": false, | |
"steppedLine": false, | |
"targets": [ | |
{ | |
"exemplar": true, | |
"expr": "topk(10,sum(kube_pod_container_resource_requests{resource=\"memory\"}) by (namespace))", | |
"format": "time_series", | |
"interval": "", | |
"legendFormat": "{{namespace}}", | |
"refId": "A" | |
} | |
], | |
"thresholds": [], | |
"timeFrom": null, | |
"timeRegions": [], | |
"timeShift": null, | |
"title": "Top 10 project based on mem request", | |
"tooltip": { | |
"shared": false, | |
"sort": 1, | |
"value_type": "individual" | |
}, | |
"type": "graph", | |
"xaxis": { | |
"buckets": null, | |
"mode": "series", | |
"name": null, | |
"show": true, | |
"values": [ | |
"current" | |
] | |
}, | |
"yaxes": [ | |
{ | |
"format": "decbytes", | |
"label": null, | |
"logBase": 1, | |
"max": null, | |
"min": null, | |
"show": true | |
}, | |
{ | |
"format": "bytes", | |
"label": null, | |
"logBase": 1, | |
"max": null, | |
"min": null, | |
"show": true | |
} | |
], | |
"yaxis": { | |
"align": false, | |
"alignLevel": null | |
} | |
}, | |
{ | |
"aliasColors": {}, | |
"bars": false, | |
"dashLength": 10, | |
"dashes": false, | |
"datasource": "$cluster", | |
"decimals": 1, | |
"fieldConfig": { | |
"defaults": { | |
"links": [] | |
}, | |
"overrides": [] | |
}, | |
"fill": 1, | |
"fillGradient": 0, | |
"gridPos": { | |
"h": 7, | |
"w": 12, | |
"x": 12, | |
"y": 23 | |
}, | |
"hiddenSeries": false, | |
"id": 95, | |
"interval": "", | |
"legend": { | |
"alignAsTable": true, | |
"avg": true, | |
"current": true, | |
"hideEmpty": false, | |
"max": true, | |
"min": true, | |
"rightSide": true, | |
"show": true, | |
"total": false, | |
"values": true | |
}, | |
"lines": true, | |
"linewidth": 1, | |
"nullPointMode": "null", | |
"options": { | |
"alertThreshold": true | |
}, | |
"percentage": false, | |
"pluginVersion": "7.5.5", | |
"pointradius": 2, | |
"points": false, | |
"renderer": "flot", | |
"seriesOverrides": [], | |
"spaceLength": 10, | |
"stack": false, | |
"steppedLine": true, | |
"targets": [ | |
{ | |
"exemplar": true, | |
"expr": "sum(container_memory_working_set_bytes{container!=\"\" ,namespace=~\"^$namespace$\",container=~\"^$application$\", container!=\"POD\"}) by (pod)", | |
"format": "time_series", | |
"interval": "", | |
"intervalFactor": 2, | |
"legendFormat": "{{pod}}", | |
"refId": "A" | |
} | |
], | |
"thresholds": [], | |
"timeFrom": null, | |
"timeRegions": [], | |
"timeShift": null, | |
"title": "Pods based Memory usage", | |
"tooltip": { | |
"shared": true, | |
"sort": 0, | |
"value_type": "individual" | |
}, | |
"type": "graph", | |
"xaxis": { | |
"buckets": null, | |
"mode": "time", | |
"name": null, | |
"show": true, | |
"values": [] | |
}, | |
"yaxes": [ | |
{ | |
"decimals": null, | |
"format": "decbytes", | |
"label": "", | |
"logBase": 1, | |
"max": null, | |
"min": null, | |
"show": true | |
}, | |
{ | |
"decimals": null, | |
"format": "decbytes", | |
"label": "", | |
"logBase": 1, | |
"max": null, | |
"min": null, | |
"show": true | |
} | |
], | |
"yaxis": { | |
"align": false, | |
"alignLevel": 7 | |
} | |
}, | |
{ | |
"aliasColors": {}, | |
"bars": false, | |
"dashLength": 10, | |
"dashes": false, | |
"datasource": "$cluster", | |
"fieldConfig": { | |
"defaults": { | |
"links": [] | |
}, | |
"overrides": [] | |
}, | |
"fill": 1, | |
"fillGradient": 0, | |
"gridPos": { | |
"h": 6, | |
"w": 24, | |
"x": 0, | |
"y": 30 | |
}, | |
"hiddenSeries": false, | |
"id": 101, | |
"legend": { | |
"avg": false, | |
"current": false, | |
"max": false, | |
"min": false, | |
"show": true, | |
"total": false, | |
"values": false | |
}, | |
"lines": true, | |
"linewidth": 1, | |
"nullPointMode": "null", | |
"options": { | |
"alertThreshold": true | |
}, | |
"percentage": false, | |
"pluginVersion": "7.5.5", | |
"pointradius": 2, | |
"points": false, | |
"renderer": "flot", | |
"seriesOverrides": [], | |
"spaceLength": 10, | |
"stack": false, | |
"steppedLine": false, | |
"targets": [ | |
{ | |
"exemplar": true, | |
"expr": "increase(kube_pod_container_status_restarts_total[5m]) > 0", | |
"interval": "", | |
"legendFormat": "{{container}}", | |
"refId": "A" | |
} | |
], | |
"thresholds": [], | |
"timeFrom": null, | |
"timeRegions": [], | |
"timeShift": null, | |
"title": "Container restart", | |
"tooltip": { | |
"shared": true, | |
"sort": 0, | |
"value_type": "individual" | |
}, | |
"type": "graph", | |
"xaxis": { | |
"buckets": null, | |
"mode": "time", | |
"name": null, | |
"show": true, | |
"values": [] | |
}, | |
"yaxes": [ | |
{ | |
"format": "short", | |
"label": null, | |
"logBase": 1, | |
"max": null, | |
"min": null, | |
"show": true | |
}, | |
{ | |
"format": "short", | |
"label": null, | |
"logBase": 1, | |
"max": null, | |
"min": null, | |
"show": true | |
} | |
], | |
"yaxis": { | |
"align": false, | |
"alignLevel": null | |
} | |
}, | |
{ | |
"collapsed": false, | |
"datasource": "Prometheus", | |
"gridPos": { | |
"h": 1, | |
"w": 24, | |
"x": 0, | |
"y": 36 | |
}, | |
"id": 103, | |
"panels": [], | |
"title": "Apiserver", | |
"type": "row" | |
}, | |
{ | |
"aliasColors": {}, | |
"bars": false, | |
"dashLength": 10, | |
"dashes": false, | |
"datasource": "$cluster", | |
"fieldConfig": { | |
"defaults": { | |
"links": [] | |
}, | |
"overrides": [] | |
}, | |
"fill": 1, | |
"fillGradient": 0, | |
"gridPos": { | |
"h": 8, | |
"w": 12, | |
"x": 0, | |
"y": 37 | |
}, | |
"hiddenSeries": false, | |
"id": 105, | |
"legend": { | |
"avg": false, | |
"current": false, | |
"max": false, | |
"min": false, | |
"show": true, | |
"total": false, | |
"values": false | |
}, | |
"lines": true, | |
"linewidth": 1, | |
"nullPointMode": "null", | |
"options": { | |
"alertThreshold": true | |
}, | |
"percentage": false, | |
"pluginVersion": "7.5.5", | |
"pointradius": 2, | |
"points": false, | |
"renderer": "flot", | |
"seriesOverrides": [], | |
"spaceLength": 10, | |
"stack": false, | |
"steppedLine": false, | |
"targets": [ | |
{ | |
"expr": "sum(rate(apiserver_request_total[5m])) by (verb)", | |
"interval": "", | |
"legendFormat": "{{verb}}", | |
"refId": "A" | |
} | |
], | |
"thresholds": [], | |
"timeFrom": null, | |
"timeRegions": [], | |
"timeShift": null, | |
"title": "Apiserver request rate", | |
"tooltip": { | |
"shared": true, | |
"sort": 0, | |
"value_type": "individual" | |
}, | |
"type": "graph", | |
"xaxis": { | |
"buckets": null, | |
"mode": "time", | |
"name": null, | |
"show": true, | |
"values": [] | |
}, | |
"yaxes": [ | |
{ | |
"format": "short", | |
"label": null, | |
"logBase": 1, | |
"max": null, | |
"min": null, | |
"show": true | |
}, | |
{ | |
"format": "short", | |
"label": null, | |
"logBase": 1, | |
"max": null, | |
"min": null, | |
"show": true | |
} | |
], | |
"yaxis": { | |
"align": false, | |
"alignLevel": null | |
} | |
}, | |
{ | |
"aliasColors": {}, | |
"bars": false, | |
"dashLength": 10, | |
"dashes": false, | |
"datasource": "$cluster", | |
"fieldConfig": { | |
"defaults": { | |
"links": [] | |
}, | |
"overrides": [] | |
}, | |
"fill": 1, | |
"fillGradient": 0, | |
"gridPos": { | |
"h": 8, | |
"w": 12, | |
"x": 12, | |
"y": 37 | |
}, | |
"hiddenSeries": false, | |
"id": 115, | |
"legend": { | |
"avg": false, | |
"current": false, | |
"max": false, | |
"min": false, | |
"show": true, | |
"total": false, | |
"values": false | |
}, | |
"lines": true, | |
"linewidth": 1, | |
"nullPointMode": "null", | |
"options": { | |
"alertThreshold": true | |
}, | |
"percentage": false, | |
"pluginVersion": "7.5.5", | |
"pointradius": 2, | |
"points": false, | |
"renderer": "flot", | |
"seriesOverrides": [], | |
"spaceLength": 10, | |
"stack": false, | |
"steppedLine": false, | |
"targets": [ | |
{ | |
"expr": "sum by (code) (rate(apiserver_request_total[5m]))", | |
"interval": "", | |
"legendFormat": "", | |
"refId": "A" | |
} | |
], | |
"thresholds": [], | |
"timeFrom": null, | |
"timeRegions": [], | |
"timeShift": null, | |
"title": "API server total requests code", | |
"tooltip": { | |
"shared": true, | |
"sort": 0, | |
"value_type": "individual" | |
}, | |
"type": "graph", | |
"xaxis": { | |
"buckets": null, | |
"mode": "time", | |
"name": null, | |
"show": true, | |
"values": [] | |
}, | |
"yaxes": [ | |
{ | |
"format": "percent", | |
"label": null, | |
"logBase": 1, | |
"max": null, | |
"min": null, | |
"show": true | |
}, | |
{ | |
"format": "short", | |
"label": null, | |
"logBase": 1, | |
"max": null, | |
"min": null, | |
"show": true | |
} | |
], | |
"yaxis": { | |
"align": false, | |
"alignLevel": null | |
} | |
}, | |
{ | |
"aliasColors": {}, | |
"bars": false, | |
"dashLength": 10, | |
"dashes": false, | |
"datasource": "$cluster", | |
"description": "95th percentile request latency for Kubernetes apiserver component", | |
"fieldConfig": { | |
"defaults": { | |
"links": [] | |
}, | |
"overrides": [] | |
}, | |
"fill": 1, | |
"fillGradient": 0, | |
"gridPos": { | |
"h": 8, | |
"w": 12, | |
"x": 0, | |
"y": 45 | |
}, | |
"hiddenSeries": false, | |
"id": 109, | |
"legend": { | |
"avg": false, | |
"current": false, | |
"max": false, | |
"min": false, | |
"show": true, | |
"total": false, | |
"values": false | |
}, | |
"lines": true, | |
"linewidth": 1, | |
"nullPointMode": "null", | |
"options": { | |
"alertThreshold": true | |
}, | |
"percentage": false, | |
"pluginVersion": "7.5.5", | |
"pointradius": 2, | |
"points": false, | |
"renderer": "flot", | |
"seriesOverrides": [], | |
"spaceLength": 10, | |
"stack": false, | |
"steppedLine": false, | |
"targets": [ | |
{ | |
"expr": "histogram_quantile(0.95, sum(rate(apiserver_request_duration_seconds_bucket{verb!~\"CONNECT|WATCH\"}[5m])) by (le))", | |
"interval": "", | |
"legendFormat": "p95", | |
"refId": "A" | |
}, | |
{ | |
"expr": "histogram_quantile(0.90, sum(rate(apiserver_request_duration_seconds_bucket{verb!~\"CONNECT|WATCH\"}[5m])) by (le))", | |
"interval": "", | |
"legendFormat": "p90", | |
"refId": "B" | |
}, | |
{ | |
"expr": "histogram_quantile(0.5, sum(rate(apiserver_request_duration_seconds_bucket{verb!~\"CONNECT|WATCH\"}[5m])) by (le))", | |
"interval": "", | |
"legendFormat": "p50 ", | |
"refId": "C" | |
} | |
], | |
"thresholds": [], | |
"timeFrom": null, | |
"timeRegions": [], | |
"timeShift": null, | |
"title": "Apiserver request latency", | |
"tooltip": { | |
"shared": true, | |
"sort": 0, | |
"value_type": "individual" | |
}, | |
"type": "graph", | |
"xaxis": { | |
"buckets": null, | |
"mode": "time", | |
"name": null, | |
"show": true, | |
"values": [] | |
}, | |
"yaxes": [ | |
{ | |
"format": "s", | |
"label": null, | |
"logBase": 1, | |
"max": null, | |
"min": null, | |
"show": true | |
}, | |
{ | |
"format": "short", | |
"label": null, | |
"logBase": 1, | |
"max": null, | |
"min": null, | |
"show": true | |
} | |
], | |
"yaxis": { | |
"align": false, | |
"alignLevel": null | |
} | |
}, | |
{ | |
"aliasColors": {}, | |
"bars": false, | |
"dashLength": 10, | |
"dashes": false, | |
"datasource": "$cluster", | |
"fieldConfig": { | |
"defaults": { | |
"links": [] | |
}, | |
"overrides": [] | |
}, | |
"fill": 1, | |
"fillGradient": 0, | |
"gridPos": { | |
"h": 8, | |
"w": 12, | |
"x": 12, | |
"y": 45 | |
}, | |
"hiddenSeries": false, | |
"id": 107, | |
"legend": { | |
"avg": false, | |
"current": false, | |
"max": false, | |
"min": false, | |
"show": true, | |
"total": false, | |
"values": false | |
}, | |
"lines": true, | |
"linewidth": 1, | |
"nullPointMode": "null", | |
"options": { | |
"alertThreshold": true | |
}, | |
"percentage": false, | |
"pluginVersion": "7.5.5", | |
"pointradius": 2, | |
"points": false, | |
"renderer": "flot", | |
"seriesOverrides": [], | |
"spaceLength": 10, | |
"stack": false, | |
"steppedLine": false, | |
"targets": [ | |
{ | |
"expr": "histogram_quantile(0.95, sum(rate(workqueue_queue_duration_seconds_bucket[5m])) by (le))", | |
"interval": "", | |
"legendFormat": "p95", | |
"refId": "A" | |
}, | |
{ | |
"expr": "histogram_quantile(0.90, sum(rate(workqueue_queue_duration_seconds_bucket[5m])) by (le))", | |
"interval": "", | |
"legendFormat": "p90", | |
"refId": "B" | |
}, | |
{ | |
"expr": "histogram_quantile(0.5, sum(rate(workqueue_queue_duration_seconds_bucket[5m])) by (le))", | |
"interval": "", | |
"legendFormat": "p50", | |
"refId": "C" | |
} | |
], | |
"thresholds": [], | |
"timeFrom": null, | |
"timeRegions": [], | |
"timeShift": null, | |
"title": "Workqueue service time", | |
"tooltip": { | |
"shared": true, | |
"sort": 0, | |
"value_type": "individual" | |
}, | |
"type": "graph", | |
"xaxis": { | |
"buckets": null, | |
"mode": "time", | |
"name": null, | |
"show": true, | |
"values": [] | |
}, | |
"yaxes": [ | |
{ | |
"format": "s", | |
"label": "service time", | |
"logBase": 1, | |
"max": null, | |
"min": null, | |
"show": true | |
}, | |
{ | |
"format": "short", | |
"label": null, | |
"logBase": 1, | |
"max": null, | |
"min": null, | |
"show": true | |
} | |
], | |
"yaxis": { | |
"align": false, | |
"alignLevel": null | |
} | |
}, | |
{ | |
"aliasColors": {}, | |
"bars": false, | |
"dashLength": 10, | |
"dashes": false, | |
"datasource": "$cluster", | |
"description": "etcd request latency (p95)", | |
"fieldConfig": { | |
"defaults": { | |
"links": [] | |
}, | |
"overrides": [] | |
}, | |
"fill": 1, | |
"fillGradient": 0, | |
"gridPos": { | |
"h": 8, | |
"w": 12, | |
"x": 0, | |
"y": 53 | |
}, | |
"hiddenSeries": false, | |
"id": 113, | |
"legend": { | |
"avg": false, | |
"current": false, | |
"max": false, | |
"min": false, | |
"show": true, | |
"total": false, | |
"values": false | |
}, | |
"lines": true, | |
"linewidth": 1, | |
"nullPointMode": "null", | |
"options": { | |
"alertThreshold": true | |
}, | |
"percentage": false, | |
"pluginVersion": "7.5.5", | |
"pointradius": 2, | |
"points": false, | |
"renderer": "flot", | |
"seriesOverrides": [], | |
"spaceLength": 10, | |
"stack": false, | |
"steppedLine": false, | |
"targets": [ | |
{ | |
"expr": "histogram_quantile(0.95, sum(rate(etcd_request_duration_seconds_bucket[5m])) by (le))", | |
"interval": "", | |
"legendFormat": "p95", | |
"refId": "A" | |
}, | |
{ | |
"expr": "histogram_quantile(0.90, sum(rate(etcd_request_duration_seconds_bucket[5m])) by (le))", | |
"interval": "", | |
"legendFormat": "p90", | |
"refId": "B" | |
}, | |
{ | |
"expr": "histogram_quantile(0.5, sum(rate(etcd_request_duration_seconds_bucket[5m])) by (le))", | |
"interval": "", | |
"legendFormat": "p50", | |
"refId": "C" | |
} | |
], | |
"thresholds": [], | |
"timeFrom": null, | |
"timeRegions": [], | |
"timeShift": null, | |
"title": "Etcd request latency", | |
"tooltip": { | |
"shared": true, | |
"sort": 0, | |
"value_type": "individual" | |
}, | |
"type": "graph", | |
"xaxis": { | |
"buckets": null, | |
"mode": "time", | |
"name": null, | |
"show": true, | |
"values": [] | |
}, | |
"yaxes": [ | |
{ | |
"format": "s", | |
"label": null, | |
"logBase": 1, | |
"max": null, | |
"min": null, | |
"show": true | |
}, | |
{ | |
"format": "short", | |
"label": null, | |
"logBase": 1, | |
"max": null, | |
"min": null, | |
"show": true | |
} | |
], | |
"yaxis": { | |
"align": false, | |
"alignLevel": null | |
} | |
}, | |
{ | |
"aliasColors": {}, | |
"bars": false, | |
"dashLength": 10, | |
"dashes": false, | |
"datasource": "$cluster", | |
"fieldConfig": { | |
"defaults": { | |
"links": [] | |
}, | |
"overrides": [] | |
}, | |
"fill": 1, | |
"fillGradient": 0, | |
"gridPos": { | |
"h": 8, | |
"w": 12, | |
"x": 12, | |
"y": 53 | |
}, | |
"hiddenSeries": false, | |
"id": 111, | |
"legend": { | |
"avg": false, | |
"current": false, | |
"max": false, | |
"min": false, | |
"show": true, | |
"total": false, | |
"values": false | |
}, | |
"lines": true, | |
"linewidth": 1, | |
"nullPointMode": "null", | |
"options": { | |
"alertThreshold": true | |
}, | |
"percentage": false, | |
"pluginVersion": "7.5.5", | |
"pointradius": 2, | |
"points": false, | |
"renderer": "flot", | |
"seriesOverrides": [], | |
"spaceLength": 10, | |
"stack": false, | |
"steppedLine": false, | |
"targets": [ | |
{ | |
"expr": "histogram_quantile(0.95, sum(rate(workqueue_work_duration_seconds_bucket[5m])) by (le))", | |
"interval": "", | |
"legendFormat": "p95", | |
"refId": "A" | |
}, | |
{ | |
"expr": "histogram_quantile(0.9, sum(rate(workqueue_work_duration_seconds_bucket[5m])) by (le))", | |
"interval": "", | |
"legendFormat": "p90", | |
"refId": "B" | |
}, | |
{ | |
"expr": "histogram_quantile(0.5, sum(rate(workqueue_work_duration_seconds_bucket[5m])) by (le))", | |
"interval": "", | |
"legendFormat": "p50", | |
"refId": "C" | |
} | |
], | |
"thresholds": [], | |
"timeFrom": null, | |
"timeRegions": [], | |
"timeShift": null, | |
"title": "Workqueue processing time", | |
"tooltip": { | |
"shared": true, | |
"sort": 0, | |
"value_type": "individual" | |
}, | |
"type": "graph", | |
"xaxis": { | |
"buckets": null, | |
"mode": "time", | |
"name": null, | |
"show": true, | |
"values": [] | |
}, | |
"yaxes": [ | |
{ | |
"format": "s", | |
"label": null, | |
"logBase": 1, | |
"max": null, | |
"min": null, | |
"show": true | |
}, | |
{ | |
"format": "short", | |
"label": null, | |
"logBase": 1, | |
"max": null, | |
"min": null, | |
"show": true | |
} | |
], | |
"yaxis": { | |
"align": false, | |
"alignLevel": null | |
} | |
}, | |
{ | |
"collapsed": false, | |
"datasource": "Prometheus", | |
"gridPos": { | |
"h": 1, | |
"w": 24, | |
"x": 0, | |
"y": 61 | |
}, | |
"id": 34, | |
"panels": [], | |
"title": "Network I/O", | |
"type": "row" | |
}, | |
{ | |
"aliasColors": {}, | |
"bars": false, | |
"dashLength": 10, | |
"dashes": false, | |
"datasource": "$cluster", | |
"decimals": 2, | |
"fieldConfig": { | |
"defaults": { | |
"links": [] | |
}, | |
"overrides": [] | |
}, | |
"fill": 1, | |
"fillGradient": 0, | |
"gridPos": { | |
"h": 6, | |
"w": 12, | |
"x": 0, | |
"y": 62 | |
}, | |
"hiddenSeries": false, | |
"id": 57, | |
"legend": { | |
"alignAsTable": true, | |
"avg": true, | |
"current": true, | |
"max": false, | |
"min": false, | |
"rightSide": true, | |
"show": true, | |
"sideWidth": 200, | |
"total": false, | |
"values": true | |
}, | |
"lines": true, | |
"linewidth": 1, | |
"links": [], | |
"nullPointMode": "connected", | |
"options": { | |
"alertThreshold": true | |
}, | |
"percentage": false, | |
"pluginVersion": "7.5.5", | |
"pointradius": 5, | |
"points": false, | |
"renderer": "flot", | |
"seriesOverrides": [], | |
"spaceLength": 10, | |
"stack": false, | |
"steppedLine": false, | |
"targets": [ | |
{ | |
"exemplar": true, | |
"expr": "sum (rate (container_network_receive_bytes_total{image!=\"\",kubernetes_io_hostname=~\"^$Node$\"}[2m])) by (kubernetes_io_role)", | |
"format": "time_series", | |
"interval": "10s", | |
"intervalFactor": 1, | |
"legendFormat": "-> {{ kubernetes_io_role }}", | |
"refId": "A" | |
}, | |
{ | |
"exemplar": true, | |
"expr": "- sum (rate (container_network_transmit_bytes_total{image!=\"\",kubernetes_io_hostname=~\"^$Node$\"}[2m])) by (kubernetes_io_role)", | |
"format": "time_series", | |
"interval": "10s", | |
"intervalFactor": 1, | |
"legendFormat": "<- {{ kubernetes_io_role }}", | |
"refId": "B" | |
}, | |
{ | |
"exemplar": true, | |
"expr": "sum (rate (container_network_receive_bytes_total{image!=\"\",kubernetes_io_hostname=~\"^$Node$\"}[2m])) by (kubernetes_io_role,kubernetes_io_hostname)", | |
"format": "time_series", | |
"interval": "10s", | |
"intervalFactor": 1, | |
"legendFormat": "-> {{ kubernetes_io_role }}: {{ kubernetes_io_hostname }}", | |
"refId": "C" | |
}, | |
{ | |
"exemplar": true, | |
"expr": "- sum (rate (container_network_transmit_bytes_total{image!=\"\",kubernetes_io_hostname=~\"^$Node$\"}[2m])) by (kubernetes_io_role,kubernetes_io_hostname)", | |
"format": "time_series", | |
"interval": "10s", | |
"intervalFactor": 1, | |
"legendFormat": "<- {{ kubernetes_io_role }}: {{ kubernetes_io_hostname }}", | |
"refId": "D" | |
} | |
], | |
"thresholds": [], | |
"timeFrom": null, | |
"timeRegions": [], | |
"timeShift": null, | |
"title": "Nodes network I/O (2m avg)", | |
"tooltip": { | |
"shared": true, | |
"sort": 2, | |
"value_type": "individual" | |
}, | |
"type": "graph", | |
"xaxis": { | |
"buckets": null, | |
"mode": "time", | |
"name": null, | |
"show": true, | |
"values": [] | |
}, | |
"yaxes": [ | |
{ | |
"format": "Bps", | |
"label": null, | |
"logBase": 1, | |
"max": null, | |
"min": null, | |
"show": true | |
}, | |
{ | |
"format": "short", | |
"label": null, | |
"logBase": 1, | |
"max": null, | |
"min": null, | |
"show": false | |
} | |
], | |
"yaxis": { | |
"align": false, | |
"alignLevel": null | |
} | |
}, | |
{ | |
"aliasColors": {}, | |
"bars": false, | |
"dashLength": 10, | |
"dashes": false, | |
"datasource": "$cluster", | |
"decimals": 2, | |
"editable": true, | |
"error": false, | |
"fieldConfig": { | |
"defaults": { | |
"links": [] | |
}, | |
"overrides": [] | |
}, | |
"fill": 1, | |
"fillGradient": 0, | |
"grid": {}, | |
"gridPos": { | |
"h": 6, | |
"w": 12, | |
"x": 12, | |
"y": 62 | |
}, | |
"hiddenSeries": false, | |
"id": 16, | |
"isNew": true, | |
"legend": { | |
"alignAsTable": true, | |
"avg": true, | |
"current": true, | |
"max": false, | |
"min": false, | |
"rightSide": true, | |
"show": true, | |
"sideWidth": 200, | |
"sort": "current", | |
"sortDesc": true, | |
"total": false, | |
"values": true | |
}, | |
"lines": true, | |
"linewidth": 1, | |
"links": [], | |
"nullPointMode": "connected", | |
"options": { | |
"alertThreshold": true | |
}, | |
"percentage": false, | |
"pluginVersion": "7.5.5", | |
"pointradius": 5, | |
"points": false, | |
"renderer": "flot", | |
"seriesOverrides": [], | |
"spaceLength": 10, | |
"stack": false, | |
"steppedLine": false, | |
"targets": [ | |
{ | |
"exemplar": true, | |
"expr": "sum (rate (container_network_receive_bytes_total{image!=\"\",kubernetes_io_hostname=~\"^$Node$\"}[2m])) by (pod_name)", | |
"format": "time_series", | |
"interval": "10s", | |
"intervalFactor": 1, | |
"legendFormat": "-> {{ pod_name }}", | |
"metric": "network", | |
"refId": "A", | |
"step": 10 | |
}, | |
{ | |
"exemplar": true, | |
"expr": "- sum (rate (container_network_transmit_bytes_total{image!=\"\",kubernetes_io_hostname=~\"^$Node$\"}[2m])) by (pod_name)", | |
"format": "time_series", | |
"interval": "10s", | |
"intervalFactor": 1, | |
"legendFormat": "<- {{ pod_name }}", | |
"metric": "network", | |
"refId": "B", | |
"step": 10 | |
} | |
], | |
"thresholds": [], | |
"timeFrom": null, | |
"timeRegions": [], | |
"timeShift": null, | |
"title": "Pods network I/O (2m avg)", | |
"tooltip": { | |
"msResolution": false, | |
"shared": true, | |
"sort": 2, | |
"value_type": "cumulative" | |
}, | |
"type": "graph", | |
"xaxis": { | |
"buckets": null, | |
"mode": "time", | |
"name": null, | |
"show": true, | |
"values": [] | |
}, | |
"yaxes": [ | |
{ | |
"format": "Bps", | |
"label": null, | |
"logBase": 1, | |
"max": null, | |
"min": null, | |
"show": true | |
}, | |
{ | |
"format": "short", | |
"label": null, | |
"logBase": 1, | |
"max": null, | |
"min": null, | |
"show": false | |
} | |
], | |
"yaxis": { | |
"align": false, | |
"alignLevel": null | |
} | |
}, | |
{ | |
"aliasColors": {}, | |
"bars": false, | |
"dashLength": 10, | |
"dashes": false, | |
"datasource": "$cluster", | |
"decimals": 2, | |
"editable": true, | |
"error": false, | |
"fieldConfig": { | |
"defaults": { | |
"links": [] | |
}, | |
"overrides": [] | |
}, | |
"fill": 1, | |
"fillGradient": 0, | |
"grid": {}, | |
"gridPos": { | |
"h": 5, | |
"w": 24, | |
"x": 0, | |
"y": 68 | |
}, | |
"height": "200px", | |
"hiddenSeries": false, | |
"id": 32, | |
"isNew": true, | |
"legend": { | |
"alignAsTable": true, | |
"avg": false, | |
"current": true, | |
"max": false, | |
"min": false, | |
"rightSide": true, | |
"show": true, | |
"sideWidth": 200, | |
"sort": "current", | |
"sortDesc": true, | |
"total": false, | |
"values": true | |
}, | |
"lines": true, | |
"linewidth": 1, | |
"links": [], | |
"nullPointMode": "connected", | |
"options": { | |
"alertThreshold": true | |
}, | |
"percentage": false, | |
"pluginVersion": "7.5.5", | |
"pointradius": 5, | |
"points": false, | |
"renderer": "flot", | |
"seriesOverrides": [], | |
"spaceLength": 10, | |
"stack": false, | |
"steppedLine": false, | |
"targets": [ | |
{ | |
"expr": "sum (rate (container_network_receive_bytes_total{kubernetes_io_hostname=~\"^$Node$\"}[2m]))", | |
"format": "time_series", | |
"interval": "10s", | |
"intervalFactor": 1, | |
"legendFormat": "Received", | |
"metric": "network", | |
"refId": "A", | |
"step": 10 | |
}, | |
{ | |
"expr": "- sum (rate (container_network_transmit_bytes_total{kubernetes_io_hostname=~\"^$Node$\"}[2m]))", | |
"format": "time_series", | |
"interval": "10s", | |
"intervalFactor": 1, | |
"legendFormat": "Sent", | |
"metric": "network", | |
"refId": "B", | |
"step": 10 | |
} | |
], | |
"thresholds": [], | |
"timeFrom": null, | |
"timeRegions": [], | |
"timeShift": null, | |
"title": "Network I/O (2m avg)", | |
"tooltip": { | |
"msResolution": false, | |
"shared": true, | |
"sort": 0, | |
"value_type": "cumulative" | |
}, | |
"type": "graph", | |
"xaxis": { | |
"buckets": null, | |
"mode": "time", | |
"name": null, | |
"show": true, | |
"values": [] | |
}, | |
"yaxes": [ | |
{ | |
"format": "Bps", | |
"label": null, | |
"logBase": 1, | |
"max": null, | |
"min": null, | |
"show": true | |
}, | |
{ | |
"format": "Bps", | |
"label": null, | |
"logBase": 1, | |
"max": null, | |
"min": null, | |
"show": false | |
} | |
], | |
"yaxis": { | |
"align": false, | |
"alignLevel": null | |
} | |
} | |
], | |
"refresh": "", | |
"schemaVersion": 27, | |
"style": "dark", | |
"tags": [ | |
"kubernetes", | |
"prometheus" | |
], | |
"templating": { | |
"list": [ | |
{ | |
"current": { | |
"selected": false, | |
"text": "Prometheus", | |
"value": "Prometheus" | |
}, | |
"description": null, | |
"error": null, | |
"hide": 0, | |
"includeAll": false, | |
"label": null, | |
"multi": false, | |
"name": "cluster", | |
"options": [], | |
"query": "prometheus", | |
"queryValue": "", | |
"refresh": 1, | |
"regex": "", | |
"skipUrlSync": false, | |
"type": "datasource" | |
}, | |
{ | |
"allValue": ".*", | |
"current": { | |
"selected": false, | |
"text": "All", | |
"value": "$__all" | |
}, | |
"datasource": "$cluster", | |
"definition": "label_values(node)", | |
"description": null, | |
"error": null, | |
"hide": 0, | |
"includeAll": true, | |
"label": null, | |
"multi": false, | |
"name": "Node", | |
"options": [], | |
"query": { | |
"query": "label_values(node)", | |
"refId": "Kafka-Node-Variable-Query" | |
}, | |
"refresh": 1, | |
"regex": "", | |
"skipUrlSync": false, | |
"sort": 0, | |
"tagValuesQuery": "", | |
"tags": [], | |
"tagsQuery": "", | |
"type": "query", | |
"useTags": false | |
}, | |
{ | |
"allValue": null, | |
"current": { | |
"selected": true, | |
"text": [ | |
"kube-system" | |
], | |
"value": [ | |
"kube-system" | |
] | |
}, | |
"datasource": "$cluster", | |
"definition": "label_values(namespace)", | |
"description": null, | |
"error": null, | |
"hide": 0, | |
"includeAll": false, | |
"label": null, | |
"multi": false, | |
"name": "namespace", | |
"options": [], | |
"query": { | |
"query": "label_values(namespace)", | |
"refId": "StandardVariableQuery" | |
}, | |
"refresh": 1, | |
"regex": "", | |
"skipUrlSync": false, | |
"sort": 0, | |
"tagValuesQuery": "", | |
"tags": [], | |
"tagsQuery": "", | |
"type": "query", | |
"useTags": false | |
}, | |
{ | |
"allValue": null, | |
"current": { | |
"selected": true, | |
"text": [ | |
"All" | |
], | |
"value": [ | |
"$__all" | |
] | |
}, | |
"datasource": "$cluster", | |
"definition": "label_values(container_cpu_usage_seconds_total{namespace=\"$namespace\",container!=\"POD\"},container)", | |
"description": null, | |
"error": null, | |
"hide": 0, | |
"includeAll": true, | |
"label": null, | |
"multi": true, | |
"name": "application", | |
"options": [], | |
"query": { | |
"query": "label_values(container_cpu_usage_seconds_total{namespace=\"$namespace\",container!=\"POD\"},container)", | |
"refId": "Kafka-application-Variable-Query" | |
}, | |
"refresh": 1, | |
"regex": "", | |
"skipUrlSync": false, | |
"sort": 0, | |
"tagValuesQuery": "", | |
"tags": [], | |
"tagsQuery": "", | |
"type": "query", | |
"useTags": false | |
} | |
] | |
}, | |
"time": { | |
"from": "now-3h", | |
"to": "now" | |
}, | |
"timepicker": { | |
"refresh_intervals": [ | |
"5s", | |
"10s", | |
"30s", | |
"2m", | |
"5m", | |
"15m", | |
"30m", | |
"1h", | |
"2h", | |
"1d" | |
], | |
"time_options": [ | |
"5m", | |
"15m", | |
"1h", | |
"6h", | |
"12h", | |
"24h", | |
"2d", | |
"7d", | |
"30d" | |
] | |
}, | |
"timezone": "browser", | |
"title": "Kubernetes Monitoring Overview", | |
"uid": "PS6YsKknk", | |
"version": 1 | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment