{ "annotations": { "list": [ { "builtIn": 1, "datasource": { "type": "grafana", "uid": "-- Grafana --" }, "enable": true, "hide": true, "iconColor": "rgba(0, 211, 255, 1)", "name": "Annotations & Alerts", "target": { "limit": 100, "matchAny": false, "tags": [], "type": "dashboard" }, "type": "dashboard" } ] }, "description": "Creating a comprehensive dashboard that amalgamates the vital statistics of multiple servers, encompassing CPU utilization, RAM allocation, disk capacity, and various other metrics. This intricate instrumentation leverages exporters and establishes seamless connectivity with a PostgreSQL backend. This meticulously crafted dashboard finds its purpose in overseeing the health and performance of our web servers.", "editable": true, "fiscalYearStartMonth": 0, "gnetId": 19372, "graphTooltip": 0, "id": 3, "links": [], "liveNow": true, "panels": [ { "datasource": { "default": false, "type": "prometheus", "uid": "PBFA97CFB590B2093" }, "fieldConfig": { "defaults": { "color": { "mode": "palette-classic" }, "custom": { "axisBorderShow": false, "axisCenteredZero": false, "axisColorMode": "text", "axisLabel": "", "axisPlacement": "auto", "barAlignment": 0, "barWidthFactor": 0.6, "drawStyle": "line", "fillOpacity": 0, "gradientMode": "none", "hideFrom": { "legend": false, "tooltip": false, "viz": false }, "insertNulls": false, "lineInterpolation": "linear", "lineWidth": 1, "pointSize": 5, "scaleDistribution": { "type": "linear" }, "showPoints": "auto", "spanNulls": false, "stacking": { "group": "A", "mode": "none" }, "thresholdsStyle": { "mode": "off" } }, "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": null }, { "color": "red", "value": 80 } ] } }, "overrides": [] }, "gridPos": { "h": 1, "w": 2, "x": 0, "y": 0 }, "id": 56, "options": { "legend": { "calcs": [], "displayMode": "list", "placement": "bottom", "showLegend": false }, "tooltip": { "mode": "single", "sort": "none" } }, "pluginVersion": "11.2.0", "targets": [ { "datasource": { "type": "prometheus", "uid": "PBFA97CFB590B2093" }, "editorMode": "code", "expr": "up{instance=~\".*:61100\"} != 1", "instant": false, "legendFormat": "__auto", "range": true, "refId": "A" } ], "title": "All servers stats", "type": "timeseries" }, { "datasource": { "default": false, "type": "prometheus", "uid": "PBFA97CFB590B2093" }, "description": "Partition utilization, disk read, disk write, download bandwidth, upload bandwidth, if there are multiple network cards or multiple partitions, it is the value of the network card or partition with the highest utilization rate collected.\n\nCurrEstab: The number of TCP connections whose current status is ESTABLISHED or CLOSE-WAIT.", "fieldConfig": { "defaults": { "color": { "mode": "thresholds" }, "custom": { "align": "center", "cellOptions": { "type": "auto" }, "inspect": false }, "decimals": 2, "displayName": "", "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": null }, { "color": "red", "value": 90 } ] }, "unit": "short" }, "overrides": [ { "matcher": { "id": "byName", "options": "instance" }, "properties": [ { "id": "displayName", "value": "Hostname" }, { "id": "unit", "value": "bytes" }, { "id": "decimals", "value": 1 }, { "id": "custom.align", "value": "center" } ] }, { "matcher": { "id": "byName", "options": "instance" }, "properties": [ { "id": "displayName", "value": "IP" }, { "id": "unit", "value": "short" }, { "id": "decimals", "value": 2 }, { "id": "custom.align", "value": "center" } ] }, { "matcher": { "id": "byName", "options": "Value #B" }, "properties": [ { "id": "displayName", "value": "Memory" }, { "id": "unit", "value": "bytes" }, { "id": "decimals", "value": 2 }, { "id": "custom.align", "value": "center" } ] }, { "matcher": { "id": "byName", "options": "Value #C" }, "properties": [ { "id": "displayName", "value": "CPU Cores" }, { "id": "unit", "value": "short" }, { "id": "custom.align", "value": "center" } ] }, { "matcher": { "id": "byName", "options": "Value #D" }, "properties": [ { "id": "displayName", "value": " Uptime" }, { "id": "unit", "value": "s" }, { "id": "decimals", "value": 2 }, { "id": "custom.align", "value": "center" } ] }, { "matcher": { "id": "byName", "options": "Value #E" }, "properties": [ { "id": "displayName", "value": "Partition used" }, { "id": "unit", "value": "percent" }, { "id": "decimals", "value": 2 }, { "id": "custom.cellOptions", "value": { "mode": "gradient", "type": "color-background" } }, { "id": "custom.align", "value": "center" }, { "id": "thresholds", "value": { "mode": "absolute", "steps": [ { "color": "dark-green", "value": null }, { "color": "semi-dark-orange", "value": 70 }, { "color": "semi-dark-red", "value": 85 } ] } } ] }, { "matcher": { "id": "byName", "options": "Value #F" }, "properties": [ { "id": "displayName", "value": "CPU used" }, { "id": "unit", "value": "percent" }, { "id": "decimals", "value": 2 }, { "id": "custom.cellOptions", "value": { "mode": "gradient", "type": "color-background" } }, { "id": "custom.align", "value": "center" }, { "id": "thresholds", "value": { "mode": "absolute", "steps": [ { "color": "dark-green", "value": null }, { "color": "semi-dark-orange", "value": 70 }, { "color": "semi-dark-red", "value": 85 } ] } } ] }, { "matcher": { "id": "byName", "options": "Value #G" }, "properties": [ { "id": "displayName", "value": "RAM used" }, { "id": "unit", "value": "percent" }, { "id": "decimals", "value": 2 }, { "id": "custom.cellOptions", "value": { "mode": "gradient", "type": "color-background" } }, { "id": "custom.align", "value": "center" }, { "id": "thresholds", "value": { "mode": "absolute", "steps": [ { "color": "dark-green", "value": null }, { "color": "semi-dark-orange", "value": 70 }, { "color": "semi-dark-red", "value": 85 } ] } } ] }, { "matcher": { "id": "byName", "options": "Value #H" }, "properties": [ { "id": "displayName", "value": "Disk read" }, { "id": "unit", "value": "Bps" }, { "id": "decimals", "value": 2 }, { "id": "custom.cellOptions", "value": { "mode": "gradient", "type": "color-background" } }, { "id": "custom.align", "value": "center" }, { "id": "thresholds", "value": { "mode": "absolute", "steps": [ { "color": "dark-green", "value": null }, { "color": "semi-dark-orange", "value": 10485760 }, { "color": "semi-dark-red", "value": 20485760 } ] } } ] }, { "matcher": { "id": "byName", "options": "Value #I" }, "properties": [ { "id": "displayName", "value": "Disk write" }, { "id": "unit", "value": "Bps" }, { "id": "decimals", "value": 2 }, { "id": "custom.cellOptions", "value": { "mode": "gradient", "type": "color-background" } }, { "id": "custom.align", "value": "center" }, { "id": "thresholds", "value": { "mode": "absolute", "steps": [ { "color": "dark-green", "value": null }, { "color": "semi-dark-orange", "value": 10485760 }, { "color": "semi-dark-red", "value": 20485760 } ] } } ] }, { "matcher": { "id": "byName", "options": "Value #J" }, "properties": [ { "id": "displayName", "value": "Download" }, { "id": "unit", "value": "bps" }, { "id": "decimals", "value": 2 }, { "id": "custom.cellOptions", "value": { "mode": "gradient", "type": "color-background" } }, { "id": "custom.align", "value": "center" }, { "id": "thresholds", "value": { "mode": "absolute", "steps": [ { "color": "dark-green", "value": null }, { "color": "semi-dark-orange", "value": 30485760 }, { "color": "semi-dark-red", "value": 104857600 } ] } } ] }, { "matcher": { "id": "byName", "options": "Value #K" }, "properties": [ { "id": "displayName", "value": "Upload" }, { "id": "unit", "value": "bps" }, { "id": "decimals", "value": 2 }, { "id": "custom.cellOptions", "value": { "mode": "gradient", "type": "color-background" } }, { "id": "custom.align", "value": "center" }, { "id": "thresholds", "value": { "mode": "absolute", "steps": [ { "color": "dark-green", "value": null }, { "color": "semi-dark-orange", "value": 30485760 }, { "color": "semi-dark-red", "value": 104857600 } ] } } ] }, { "matcher": { "id": "byName", "options": "Value #L" }, "properties": [ { "id": "displayName", "value": "Load 5m" }, { "id": "unit", "value": "short" }, { "id": "decimals", "value": 2 }, { "id": "custom.align", "value": "center" } ] }, { "matcher": { "id": "byName", "options": "Value #M" }, "properties": [ { "id": "displayName", "value": "CurrEstab" }, { "id": "unit", "value": "short" }, { "id": "decimals", "value": 2 }, { "id": "custom.cellOptions", "value": { "mode": "gradient", "type": "color-background" } }, { "id": "custom.align", "value": "center" }, { "id": "thresholds", "value": { "mode": "absolute", "steps": [ { "color": "dark-green", "value": null }, { "color": "semi-dark-orange", "value": 1000 }, { "color": "dark-red", "value": 1500 } ] } } ] }, { "matcher": { "id": "byName", "options": "Value #N" }, "properties": [ { "id": "displayName", "value": "TCP_tw" }, { "id": "unit", "value": "short" }, { "id": "custom.cellOptions", "value": { "mode": "gradient", "type": "color-background" } }, { "id": "custom.align", "value": "center" }, { "id": "thresholds", "value": { "mode": "absolute", "steps": [ { "color": "dark-green", "value": null }, { "color": "semi-dark-orange", "value": 5000 }, { "color": "semi-dark-red", "value": 20000 } ] } } ] } ] }, "gridPos": { "h": 14, "w": 22, "x": 2, "y": 0 }, "id": 57, "options": { "cellHeight": "sm", "footer": { "countRows": false, "fields": "", "reducer": [ "sum" ], "show": false }, "showHeader": true, "sortBy": [ { "desc": false, "displayName": "Node" } ] }, "pluginVersion": "11.2.0", "targets": [ { "datasource": { "type": "prometheus", "uid": "PBFA97CFB590B2093" }, "editorMode": "code", "exemplar": true, "expr": "node_uname_info{} - 0", "format": "table", "instant": true, "interval": "", "legendFormat": "主机名", "refId": "A" }, { "datasource": { "type": "prometheus", "uid": "PBFA97CFB590B2093" }, "editorMode": "code", "expr": "sum(time() - node_boot_time_seconds{})by(instance)", "format": "table", "hide": false, "instant": true, "interval": "", "legendFormat": "运行时间", "refId": "D" }, { "datasource": { "type": "prometheus", "uid": "PBFA97CFB590B2093" }, "editorMode": "code", "expr": "node_memory_MemTotal_bytes{} - 0", "format": "table", "hide": false, "instant": true, "interval": "", "legendFormat": "总内存", "refId": "B" }, { "datasource": { "type": "prometheus", "uid": "PBFA97CFB590B2093" }, "editorMode": "code", "expr": "count(node_cpu_seconds_total{mode='system'}) by (instance)", "format": "table", "hide": false, "instant": true, "interval": "", "legendFormat": "总核数", "refId": "C" }, { "datasource": { "type": "prometheus", "uid": "PBFA97CFB590B2093" }, "editorMode": "code", "expr": "node_load5{}", "format": "table", "instant": true, "interval": "", "legendFormat": "5分钟负载", "refId": "L" }, { "datasource": { "type": "prometheus", "uid": "PBFA97CFB590B2093" }, "editorMode": "code", "expr": "(1 - avg(rate(node_cpu_seconds_total{mode=\"idle\"}[5m])) by (instance)) * 100", "format": "table", "hide": false, "instant": true, "interval": "", "legendFormat": "CPU使用率", "refId": "F" }, { "datasource": { "type": "prometheus", "uid": "PBFA97CFB590B2093" }, "editorMode": "code", "expr": "(1 - (node_memory_MemAvailable_bytes{} / (node_memory_MemTotal_bytes{})))* 100", "format": "table", "hide": false, "instant": true, "interval": "", "legendFormat": "内存使用率", "refId": "G" }, { "datasource": { "type": "prometheus", "uid": "PBFA97CFB590B2093" }, "editorMode": "code", "expr": "max((node_filesystem_size_bytes{fstype=~\"ext.?|xfs\"}-node_filesystem_free_bytes{fstype=~\"ext.?|xfs\"}) *100/(node_filesystem_avail_bytes {fstype=~\"ext.?|xfs\"}+(node_filesystem_size_bytes{fstype=~\"ext.?|xfs\"}-node_filesystem_free_bytes{fstype=~\"ext.?|xfs\"})))by(instance)", "format": "table", "hide": false, "instant": true, "interval": "", "legendFormat": "分区使用率", "refId": "E" }, { "datasource": { "type": "prometheus", "uid": "PBFA97CFB590B2093" }, "editorMode": "code", "expr": "max(rate(node_disk_read_bytes_total{}[5m])) by (instance)", "format": "table", "hide": false, "instant": true, "interval": "", "legendFormat": "最大读取", "refId": "H" }, { "datasource": { "type": "prometheus", "uid": "PBFA97CFB590B2093" }, "editorMode": "code", "expr": "max(rate(node_disk_written_bytes_total{}[5m])) by (instance)", "format": "table", "hide": false, "instant": true, "interval": "", "legendFormat": "最大写入", "refId": "I" }, { "datasource": { "type": "prometheus", "uid": "PBFA97CFB590B2093" }, "editorMode": "code", "expr": "node_netstat_Tcp_CurrEstab{} - 0", "format": "table", "hide": false, "instant": true, "interval": "", "legendFormat": "连接数", "refId": "M" }, { "datasource": { "type": "prometheus", "uid": "PBFA97CFB590B2093" }, "editorMode": "code", "expr": "node_sockstat_TCP_tw{} - 0", "format": "table", "hide": false, "instant": true, "interval": "", "legendFormat": "TIME_WAIT", "refId": "N" }, { "datasource": { "type": "prometheus", "uid": "PBFA97CFB590B2093" }, "editorMode": "code", "expr": "max(rate(node_network_receive_bytes_total{}[5m])*8) by (instance)", "format": "table", "hide": false, "instant": true, "interval": "", "legendFormat": "下载带宽", "refId": "J" }, { "datasource": { "type": "prometheus", "uid": "PBFA97CFB590B2093" }, "editorMode": "code", "expr": "max(rate(node_network_transmit_bytes_total{}[5m])*8) by (instance)", "format": "table", "hide": false, "instant": true, "interval": "", "legendFormat": "上传带宽", "refId": "K" } ], "title": "Server Resource Overview", "transformations": [ { "id": "merge", "options": { "reducers": [] } }, { "id": "organize", "options": { "excludeByName": { "Time": true, "Value #A": true, "Value #B": false, "Value #D": false, "Value #F": false, "Value #H": true, "Value #I": true, "Value #J": true, "Value #K": true, "Value #L": true, "Value #M": true, "Value #N": true, "__name__": true, "domainname": true, "instance": true, "job": false, "machine": true, "nodename": true, "release": true, "sysname": true, "version": true }, "includeByName": {}, "indexByName": { "Time": 0, "Value #A": 10, "Value #B": 12, "Value #C": 13, "Value #D": 11, "Value #E": 18, "Value #F": 16, "Value #G": 17, "Value #H": 19, "Value #I": 20, "Value #J": 23, "Value #K": 24, "Value #L": 15, "Value #M": 21, "Value #N": 22, "__name__": 14, "domainname": 1, "instance": 4, "job": 2, "label": 3, "machine": 5, "nodename": 6, "release": 7, "sysname": 8, "version": 9 }, "renameByName": { "label": "Node" } } } ], "type": "table" }, { "datasource": { "default": false, "type": "prometheus", "uid": "PBFA97CFB590B2093" }, "fieldConfig": { "defaults": { "color": { "mode": "thresholds" }, "mappings": [], "noValue": "0", "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": null } ] } }, "overrides": [] }, "gridPos": { "h": 3, "w": 2, "x": 0, "y": 1 }, "id": 4, "options": { "colorMode": "background", "graphMode": "none", "justifyMode": "auto", "orientation": "auto", "percentChangeColorMode": "standard", "reduceOptions": { "calcs": [ "lastNotNull" ], "fields": "", "values": false }, "showPercentChange": false, "textMode": "auto", "wideLayout": true }, "pluginVersion": "11.2.0", "targets": [ { "datasource": { "type": "prometheus", "uid": "PBFA97CFB590B2093" }, "editorMode": "code", "expr": "count(node_timex_sync_status{instance=~\".*:61100\"})", "range": true, "refId": "A" } ], "title": "UP", "type": "stat" }, { "datasource": { "default": false, "type": "prometheus", "uid": "PBFA97CFB590B2093" }, "fieldConfig": { "defaults": { "color": { "mode": "thresholds" }, "mappings": [], "noValue": "0", "thresholds": { "mode": "absolute", "steps": [ { "color": "light-red", "value": null } ] } }, "overrides": [] }, "gridPos": { "h": 3, "w": 2, "x": 0, "y": 4 }, "id": 28, "options": { "colorMode": "background", "graphMode": "none", "justifyMode": "auto", "orientation": "auto", "percentChangeColorMode": "standard", "reduceOptions": { "calcs": [ "lastNotNull" ], "fields": "", "values": false }, "showPercentChange": false, "textMode": "auto", "wideLayout": true }, "pluginVersion": "11.2.0", "targets": [ { "datasource": { "type": "prometheus", "uid": "PBFA97CFB590B2093" }, "editorMode": "code", "exemplar": false, "expr": "count(up{instance=~\".*:61100\"}) - count(node_timex_sync_status{instance=~\".*:61100\"})", "instant": true, "range": false, "refId": "A" } ], "title": "DOWN", "type": "stat" }, { "datasource": { "default": false, "type": "prometheus", "uid": "PBFA97CFB590B2093" }, "fieldConfig": { "defaults": { "color": { "mode": "thresholds" }, "mappings": [], "noValue": "0", "thresholds": { "mode": "absolute", "steps": [ { "color": "#eaeaea", "value": null } ] } }, "overrides": [] }, "gridPos": { "h": 3, "w": 2, "x": 0, "y": 7 }, "id": 29, "options": { "colorMode": "background", "graphMode": "none", "justifyMode": "auto", "orientation": "auto", "percentChangeColorMode": "standard", "reduceOptions": { "calcs": [ "lastNotNull" ], "fields": "", "values": false }, "showPercentChange": false, "textMode": "auto", "wideLayout": true }, "pluginVersion": "11.2.0", "targets": [ { "datasource": { "type": "prometheus", "uid": "PBFA97CFB590B2093" }, "editorMode": "code", "exemplar": false, "expr": "count(up{instance=~\".*:61100\"})", "format": "time_series", "instant": true, "range": false, "refId": "A" } ], "title": "TOTAL", "type": "stat" }, { "datasource": { "default": false, "type": "prometheus", "uid": "PBFA97CFB590B2093" }, "description": "", "fieldConfig": { "defaults": { "color": { "mode": "palette-classic" }, "custom": { "axisBorderShow": false, "axisCenteredZero": false, "axisColorMode": "text", "axisGridShow": false, "axisLabel": "", "axisPlacement": "auto", "barAlignment": 0, "barWidthFactor": 0.6, "drawStyle": "line", "fillOpacity": 0, "gradientMode": "opacity", "hideFrom": { "legend": false, "tooltip": false, "viz": false }, "insertNulls": false, "lineInterpolation": "linear", "lineStyle": { "fill": "solid" }, "lineWidth": 1, "pointSize": 4, "scaleDistribution": { "type": "linear" }, "showPoints": "never", "spanNulls": false, "stacking": { "group": "A", "mode": "none" }, "thresholdsStyle": { "mode": "dashed" } }, "mappings": [], "max": 100, "min": 0, "thresholds": { "mode": "absolute", "steps": [ { "color": "transparent", "value": null }, { "color": "#ff2e63", "value": 80 } ] }, "unit": "percent" }, "overrides": [] }, "gridPos": { "h": 13, "w": 22, "x": 2, "y": 14 }, "id": 49, "options": { "legend": { "calcs": [], "displayMode": "table", "placement": "right", "showLegend": true }, "tooltip": { "mode": "multi", "sort": "desc" } }, "pluginVersion": "8.5.2", "targets": [ { "datasource": { "type": "prometheus", "uid": "PBFA97CFB590B2093" }, "editorMode": "code", "exemplar": false, "expr": "100 - (avg by (job, instance) (rate(node_cpu_seconds_total{mode=\"idle\"}[1m])) * 100)\r\n", "format": "time_series", "hide": false, "instant": false, "interval": "", "legendFormat": "{{job}}", "range": true, "refId": "A" } ], "title": "CPU Usage", "type": "timeseries" }, { "datasource": { "default": false, "type": "prometheus", "uid": "PBFA97CFB590B2093" }, "fieldConfig": { "defaults": { "color": { "mode": "palette-classic" }, "custom": { "axisBorderShow": false, "axisCenteredZero": false, "axisColorMode": "text", "axisGridShow": false, "axisLabel": "", "axisPlacement": "auto", "barAlignment": 0, "barWidthFactor": 0.6, "drawStyle": "line", "fillOpacity": 0, "gradientMode": "opacity", "hideFrom": { "legend": false, "tooltip": false, "viz": false }, "insertNulls": false, "lineInterpolation": "linear", "lineStyle": { "fill": "solid" }, "lineWidth": 1, "pointSize": 4, "scaleDistribution": { "type": "linear" }, "showPoints": "never", "spanNulls": false, "stacking": { "group": "A", "mode": "none" }, "thresholdsStyle": { "mode": "dashed" } }, "mappings": [], "max": 100, "min": 0, "thresholds": { "mode": "absolute", "steps": [ { "color": "transparent", "value": null }, { "color": "red", "value": 80 } ] }, "unit": "percent" }, "overrides": [ { "matcher": { "id": "byName", "options": "10.5.255.2" }, "properties": [ { "id": "color", "value": { "fixedColor": "#08d9d6", "mode": "fixed" } } ] }, { "matcher": { "id": "byName", "options": "10.5.255.3" }, "properties": [ { "id": "color", "value": { "fixedColor": "#eaeaea", "mode": "fixed" } } ] } ] }, "gridPos": { "h": 12, "w": 22, "x": 2, "y": 27 }, "id": 50, "options": { "legend": { "calcs": [], "displayMode": "list", "placement": "right", "showLegend": true, "sortBy": "Name", "sortDesc": true }, "tooltip": { "mode": "multi", "sort": "desc" } }, "pluginVersion": "8.5.2", "targets": [ { "datasource": { "type": "prometheus", "uid": "PBFA97CFB590B2093" }, "editorMode": "code", "expr": "100 * (1 - (avg by (job, instance) (node_memory_MemAvailable_bytes) / avg by (job, instance) (node_memory_MemTotal_bytes)))\r\n", "hide": false, "legendFormat": "{{job}}", "range": true, "refId": "A" } ], "title": "RAM Usage", "type": "timeseries" }, { "datasource": { "default": false, "type": "prometheus", "uid": "PBFA97CFB590B2093" }, "fieldConfig": { "defaults": { "color": { "mode": "palette-classic" }, "custom": { "axisBorderShow": false, "axisCenteredZero": false, "axisColorMode": "text", "axisGridShow": false, "axisLabel": "", "axisPlacement": "auto", "barAlignment": 0, "barWidthFactor": 0.6, "drawStyle": "line", "fillOpacity": 0, "gradientMode": "opacity", "hideFrom": { "legend": false, "tooltip": false, "viz": false }, "insertNulls": false, "lineInterpolation": "linear", "lineStyle": { "fill": "solid" }, "lineWidth": 1, "pointSize": 4, "scaleDistribution": { "type": "linear" }, "showPoints": "never", "spanNulls": false, "stacking": { "group": "A", "mode": "none" }, "thresholdsStyle": { "mode": "dashed" } }, "mappings": [], "max": 100, "min": 0, "thresholds": { "mode": "absolute", "steps": [ { "color": "transparent", "value": null }, { "color": "red", "value": 80 } ] }, "unit": "percent" }, "overrides": [ { "matcher": { "id": "byName", "options": "10.5.255.2" }, "properties": [ { "id": "color", "value": { "fixedColor": "#08d9d6", "mode": "fixed" } } ] }, { "matcher": { "id": "byName", "options": "10.5.255.3" }, "properties": [ { "id": "color", "value": { "fixedColor": "#eaeaea", "mode": "fixed" } } ] } ] }, "gridPos": { "h": 12, "w": 22, "x": 2, "y": 39 }, "id": 51, "options": { "legend": { "calcs": [], "displayMode": "list", "placement": "right", "showLegend": true, "sortBy": "Name", "sortDesc": true }, "tooltip": { "mode": "multi", "sort": "desc" } }, "pluginVersion": "8.5.2", "targets": [ { "datasource": { "type": "prometheus", "uid": "PBFA97CFB590B2093" }, "editorMode": "code", "expr": "100 * (1 - (avg by (job, instance) (node_filesystem_avail_bytes{fstype!~\"tmpfs|overlay\"}) / avg by (job, instance) (node_filesystem_size_bytes{fstype!~\"tmpfs|overlay\"})))\r\n", "hide": false, "legendFormat": "{{job}}", "range": true, "refId": "A" } ], "title": "Disk Usage", "type": "timeseries" }, { "datasource": { "default": false, "type": "prometheus", "uid": "PBFA97CFB590B2093" }, "fieldConfig": { "defaults": { "color": { "mode": "thresholds" }, "mappings": [], "noValue": "0", "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": null } ] } }, "overrides": [] }, "gridPos": { "h": 12, "w": 24, "x": 0, "y": 51 }, "id": 54, "options": { "colorMode": "background", "graphMode": "none", "justifyMode": "center", "orientation": "auto", "percentChangeColorMode": "standard", "reduceOptions": { "calcs": [], "fields": "/^job$/", "limit": 1000, "values": true }, "showPercentChange": false, "textMode": "value", "wideLayout": true }, "pluginVersion": "11.2.0", "targets": [ { "datasource": { "type": "prometheus", "uid": "PBFA97CFB590B2093" }, "editorMode": "code", "exemplar": false, "expr": "up{instance=~\".*:61100\"} == 1", "format": "table", "instant": true, "legendFormat": "__auto", "range": false, "refId": "A" } ], "title": "Up", "transformations": [ { "id": "filterFieldsByName", "options": { "include": { "names": [ "job", "Value" ] } } }, { "id": "groupBy", "options": { "fields": { "Value": { "aggregations": [], "operation": "groupby" }, "job": { "aggregations": [], "operation": "groupby" } } } } ], "type": "stat" }, { "datasource": { "default": false, "type": "prometheus", "uid": "PBFA97CFB590B2093" }, "fieldConfig": { "defaults": { "color": { "mode": "thresholds" }, "mappings": [ { "options": { "0": { "color": "light-green", "index": 0, "text": "All working" } }, "type": "value" } ], "noValue": "0", "thresholds": { "mode": "absolute", "steps": [ { "color": "light-red", "value": null } ] } }, "overrides": [] }, "gridPos": { "h": 10, "w": 24, "x": 0, "y": 63 }, "id": 55, "options": { "colorMode": "background", "graphMode": "none", "justifyMode": "center", "orientation": "auto", "percentChangeColorMode": "standard", "reduceOptions": { "calcs": [ "allValues" ], "fields": "/^job$/", "limit": 1000, "values": true }, "showPercentChange": false, "textMode": "value", "wideLayout": true }, "pluginVersion": "11.2.0", "targets": [ { "datasource": { "type": "prometheus", "uid": "PBFA97CFB590B2093" }, "editorMode": "code", "exemplar": false, "expr": "up{instance=~\".*:61100\"} != 1", "format": "table", "instant": true, "interval": "", "legendFormat": "__auto", "range": false, "refId": "A" } ], "title": "Down", "transformations": [ { "id": "filterFieldsByName", "options": { "include": { "names": [ "job", "Value" ] } } }, { "id": "groupBy", "options": { "fields": { "Value": { "aggregations": [], "operation": "groupby" }, "job": { "aggregations": [], "operation": "groupby" } } } } ], "type": "stat" } ], "refresh": "5s", "schemaVersion": 39, "tags": [], "templating": { "list": [ { "current": { "selected": false, "text": "kera11", "value": "kera11" }, "datasource": { "type": "prometheus", "uid": "PBFA97CFB590B2093" }, "definition": "label_values(node_uname_info,job)", "hide": 0, "includeAll": false, "label": "server", "multi": false, "name": "server", "options": [], "query": { "qryType": 1, "query": "label_values(node_uname_info,job)", "refId": "PrometheusVariableQueryEditor-VariableQuery" }, "refresh": 1, "regex": "", "skipUrlSync": false, "sort": 1, "type": "query" }, { "current": { "isNone": true, "selected": false, "text": "None", "value": "" }, "datasource": { "type": "prometheus", "uid": "PBFA97CFB590B2093" }, "definition": "label_values(node_uname_info{job=\"$job\"},instance)", "hide": 0, "includeAll": false, "label": "Host", "multi": false, "name": "node", "options": [], "query": { "qryType": 1, "query": "label_values(node_uname_info{job=\"$job\"},instance)", "refId": "PrometheusVariableQueryEditor-VariableQuery" }, "refresh": 1, "regex": "", "skipUrlSync": false, "sort": 1, "type": "query" }, { "datasource": { "type": "prometheus", "uid": "PBFA97CFB590B2093" }, "filters": [ { "key": "job", "operator": "!=", "value": "prometheus" } ], "hide": 0, "name": "Filters", "skipUrlSync": false, "type": "adhoc" } ] }, "time": { "from": "now-15m", "to": "now-5s" }, "timepicker": { "nowDelay": "5s", "refresh_intervals": [ "5s", "10s", "30s", "1m", "5m", "15m" ] }, "timezone": "", "title": "All Servers Overview", "uid": "bz8XDqr7z", "version": 66, "weekStart": "" }