Files
infrastructure/machines/overwatch/dashboards/main.json
kalipso 81f73a0704
All checks were successful
Check flake syntax / flake-check (push) Successful in 4m3s
[overwatch] grafana provision datasource and dashboards
2025-01-20 22:31:36 +01:00

1219 lines
30 KiB
JSON

{
"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": 7,
"links": [],
"panels": [
{
"collapsed": false,
"gridPos": {
"h": 1,
"w": 24,
"x": 0,
"y": 0
},
"id": 2,
"panels": [],
"repeat": "hostname",
"title": "$hostname System Ressources",
"type": "row"
},
{
"datasource": {
"type": "prometheus",
"uid": "feakib1gq7ugwc"
},
"fieldConfig": {
"defaults": {
"color": {
"mode": "thresholds"
},
"decimals": 1,
"fieldMinMax": false,
"mappings": [],
"max": 100,
"min": 0,
"thresholds": {
"mode": "percentage",
"steps": [
{
"color": "green",
"value": null
},
{
"color": "#EAB839",
"value": 80
},
{
"color": "dark-red",
"value": 90
}
]
},
"unit": "percent"
},
"overrides": []
},
"gridPos": {
"h": 4,
"w": 2,
"x": 0,
"y": 1
},
"id": 1,
"maxPerRow": 12,
"options": {
"minVizHeight": 75,
"minVizWidth": 75,
"orientation": "auto",
"reduceOptions": {
"calcs": [
"lastNotNull"
],
"fields": "",
"values": false
},
"showThresholdLabels": false,
"showThresholdMarkers": true,
"sizing": "auto"
},
"pluginVersion": "11.3.2",
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "feakib1gq7ugwc"
},
"editorMode": "code",
"expr": "(1 - (node_memory_MemAvailable_bytes{job=\"$hostname\"} / node_memory_MemTotal_bytes{job=\"$hostname\"})) * 100",
"hide": false,
"instant": false,
"legendFormat": "RAM Usage",
"range": true,
"refId": "B"
}
],
"title": "RAM Usage",
"type": "gauge"
},
{
"datasource": {
"type": "prometheus",
"uid": "feakib1gq7ugwc"
},
"fieldConfig": {
"defaults": {
"color": {
"mode": "thresholds"
},
"decimals": 1,
"fieldMinMax": false,
"mappings": [],
"max": 100,
"min": 0,
"thresholds": {
"mode": "percentage",
"steps": [
{
"color": "green",
"value": null
},
{
"color": "#EAB839",
"value": 80
},
{
"color": "dark-red",
"value": 90
}
]
},
"unit": "percent"
},
"overrides": []
},
"gridPos": {
"h": 4,
"w": 2,
"x": 2,
"y": 1
},
"id": 3,
"interval": "120",
"maxPerRow": 12,
"options": {
"minVizHeight": 75,
"minVizWidth": 75,
"orientation": "auto",
"reduceOptions": {
"calcs": [
"lastNotNull"
],
"fields": "",
"values": false
},
"showThresholdLabels": false,
"showThresholdMarkers": true,
"sizing": "auto"
},
"pluginVersion": "11.3.2",
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "feakib1gq7ugwc"
},
"editorMode": "code",
"expr": "100 * (1 - avg(rate(node_cpu_seconds_total{mode=\"idle\", job=\"$hostname\"}[$__rate_interval])))",
"hide": false,
"instant": false,
"legendFormat": "RAM Usage",
"range": true,
"refId": "B"
}
],
"title": "CPU Usage",
"type": "gauge"
},
{
"datasource": {
"type": "prometheus",
"uid": "feakib1gq7ugwc"
},
"fieldConfig": {
"defaults": {
"color": {
"mode": "palette-classic"
},
"custom": {
"axisBorderShow": false,
"axisCenteredZero": false,
"axisColorMode": "text",
"axisLabel": "Bytes Transfered",
"axisPlacement": "auto",
"barAlignment": 0,
"barWidthFactor": 0.6,
"drawStyle": "line",
"fillOpacity": 84,
"gradientMode": "opacity",
"hideFrom": {
"legend": false,
"tooltip": false,
"viz": false
},
"insertNulls": false,
"lineInterpolation": "smooth",
"lineStyle": {
"fill": "solid"
},
"lineWidth": 1,
"pointSize": 4,
"scaleDistribution": {
"type": "linear"
},
"showPoints": "never",
"spanNulls": false,
"stacking": {
"group": "A",
"mode": "none"
},
"thresholdsStyle": {
"mode": "off"
}
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
},
{
"color": "red",
"value": 80
}
]
},
"unit": "bps"
},
"overrides": []
},
"gridPos": {
"h": 8,
"w": 20,
"x": 4,
"y": 1
},
"id": 8,
"interval": "120",
"options": {
"legend": {
"calcs": [],
"displayMode": "list",
"placement": "bottom",
"showLegend": true
},
"tooltip": {
"mode": "single",
"sort": "none"
}
},
"pluginVersion": "11.3.2",
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "feakib1gq7ugwc"
},
"disableTextWrap": false,
"editorMode": "builder",
"expr": "irate(node_network_transmit_bytes_total{job=\"$hostname\", device!=\"lo\"}[$__interval]) * -8",
"fullMetaSearch": false,
"includeNullMetadata": true,
"legendFormat": "Transmitted",
"range": true,
"refId": "A",
"useBackend": false
},
{
"datasource": {
"type": "prometheus",
"uid": "feakib1gq7ugwc"
},
"disableTextWrap": false,
"editorMode": "builder",
"expr": "irate(node_network_receive_bytes_total{job=\"$hostname\", device!=\"lo\"}[$__interval]) * 8",
"fullMetaSearch": false,
"hide": false,
"includeNullMetadata": true,
"legendFormat": "Received",
"range": true,
"refId": "B",
"useBackend": false
}
],
"title": "Network Stats",
"type": "timeseries"
},
{
"datasource": {
"type": "prometheus",
"uid": "feakib1gq7ugwc"
},
"fieldConfig": {
"defaults": {
"color": {
"mode": "thresholds"
},
"decimals": 1,
"fieldMinMax": false,
"mappings": [],
"max": 100,
"min": 0,
"thresholds": {
"mode": "percentage",
"steps": [
{
"color": "green",
"value": null
},
{
"color": "#EAB839",
"value": 80
},
{
"color": "dark-red",
"value": 90
}
]
},
"unit": "percent"
},
"overrides": []
},
"gridPos": {
"h": 4,
"w": 2,
"x": 0,
"y": 5
},
"id": 13,
"interval": "120",
"maxPerRow": 12,
"options": {
"minVizHeight": 75,
"minVizWidth": 75,
"orientation": "auto",
"reduceOptions": {
"calcs": [
"lastNotNull"
],
"fields": "",
"values": false
},
"showThresholdLabels": false,
"showThresholdMarkers": true,
"sizing": "auto"
},
"pluginVersion": "11.3.2",
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "feakib1gq7ugwc"
},
"editorMode": "code",
"expr": "100 - ((node_filesystem_avail_bytes{job=\"$hostname\",mountpoint=\"/\",fstype!=\"rootfs\"} * 100) / node_filesystem_size_bytes{job=\"$hostname\",mountpoint=\"/\",fstype!=\"rootfs\"})",
"hide": false,
"instant": false,
"legendFormat": "RAM Usage",
"range": true,
"refId": "B"
}
],
"title": "RootFS Used",
"type": "gauge"
},
{
"datasource": {
"type": "prometheus",
"uid": "feakib1gq7ugwc"
},
"fieldConfig": {
"defaults": {
"color": {
"mode": "thresholds"
},
"decimals": 1,
"fieldMinMax": false,
"mappings": [],
"max": 100,
"min": 0,
"thresholds": {
"mode": "percentage",
"steps": [
{
"color": "green",
"value": null
},
{
"color": "#EAB839",
"value": 80
},
{
"color": "dark-red",
"value": 90
}
]
},
"unit": "percent"
},
"overrides": []
},
"gridPos": {
"h": 4,
"w": 2,
"x": 2,
"y": 5
},
"id": 12,
"interval": "120",
"maxPerRow": 12,
"options": {
"minVizHeight": 75,
"minVizWidth": 75,
"orientation": "auto",
"reduceOptions": {
"calcs": [
"lastNotNull"
],
"fields": "",
"values": false
},
"showThresholdLabels": false,
"showThresholdMarkers": true,
"sizing": "auto"
},
"pluginVersion": "11.3.2",
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "feakib1gq7ugwc"
},
"editorMode": "code",
"expr": "scalar(node_load1{job=\"$hostname\"}) * 100 / count(count(node_cpu_seconds_total{job=\"$hostname\"}) by (cpu))",
"hide": false,
"instant": false,
"legendFormat": "RAM Usage",
"range": true,
"refId": "B"
}
],
"title": "SysLoad",
"type": "gauge"
},
{
"datasource": {
"type": "prometheus",
"uid": "feakib1gq7ugwc"
},
"description": "System uptime",
"fieldConfig": {
"defaults": {
"color": {
"mode": "thresholds"
},
"decimals": 1,
"mappings": [
{
"options": {
"match": "null",
"result": {
"text": "N/A"
}
},
"type": "special"
}
],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "text",
"value": null
},
{
"color": "red",
"value": 2
}
]
},
"unit": "s"
},
"overrides": []
},
"gridPos": {
"h": 3,
"w": 2,
"x": 0,
"y": 9
},
"id": 4,
"maxDataPoints": 100,
"options": {
"colorMode": "none",
"graphMode": "none",
"justifyMode": "auto",
"orientation": "horizontal",
"percentChangeColorMode": "standard",
"reduceOptions": {
"calcs": [
"lastNotNull"
],
"fields": "",
"values": false
},
"showPercentChange": false,
"textMode": "auto",
"wideLayout": true
},
"pluginVersion": "11.3.2",
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "feakib1gq7ugwc"
},
"editorMode": "code",
"expr": "node_time_seconds{job=\"$hostname\"} - node_boot_time_seconds{job=\"$hostname\"}",
"hide": false,
"instant": false,
"legendFormat": "__auto",
"range": true,
"refId": "A"
}
],
"title": "Uptime",
"type": "stat"
},
{
"datasource": {
"type": "prometheus",
"uid": "feakib1gq7ugwc"
},
"description": "System uptime",
"fieldConfig": {
"defaults": {
"color": {
"mode": "thresholds"
},
"decimals": 1,
"mappings": [
{
"options": {
"match": "null",
"result": {
"text": "N/A"
}
},
"type": "special"
}
],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
}
]
},
"unit": "bytes"
},
"overrides": []
},
"gridPos": {
"h": 3,
"w": 2,
"x": 2,
"y": 9
},
"id": 5,
"maxDataPoints": 100,
"options": {
"colorMode": "none",
"graphMode": "none",
"justifyMode": "auto",
"orientation": "horizontal",
"percentChangeColorMode": "standard",
"reduceOptions": {
"calcs": [
"lastNotNull"
],
"fields": "",
"values": false
},
"showPercentChange": false,
"textMode": "auto",
"wideLayout": true
},
"pluginVersion": "11.3.2",
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "feakib1gq7ugwc"
},
"editorMode": "code",
"expr": "node_memory_MemTotal_bytes{job=\"$hostname\"}",
"hide": false,
"instant": false,
"legendFormat": "__auto",
"range": true,
"refId": "A"
}
],
"title": "Uptime",
"type": "stat"
},
{
"datasource": {
"type": "prometheus",
"uid": "feakib1gq7ugwc"
},
"fieldConfig": {
"defaults": {
"color": {
"mode": "palette-classic"
},
"custom": {
"axisBorderShow": false,
"axisCenteredZero": false,
"axisColorMode": "text",
"axisLabel": "CPU Usage in Percet",
"axisPlacement": "auto",
"barAlignment": 0,
"barWidthFactor": 0.6,
"drawStyle": "line",
"fillOpacity": 84,
"gradientMode": "opacity",
"hideFrom": {
"legend": false,
"tooltip": false,
"viz": false
},
"insertNulls": false,
"lineInterpolation": "smooth",
"lineStyle": {
"fill": "solid"
},
"lineWidth": 1,
"pointSize": 4,
"scaleDistribution": {
"type": "linear"
},
"showPoints": "never",
"spanNulls": false,
"stacking": {
"group": "A",
"mode": "none"
},
"thresholdsStyle": {
"mode": "off"
}
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
},
{
"color": "red",
"value": 80
}
]
},
"unit": "percentunit"
},
"overrides": []
},
"gridPos": {
"h": 6,
"w": 10,
"x": 4,
"y": 9
},
"id": 9,
"interval": "120",
"options": {
"legend": {
"calcs": [],
"displayMode": "list",
"placement": "bottom",
"showLegend": true
},
"tooltip": {
"mode": "single",
"sort": "none"
}
},
"pluginVersion": "11.3.2",
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "feakib1gq7ugwc"
},
"disableTextWrap": false,
"editorMode": "builder",
"expr": "irate(node_cpu_seconds_total{job=\"$hostname\", device!=\"lo\"}[$__interval])",
"fullMetaSearch": false,
"includeNullMetadata": true,
"legendFormat": "{{ mode }}",
"range": true,
"refId": "A",
"useBackend": false
}
],
"title": "CPU Stats",
"type": "timeseries"
},
{
"datasource": {
"type": "prometheus",
"uid": "feakib1gq7ugwc"
},
"fieldConfig": {
"defaults": {
"color": {
"mode": "palette-classic"
},
"custom": {
"axisBorderShow": false,
"axisCenteredZero": false,
"axisColorMode": "text",
"axisLabel": "CPU Usage in Percet",
"axisPlacement": "auto",
"barAlignment": 0,
"barWidthFactor": 0.6,
"drawStyle": "line",
"fillOpacity": 84,
"gradientMode": "opacity",
"hideFrom": {
"legend": false,
"tooltip": false,
"viz": false
},
"insertNulls": false,
"lineInterpolation": "smooth",
"lineStyle": {
"fill": "solid"
},
"lineWidth": 1,
"pointSize": 4,
"scaleDistribution": {
"type": "linear"
},
"showPoints": "never",
"spanNulls": false,
"stacking": {
"group": "A",
"mode": "none"
},
"thresholdsStyle": {
"mode": "off"
}
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
},
{
"color": "red",
"value": 80
}
]
},
"unit": "decbytes"
},
"overrides": []
},
"gridPos": {
"h": 6,
"w": 10,
"x": 14,
"y": 9
},
"id": 10,
"interval": "120",
"options": {
"legend": {
"calcs": [],
"displayMode": "list",
"placement": "bottom",
"showLegend": true
},
"tooltip": {
"mode": "single",
"sort": "none"
}
},
"pluginVersion": "11.3.2",
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "feakib1gq7ugwc"
},
"disableTextWrap": false,
"editorMode": "builder",
"expr": "node_memory_MemFree_bytes{job=\"$hostname\"}",
"fullMetaSearch": false,
"includeNullMetadata": true,
"legendFormat": "MemFree",
"range": true,
"refId": "A",
"useBackend": false
},
{
"datasource": {
"type": "prometheus",
"uid": "feakib1gq7ugwc"
},
"disableTextWrap": false,
"editorMode": "code",
"expr": "node_memory_MemTotal_bytes{job=\"$hostname\"} - node_memory_MemFree_bytes{job=\"$hostname\"} - (node_memory_Cached_bytes{job=\"$hostname\"} + node_memory_Buffers_bytes{job=\"$hostname\"} + node_memory_SReclaimable_bytes{job=\"$hostname\"})",
"fullMetaSearch": false,
"hide": false,
"includeNullMetadata": true,
"legendFormat": "MemFree",
"range": true,
"refId": "B",
"useBackend": false
}
],
"title": "Memory Stats",
"type": "timeseries"
},
{
"datasource": {
"type": "prometheus",
"uid": "feakib1gq7ugwc"
},
"description": "System uptime",
"fieldConfig": {
"defaults": {
"color": {
"mode": "thresholds"
},
"decimals": 0,
"fieldMinMax": false,
"mappings": [],
"min": 0,
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "semi-dark-green",
"value": null
},
{
"color": "semi-dark-red",
"value": 1
}
]
},
"unit": "none"
},
"overrides": []
},
"gridPos": {
"h": 3,
"w": 4,
"x": 0,
"y": 12
},
"id": 14,
"maxDataPoints": 100,
"options": {
"colorMode": "value",
"graphMode": "none",
"justifyMode": "auto",
"orientation": "horizontal",
"percentChangeColorMode": "standard",
"reduceOptions": {
"calcs": [
"lastNotNull"
],
"fields": "",
"values": false
},
"showPercentChange": false,
"textMode": "value",
"wideLayout": true
},
"pluginVersion": "11.3.2",
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "feakib1gq7ugwc"
},
"editorMode": "code",
"expr": "node_systemd_units{job=\"$hostname\",state=\"failed\"}",
"hide": false,
"instant": false,
"legendFormat": "__auto",
"range": true,
"refId": "A"
}
],
"title": "Failed Units",
"type": "stat"
},
{
"collapsed": true,
"gridPos": {
"h": 1,
"w": 24,
"x": 0,
"y": 60
},
"id": 11,
"panels": [
{
"datasource": {
"type": "loki",
"uid": "eeakiack8nqwwc"
},
"fieldConfig": {
"defaults": {
"color": {
"mode": "palette-classic"
},
"custom": {
"axisBorderShow": false,
"axisCenteredZero": false,
"axisColorMode": "text",
"axisLabel": "",
"axisPlacement": "auto",
"barAlignment": 0,
"barWidthFactor": 0.7,
"drawStyle": "bars",
"fillOpacity": 100,
"gradientMode": "none",
"hideFrom": {
"legend": false,
"tooltip": false,
"viz": false
},
"insertNulls": false,
"lineInterpolation": "linear",
"lineWidth": 10,
"pointSize": 7,
"scaleDistribution": {
"type": "linear"
},
"showPoints": "auto",
"spanNulls": false,
"stacking": {
"group": "A",
"mode": "normal"
},
"thresholdsStyle": {
"mode": "off"
}
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
}
]
}
},
"overrides": [
{
"matcher": {
"id": "byName",
"options": "{detected_level=\"error\"}"
},
"properties": [
{
"id": "color",
"value": {
"fixedColor": "semi-dark-red",
"mode": "fixed"
}
}
]
},
{
"matcher": {
"id": "byName",
"options": "{detected_level=\"warn\"}"
},
"properties": [
{
"id": "color",
"value": {
"fixedColor": "semi-dark-yellow",
"mode": "fixed"
}
}
]
},
{
"matcher": {
"id": "byName",
"options": "{detected_level=\"info\"}"
},
"properties": [
{
"id": "color",
"value": {
"fixedColor": "semi-dark-green",
"mode": "fixed"
}
}
]
},
{
"matcher": {
"id": "byName",
"options": "{detected_level=\"debug\"}"
},
"properties": [
{
"id": "color",
"value": {
"fixedColor": "semi-dark-blue",
"mode": "fixed"
}
}
]
},
{
"matcher": {
"id": "byName",
"options": "{}"
},
"properties": [
{
"id": "color",
"value": {
"fixedColor": "semi-dark-green",
"mode": "fixed"
}
}
]
}
]
},
"gridPos": {
"h": 7,
"w": 24,
"x": 0,
"y": 61
},
"id": 7,
"maxDataPoints": 100,
"options": {
"legend": {
"calcs": [],
"displayMode": "list",
"placement": "bottom",
"showLegend": true
},
"tooltip": {
"mode": "single",
"sort": "none"
}
},
"pluginVersion": "11.3.2",
"targets": [
{
"editorMode": "code",
"expr": "sum (count_over_time({job=~\"systemd-journal\",host=\"$hostname\"} [$__interval]))",
"hide": false,
"legendFormat": "",
"queryType": "range",
"refId": "A"
}
],
"title": "Log Volume",
"type": "timeseries"
},
{
"datasource": {
"type": "loki",
"uid": "eeakiack8nqwwc"
},
"fieldConfig": {
"defaults": {},
"overrides": []
},
"gridPos": {
"h": 12,
"w": 24,
"x": 0,
"y": 87
},
"id": 6,
"options": {
"dedupStrategy": "none",
"enableLogDetails": true,
"prettifyLogMessage": false,
"showCommonLabels": false,
"showLabels": false,
"showTime": true,
"sortOrder": "Ascending",
"wrapLogMessage": false
},
"pluginVersion": "11.3.2",
"targets": [
{
"editorMode": "builder",
"expr": "{service_name=\"systemd-journal\", host=\"$hostname\", unit!=\"prometheus-node-exporter.service\"} |= ``",
"queryType": "range",
"refId": "A"
}
],
"title": "Logs",
"type": "logs"
}
],
"repeat": "hostname",
"title": "$hostname Logs",
"type": "row"
}
],
"preload": false,
"refresh": "5s",
"schemaVersion": 40,
"tags": [
"Logging",
"Systemd",
"Ressources",
"Network",
"Cpu",
"Memory"
],
"templating": {
"list": [
{
"current": {
"text": [
"durruti",
"infradocs",
"nextcloud",
"overwatch"
],
"value": [
"durruti",
"infradocs",
"nextcloud",
"overwatch"
]
},
"datasource": {
"type": "prometheus",
"uid": "feakib1gq7ugwc"
},
"definition": "label_values(job)",
"includeAll": true,
"multi": true,
"name": "hostname",
"options": [],
"query": {
"qryType": 1,
"query": "label_values(job)",
"refId": "PrometheusVariableQueryEditor-VariableQuery"
},
"refresh": 1,
"regex": "",
"type": "query"
}
]
},
"time": {
"from": "now-3h",
"to": "now"
},
"timepicker": {},
"timezone": "browser",
"title": "Infra Overview",
"uid": "beakrjrk8s1s0c",
"version": 20,
"weekStart": ""
}