chore: update dashboard

This commit is contained in:
surtur 2022-08-16 13:15:57 +02:00
parent afeb8becdb
commit 3cc42597d1
Signed by: wanderer
GPG Key ID: 19CE1EC1D9E0486D

@ -9,13 +9,13 @@
"pluginName": "Prometheus"
}
],
"__elements": [],
"__elements": {},
"__requires": [
{
"type": "grafana",
"id": "grafana",
"name": "Grafana",
"version": "8.4.4"
"version": "9.0.7"
},
{
"type": "datasource",
@ -40,7 +40,10 @@
"list": [
{
"builtIn": 1,
"datasource": "-- Grafana --",
"datasource": {
"type": "datasource",
"uid": "grafana"
},
"enable": true,
"hide": true,
"iconColor": "rgba(0, 211, 255, 1)",
@ -65,6 +68,11 @@
"liveNow": false,
"panels": [
{
"datasource": {
"type": "prometheus",
"uid": "${DS_PROMETHEUS}"
},
"description": "proxy performance",
"fieldConfig": {
"defaults": {
"color": {
@ -135,7 +143,7 @@
]
},
"gridPos": {
"h": 7,
"h": 6,
"w": 24,
"x": 0,
"y": 0
@ -156,9 +164,13 @@
"text": {},
"textMode": "auto"
},
"pluginVersion": "8.4.4",
"pluginVersion": "9.0.7",
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "${DS_PROMETHEUS}"
},
"exemplar": true,
"expr": "rate(nginx_http_requests_total[5m])",
"format": "time_series",
@ -169,6 +181,10 @@
"refId": "A"
},
{
"datasource": {
"type": "prometheus",
"uid": "${DS_PROMETHEUS}"
},
"exemplar": true,
"expr": "rate(nginx_connections_accepted[5m])",
"interval": "",
@ -176,6 +192,10 @@
"refId": "B"
},
{
"datasource": {
"type": "prometheus",
"uid": "${DS_PROMETHEUS}"
},
"exemplar": true,
"expr": "rate(nginx_connections_waiting[5m])",
"hide": false,
@ -184,6 +204,10 @@
"refId": "C"
},
{
"datasource": {
"type": "prometheus",
"uid": "${DS_PROMETHEUS}"
},
"exemplar": true,
"expr": "rate(nginx_connections_active[5m])",
"hide": false,
@ -196,6 +220,10 @@
"type": "stat"
},
{
"datasource": {
"type": "prometheus",
"uid": "${DS_PROMETHEUS}"
},
"description": "",
"fieldConfig": {
"defaults": {
@ -220,7 +248,7 @@
"h": 7,
"w": 24,
"x": 0,
"y": 7
"y": 6
},
"id": 10,
"links": [
@ -245,9 +273,13 @@
"text": {},
"textMode": "auto"
},
"pluginVersion": "8.4.4",
"pluginVersion": "9.0.7",
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "${DS_PROMETHEUS}"
},
"exemplar": true,
"expr": "gitea_users",
"instant": false,
@ -256,6 +288,10 @@
"refId": "A"
},
{
"datasource": {
"type": "prometheus",
"uid": "${DS_PROMETHEUS}"
},
"exemplar": true,
"expr": "gitea_organizations",
"hide": false,
@ -266,6 +302,10 @@
"refId": "F"
},
{
"datasource": {
"type": "prometheus",
"uid": "${DS_PROMETHEUS}"
},
"exemplar": true,
"expr": "gitea_repositories",
"interval": "",
@ -274,6 +314,10 @@
"refId": "B"
},
{
"datasource": {
"type": "prometheus",
"uid": "${DS_PROMETHEUS}"
},
"exemplar": true,
"expr": "gitea_mirrors",
"hide": false,
@ -282,12 +326,20 @@
"refId": "E"
},
{
"datasource": {
"type": "prometheus",
"uid": "${DS_PROMETHEUS}"
},
"expr": "gitea_issues",
"interval": "",
"legendFormat": "issues",
"refId": "C"
},
{
"datasource": {
"type": "prometheus",
"uid": "${DS_PROMETHEUS}"
},
"expr": "gitea_comments",
"interval": "",
"legendFormat": "comments",
@ -298,7 +350,11 @@
"type": "stat"
},
{
"description": "",
"datasource": {
"type": "prometheus",
"uid": "${DS_PROMETHEUS}"
},
"description": "builds on https://drone.dotya.ml",
"fieldConfig": {
"defaults": {
"color": {
@ -363,21 +419,6 @@
"mode": "fixed"
}
},
{
"id": "mappings",
"value": [
{
"options": {
"from": 1,
"result": {
"text": "ALERT - pending builds"
},
"to": 1000
},
"type": "range"
}
]
},
{
"id": "thresholds",
"value": {
@ -462,21 +503,6 @@
"options": "pending jobs"
},
"properties": [
{
"id": "mappings",
"value": [
{
"options": {
"from": 1,
"result": {
"text": "ALERT - pending jobs"
},
"to": 1000
},
"type": "range"
}
]
},
{
"id": "custom.lineWidth",
"value": 1
@ -489,7 +515,7 @@
"h": 7,
"w": 24,
"x": 0,
"y": 14
"y": 13
},
"id": 8,
"options": {
@ -507,6 +533,10 @@
"pluginVersion": "7.5.1",
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "${DS_PROMETHEUS}"
},
"exemplar": true,
"expr": "drone_running_builds",
"format": "time_series",
@ -516,6 +546,10 @@
"refId": "A"
},
{
"datasource": {
"type": "prometheus",
"uid": "${DS_PROMETHEUS}"
},
"exemplar": true,
"expr": "drone_running_jobs",
"hide": false,
@ -525,6 +559,10 @@
"refId": "C"
},
{
"datasource": {
"type": "prometheus",
"uid": "${DS_PROMETHEUS}"
},
"expr": "drone_pending_builds",
"format": "time_series",
"interval": "",
@ -532,6 +570,10 @@
"refId": "B"
},
{
"datasource": {
"type": "prometheus",
"uid": "${DS_PROMETHEUS}"
},
"exemplar": true,
"expr": "drone_pending_jobs",
"hide": false,
@ -540,19 +582,32 @@
"refId": "D"
}
],
"title": "drone ci",
"title": "ci",
"type": "timeseries"
},
{
"collapsed": false,
"datasource": {
"type": "prometheus",
"uid": "wntsJ72Gz"
},
"gridPos": {
"h": 1,
"w": 24,
"x": 0,
"y": 21
"y": 20
},
"id": 12,
"panels": [],
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "wntsJ72Gz"
},
"refId": "A"
}
],
"title": "nebula",
"type": "row"
},
@ -568,7 +623,7 @@
"mode": "palette-classic"
},
"custom": {
"axisLabel": "",
"axisLabel": "free bytes",
"axisPlacement": "auto",
"barAlignment": 0,
"drawStyle": "line",
@ -580,7 +635,7 @@
"tooltip": false,
"viz": false
},
"lineInterpolation": "stepBefore",
"lineInterpolation": "smooth",
"lineStyle": {
"fill": "solid"
},
@ -599,7 +654,6 @@
"mode": "off"
}
},
"displayName": "filesystem free bytes (/)",
"mappings": [
{
"options": {
@ -636,7 +690,7 @@
"h": 7,
"w": 12,
"x": 0,
"y": 22
"y": 21
},
"id": 4,
"options": {
@ -659,11 +713,16 @@
"pluginVersion": "7.5.1",
"targets": [
{
"expr": "node_filesystem_free_bytes",
"datasource": {
"type": "prometheus",
"uid": "${DS_PROMETHEUS}"
},
"editorMode": "code",
"expr": "node_filesystem_free_bytes{mountpoint=\"/rootfs\"}",
"hide": false,
"instant": false,
"interval": "",
"legendFormat": "",
"legendFormat": "{{mountpoint}}",
"refId": "A"
}
],
@ -674,8 +733,8 @@
"options": {
"include": {
"names": [
"Time",
"node_filesystem_free_bytes{device=\"/dev/sda3\", fstype=\"ext4\", instance=\"metrics.dotya.ml:443\", job=\"node\", mountpoint=\"/\"}"
"/rootfs",
"Time"
]
}
}
@ -684,10 +743,47 @@
"type": "timeseries"
},
{
"datasource": {
"type": "prometheus",
"uid": "${DS_PROMETHEUS}"
},
"description": "`nebula`'s disk io (log scale)",
"fieldConfig": {
"defaults": {
"color": {
"mode": "continuous-BlPu"
"mode": "palette-classic"
},
"custom": {
"axisLabel": "bytes (a minute)",
"axisPlacement": "auto",
"barAlignment": 0,
"drawStyle": "line",
"fillOpacity": 18,
"gradientMode": "scheme",
"hideFrom": {
"legend": false,
"tooltip": false,
"viz": false
},
"lineInterpolation": "smooth",
"lineStyle": {
"fill": "solid"
},
"lineWidth": 2,
"pointSize": 5,
"scaleDistribution": {
"log": 2,
"type": "log"
},
"showPoints": "never",
"spanNulls": 3600000,
"stacking": {
"group": "A",
"mode": "none"
},
"thresholdsStyle": {
"mode": "off"
}
},
"mappings": [],
"thresholds": {
@ -701,56 +797,133 @@
},
"unit": "bytes"
},
"overrides": []
"overrides": [
{
"matcher": {
"id": "byName",
"options": "read"
},
"properties": [
{
"id": "color",
"value": {
"fixedColor": "semi-dark-blue",
"mode": "fixed"
}
}
]
},
{
"matcher": {
"id": "byName",
"options": "written"
},
"properties": [
{
"id": "color",
"value": {
"fixedColor": "light-purple",
"mode": "fixed"
}
}
]
}
]
},
"gridPos": {
"h": 7,
"w": 12,
"x": 12,
"y": 22
"y": 21
},
"id": 18,
"options": {
"colorMode": "value",
"graphMode": "area",
"justifyMode": "auto",
"orientation": "auto",
"reduceOptions": {
"legend": {
"calcs": [
"lastNotNull"
"min",
"max",
"mean"
],
"fields": "",
"values": false
"displayMode": "list",
"placement": "bottom"
},
"text": {},
"textMode": "auto"
"tooltip": {
"mode": "multi",
"sort": "desc"
}
},
"pluginVersion": "8.4.4",
"pluginVersion": "9.0.2",
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "${DS_PROMETHEUS}"
},
"editorMode": "code",
"exemplar": true,
"expr": "rate(node_disk_written_bytes_total[1m])",
"interval": "",
"legendFormat": "data written (1 minute avg)",
"legendFormat": "written",
"range": true,
"refId": "A"
},
{
"datasource": {
"type": "prometheus",
"uid": "${DS_PROMETHEUS}"
},
"editorMode": "code",
"exemplar": true,
"expr": "rate(node_disk_read_bytes_total[1m])",
"hide": false,
"interval": "",
"legendFormat": "data read (1 minute avg)",
"legendFormat": "read",
"range": true,
"refId": "B"
}
],
"title": "disk io",
"type": "stat"
"type": "timeseries"
},
{
"datasource": {
"type": "prometheus",
"uid": "${DS_PROMETHEUS}"
},
"description": "load on `nebula`",
"fieldConfig": {
"defaults": {
"color": {
"mode": "thresholds"
"mode": "palette-classic"
},
"custom": {
"axisLabel": "",
"axisPlacement": "auto",
"axisSoftMax": 20,
"barAlignment": 0,
"drawStyle": "line",
"fillOpacity": 15,
"gradientMode": "opacity",
"hideFrom": {
"legend": false,
"tooltip": false,
"viz": false
},
"lineInterpolation": "linear",
"lineWidth": 2,
"pointSize": 5,
"scaleDistribution": {
"type": "linear"
},
"showPoints": "never",
"spanNulls": 3600000,
"stacking": {
"group": "A",
"mode": "none"
},
"thresholdsStyle": {
"mode": "line"
}
},
"mappings": [],
"thresholds": {
@ -771,33 +944,79 @@
]
}
},
"overrides": []
"overrides": [
{
"matcher": {
"id": "byName",
"options": "load 1"
},
"properties": [
{
"id": "color",
"value": {
"fixedColor": "red",
"mode": "fixed"
}
}
]
},
{
"matcher": {
"id": "byName",
"options": "load 5"
},
"properties": [
{
"id": "color",
"value": {
"fixedColor": "dark-blue",
"mode": "fixed"
}
}
]
},
{
"matcher": {
"id": "byName",
"options": "load 15"
},
"properties": [
{
"id": "color",
"value": {
"fixedColor": "super-light-purple",
"mode": "fixed"
}
}
]
}
]
},
"gridPos": {
"h": 7,
"w": 15,
"x": 0,
"y": 29
"y": 28
},
"id": 20,
"options": {
"colorMode": "value",
"graphMode": "area",
"justifyMode": "auto",
"orientation": "auto",
"reduceOptions": {
"calcs": [
"lastNotNull"
],
"fields": "",
"values": false
"legend": {
"calcs": [],
"displayMode": "list",
"placement": "bottom"
},
"text": {},
"textMode": "auto"
"tooltip": {
"mode": "multi",
"sort": "none"
}
},
"pluginVersion": "8.4.4",
"pluginVersion": "9.0.2",
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "${DS_PROMETHEUS}"
},
"exemplar": true,
"expr": "node_load1",
"interval": "",
@ -805,6 +1024,10 @@
"refId": "A"
},
{
"datasource": {
"type": "prometheus",
"uid": "${DS_PROMETHEUS}"
},
"exemplar": true,
"expr": "node_load5",
"hide": false,
@ -813,6 +1036,10 @@
"refId": "B"
},
{
"datasource": {
"type": "prometheus",
"uid": "${DS_PROMETHEUS}"
},
"exemplar": true,
"expr": "node_load15",
"hide": false,
@ -822,13 +1049,45 @@
}
],
"title": "load",
"type": "stat"
"type": "timeseries"
},
{
"datasource": {
"type": "prometheus",
"uid": "${DS_PROMETHEUS}"
},
"fieldConfig": {
"defaults": {
"color": {
"mode": "continuous-YlBl"
"mode": "continuous-BlYlRd"
},
"custom": {
"axisLabel": "",
"axisPlacement": "auto",
"barAlignment": 0,
"drawStyle": "line",
"fillOpacity": 20,
"gradientMode": "scheme",
"hideFrom": {
"legend": false,
"tooltip": false,
"viz": false
},
"lineInterpolation": "smooth",
"lineWidth": 3,
"pointSize": 5,
"scaleDistribution": {
"type": "linear"
},
"showPoints": "auto",
"spanNulls": false,
"stacking": {
"group": "A",
"mode": "none"
},
"thresholdsStyle": {
"mode": "line"
}
},
"mappings": [],
"thresholds": {
@ -839,16 +1098,11 @@
"value": null
},
{
"color": "#EAB839",
"value": 1
},
{
"color": "red",
"value": 2
"color": "super-light-red",
"value": 0.2
}
]
},
"unit": "short"
}
},
"overrides": []
},
@ -856,39 +1110,44 @@
"h": 7,
"w": 9,
"x": 15,
"y": 29
"y": 28
},
"id": 22,
"options": {
"colorMode": "value",
"graphMode": "area",
"justifyMode": "auto",
"orientation": "auto",
"reduceOptions": {
"calcs": [
"lastNotNull"
],
"fields": "",
"values": false
"legend": {
"calcs": [],
"displayMode": "list",
"placement": "bottom"
},
"text": {},
"textMode": "auto"
"tooltip": {
"mode": "multi",
"sort": "none"
}
},
"pluginVersion": "8.4.4",
"pluginVersion": "9.0.2",
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "${DS_PROMETHEUS}"
},
"editorMode": "code",
"exemplar": true,
"expr": "rate(node_pressure_cpu_waiting_seconds_total[5m])",
"instant": false,
"interval": "",
"legendFormat": "cpu pressure (5 minute avg)",
"legendFormat": "cpu waiting (5 minute avg)",
"refId": "A"
}
],
"title": "cpu waiting",
"type": "stat"
"type": "timeseries"
},
{
"datasource": {
"type": "prometheus",
"uid": "${DS_PROMETHEUS}"
},
"fieldConfig": {
"defaults": {
"color": {
@ -896,7 +1155,7 @@
"mode": "palette-classic"
},
"custom": {
"axisLabel": "",
"axisLabel": "bytes",
"axisPlacement": "auto",
"barAlignment": 0,
"drawStyle": "line",
@ -932,8 +1191,7 @@
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
"color": "green"
}
]
},
@ -945,7 +1203,7 @@
"h": 8,
"w": 24,
"x": 0,
"y": 36
"y": 35
},
"id": 24,
"options": {
@ -956,33 +1214,51 @@
"placement": "bottom"
},
"tooltip": {
"mode": "single",
"mode": "multi",
"sort": "none"
}
},
"pluginVersion": "7.5.1",
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "${DS_PROMETHEUS}"
},
"editorMode": "code",
"exemplar": true,
"expr": "node_memory_MemAvailable_bytes",
"interval": "",
"legendFormat": "mem available bytes",
"legendFormat": "mem available",
"range": true,
"refId": "A"
},
{
"datasource": {
"type": "prometheus",
"uid": "${DS_PROMETHEUS}"
},
"editorMode": "code",
"exemplar": true,
"expr": "node_memory_Active_bytes",
"hide": false,
"interval": "",
"legendFormat": "mem active bytes",
"legendFormat": "mem active",
"range": true,
"refId": "B"
},
{
"datasource": {
"type": "prometheus",
"uid": "${DS_PROMETHEUS}"
},
"editorMode": "code",
"exemplar": true,
"expr": "node_memory_AnonPages_bytes",
"hide": false,
"interval": "",
"legendFormat": "mem anon-pages bytes",
"legendFormat": "mem anon-pages ",
"range": true,
"refId": "C"
}
],
@ -991,7 +1267,7 @@
}
],
"refresh": "1m",
"schemaVersion": 35,
"schemaVersion": 36,
"style": "dark",
"tags": [
"prometheus"
@ -1019,6 +1295,6 @@
"timezone": "",
"title": "nebula stats",
"uid": "Ha2VyrtGz",
"version": 29,
"version": 49,
"weekStart": ""
}