{ "annotations": { "list": [ { "builtIn": 1, "datasource": {"type": "grafana", "uid": "-- Grafana --"}, "enable": true, "hide": true, "iconColor": "rgba(0, 211, 255, 1)", "name": "Annotations & Alerts", "type": "dashboard" } ] }, "editable": true, "fiscalYearStartMonth": 0, "graphTooltip": 0, "id": null, "liveNow": false, "panels": [ { "type": "row", "title": "CPU", "gridPos": {"h": 1, "w": 24, "x": 0, "y": 0}, "id": 100, "collapsed": false, "panels": [] }, { "type": "gauge", "title": "CPU usage by node (avg %)", "id": 1, "datasource": {"type": "prometheus", "uid": "${DS_PROMETHEUS}"}, "gridPos": {"h": 8, "w": 12, "x": 0, "y": 1}, "fieldConfig": { "defaults": { "unit": "percentunit", "min": 0, "max": 1, "thresholds": { "mode": "absolute", "steps": [ {"color": "green", "value": null}, {"color": "yellow", "value": 0.6}, {"color": "red", "value": 0.8} ] } }, "overrides": [] }, "options": { "reduceOptions": {"calcs": ["lastNotNull"], "fields": "", "values": false}, "orientation": "auto", "showThresholdLabels": false, "showThresholdMarkers": true }, "targets": [ { "refId": "A", "datasource": {"type": "prometheus", "uid": "${DS_PROMETHEUS}"}, "expr": "avg by (instance) (rate(node_cpu_seconds_total{mode!=\"idle\"}[5m]))", "legendFormat": "{{instance}}" } ] }, { "type": "timeseries", "title": "CPU usage by node (1h)", "id": 2, "datasource": {"type": "prometheus", "uid": "${DS_PROMETHEUS}"}, "gridPos": {"h": 8, "w": 12, "x": 12, "y": 1}, "fieldConfig": { "defaults": {"unit": "percentunit", "min": 0, "max": 1}, "overrides": [] }, "options": {"legend": {"displayMode": "list", "placement": "bottom"}, "tooltip": {"mode": "multi"}}, "targets": [ { "refId": "A", "datasource": {"type": "prometheus", "uid": "${DS_PROMETHEUS}"}, "expr": "avg by (instance) (rate(node_cpu_seconds_total{mode!=\"idle\"}[5m]))", "legendFormat": "{{instance}}" } ] }, { "type": "row", "title": "Memory", "gridPos": {"h": 1, "w": 24, "x": 0, "y": 9}, "id": 101, "collapsed": false, "panels": [] }, { "type": "gauge", "title": "Memory usage by node (%)", "id": 3, "datasource": {"type": "prometheus", "uid": "${DS_PROMETHEUS}"}, "gridPos": {"h": 8, "w": 12, "x": 0, "y": 10}, "fieldConfig": { "defaults": { "unit": "percentunit", "min": 0, "max": 1, "thresholds": { "mode": "absolute", "steps": [ {"color": "green", "value": null}, {"color": "yellow", "value": 0.7}, {"color": "red", "value": 0.85} ] } }, "overrides": [] }, "options": { "reduceOptions": {"calcs": ["lastNotNull"], "fields": "", "values": false}, "orientation": "auto", "showThresholdLabels": false, "showThresholdMarkers": true }, "targets": [ { "refId": "A", "datasource": {"type": "prometheus", "uid": "${DS_PROMETHEUS}"}, "expr": "(1 - node_memory_MemAvailable_bytes / node_memory_MemTotal_bytes)", "legendFormat": "{{instance}}" } ] }, { "type": "timeseries", "title": "Memory usage over time", "id": 4, "datasource": {"type": "prometheus", "uid": "${DS_PROMETHEUS}"}, "gridPos": {"h": 8, "w": 12, "x": 12, "y": 10}, "fieldConfig": {"defaults": {"unit": "percentunit", "min": 0, "max": 1}, "overrides": []}, "options": {"legend": {"displayMode": "list", "placement": "bottom"}, "tooltip": {"mode": "multi"}}, "targets": [ { "refId": "A", "datasource": {"type": "prometheus", "uid": "${DS_PROMETHEUS}"}, "expr": "(1 - node_memory_MemAvailable_bytes / node_memory_MemTotal_bytes)", "legendFormat": "{{instance}}" } ] }, { "type": "row", "title": "Disk", "gridPos": {"h": 1, "w": 24, "x": 0, "y": 18}, "id": 102, "collapsed": false, "panels": [] }, { "type": "gauge", "title": "Filesystem usage by mountpoint", "id": 5, "datasource": {"type": "prometheus", "uid": "${DS_PROMETHEUS}"}, "gridPos": {"h": 8, "w": 24, "x": 0, "y": 19}, "fieldConfig": { "defaults": { "unit": "percentunit", "min": 0, "max": 1, "thresholds": { "mode": "absolute", "steps": [ {"color": "green", "value": null}, {"color": "yellow", "value": 0.75}, {"color": "red", "value": 0.9} ] } }, "overrides": [] }, "options": { "reduceOptions": {"calcs": ["lastNotNull"], "fields": "", "values": false}, "orientation": "auto", "showThresholdLabels": false, "showThresholdMarkers": true }, "targets": [ { "refId": "A", "datasource": {"type": "prometheus", "uid": "${DS_PROMETHEUS}"}, "expr": "(1 - node_filesystem_avail_bytes{fstype!=\"tmpfs\"} / node_filesystem_size_bytes{fstype!=\"tmpfs\"})", "legendFormat": "{{instance}} {{mountpoint}}" } ] }, { "type": "row", "title": "Network", "gridPos": {"h": 1, "w": 24, "x": 0, "y": 27}, "id": 103, "collapsed": false, "panels": [] }, { "type": "timeseries", "title": "Network received (bytes/s)", "id": 6, "datasource": {"type": "prometheus", "uid": "${DS_PROMETHEUS}"}, "gridPos": {"h": 8, "w": 12, "x": 0, "y": 28}, "fieldConfig": {"defaults": {"unit": "Bps"}, "overrides": []}, "options": {"legend": {"displayMode": "list", "placement": "bottom"}, "tooltip": {"mode": "multi"}}, "targets": [ { "refId": "A", "datasource": {"type": "prometheus", "uid": "${DS_PROMETHEUS}"}, "expr": "sum by (instance) (rate(node_network_receive_bytes_total[5m]))", "legendFormat": "{{instance}}" } ] }, { "type": "timeseries", "title": "Network transmitted (bytes/s)", "id": 7, "datasource": {"type": "prometheus", "uid": "${DS_PROMETHEUS}"}, "gridPos": {"h": 8, "w": 12, "x": 12, "y": 28}, "fieldConfig": {"defaults": {"unit": "Bps"}, "overrides": []}, "options": {"legend": {"displayMode": "list", "placement": "bottom"}, "tooltip": {"mode": "multi"}}, "targets": [ { "refId": "A", "datasource": {"type": "prometheus", "uid": "${DS_PROMETHEUS}"}, "expr": "sum by (instance) (rate(node_network_transmit_bytes_total[5m]))", "legendFormat": "{{instance}}" } ] }, { "type": "row", "title": "Pods", "gridPos": {"h": 1, "w": 24, "x": 0, "y": 36}, "id": 104, "collapsed": false, "panels": [] }, { "type": "stat", "title": "Pods per node", "id": 8, "datasource": {"type": "prometheus", "uid": "${DS_PROMETHEUS}"}, "gridPos": {"h": 6, "w": 24, "x": 0, "y": 37}, "fieldConfig": {"defaults": {"unit": "short"}, "overrides": []}, "options": { "reduceOptions": {"calcs": ["lastNotNull"], "fields": "", "values": false}, "orientation": "auto", "textMode": "auto", "colorMode": "value", "graphMode": "area" }, "targets": [ { "refId": "A", "datasource": {"type": "prometheus", "uid": "${DS_PROMETHEUS}"}, "expr": "count by (node) (kube_pod_info)", "legendFormat": "{{node}}" } ] } ], "refresh": "30s", "schemaVersion": 39, "style": "dark", "tags": ["samosachaat", "nodes"], "templating": { "list": [ { "current": {"selected": false, "text": "Prometheus", "value": "prometheus"}, "hide": 0, "includeAll": false, "label": "Datasource", "multi": false, "name": "DS_PROMETHEUS", "options": [], "query": "prometheus", "queryValue": "", "refresh": 1, "regex": "", "skipUrlSync": false, "type": "datasource" } ] }, "time": {"from": "now-1h", "to": "now"}, "timepicker": {}, "timezone": "", "title": "samosaChaat — Node Health", "uid": "samosachaat-node-health", "version": 1, "weekStart": "" }