add 'nebula stats' dashboard config file

This commit is contained in:
surtur 2022-03-22 13:46:33 +01:00
parent 0e6b93d969
commit 83b6023d32
Signed by: wanderer
GPG Key ID: 19CE1EC1D9E0486D

1024
nebula_stats.json Normal file
View File

@ -0,0 +1,1024 @@
{
"__inputs": [
{
"name": "DS_PROMETHEUS",
"label": "Prometheus",
"description": "",
"type": "datasource",
"pluginId": "prometheus",
"pluginName": "Prometheus"
}
],
"__elements": [],
"__requires": [
{
"type": "grafana",
"id": "grafana",
"name": "Grafana",
"version": "8.4.4"
},
{
"type": "datasource",
"id": "prometheus",
"name": "Prometheus",
"version": "1.0.0"
},
{
"type": "panel",
"id": "stat",
"name": "Stat",
"version": ""
},
{
"type": "panel",
"id": "timeseries",
"name": "Time series",
"version": ""
}
],
"annotations": {
"list": [
{
"builtIn": 1,
"datasource": "-- Grafana --",
"enable": true,
"hide": true,
"iconColor": "rgba(0, 211, 255, 1)",
"limit": 100,
"name": "Annotations & Alerts",
"showIn": 0,
"target": {
"limit": 100,
"matchAny": false,
"tags": [],
"type": "dashboard"
},
"type": "dashboard"
}
]
},
"editable": true,
"fiscalYearStartMonth": 0,
"graphTooltip": 2,
"id": null,
"links": [],
"liveNow": false,
"panels": [
{
"fieldConfig": {
"defaults": {
"color": {
"mode": "thresholds"
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
},
{
"color": "red",
"value": 80
}
]
},
"unit": "short"
},
"overrides": [
{
"matcher": {
"id": "byFrameRefID",
"options": "A"
},
"properties": [
{
"id": "color",
"value": {
"fixedColor": "blue",
"mode": "fixed"
}
}
]
},
{
"matcher": {
"id": "byFrameRefID",
"options": "B"
},
"properties": [
{
"id": "color",
"value": {
"fixedColor": "dark-purple",
"mode": "fixed"
}
}
]
},
{
"matcher": {
"id": "byFrameRefID",
"options": "C"
},
"properties": [
{
"id": "color",
"value": {
"fixedColor": "light-red",
"mode": "fixed"
}
}
]
}
]
},
"gridPos": {
"h": 7,
"w": 24,
"x": 0,
"y": 0
},
"id": 14,
"options": {
"colorMode": "value",
"graphMode": "area",
"justifyMode": "auto",
"orientation": "auto",
"reduceOptions": {
"calcs": [
"last"
],
"fields": "",
"values": false
},
"text": {},
"textMode": "auto"
},
"pluginVersion": "8.4.4",
"targets": [
{
"exemplar": true,
"expr": "rate(nginx_http_requests_total[5m])",
"format": "time_series",
"instant": false,
"interval": "",
"intervalFactor": 1,
"legendFormat": "http requests per second (5 minute avg)",
"refId": "A"
},
{
"exemplar": true,
"expr": "rate(nginx_connections_accepted[5m])",
"interval": "",
"legendFormat": "connections accepted per second (5 minute avg)",
"refId": "B"
},
{
"exemplar": true,
"expr": "rate(nginx_connections_waiting[5m])",
"hide": false,
"interval": "",
"legendFormat": "connections waiting per second (5 minute avg)",
"refId": "C"
},
{
"exemplar": true,
"expr": "rate(nginx_connections_active[5m])",
"hide": false,
"interval": "",
"legendFormat": "connections per second active (5 minute avg)",
"refId": "D"
}
],
"title": "nginx",
"type": "stat"
},
{
"description": "",
"fieldConfig": {
"defaults": {
"color": {
"mode": "palette-classic"
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
}
]
},
"unit": "short"
},
"overrides": []
},
"gridPos": {
"h": 7,
"w": 24,
"x": 0,
"y": 7
},
"id": 10,
"links": [
{
"targetBlank": true,
"title": "git.dotya.ml",
"url": "https://git.dotya.ml"
}
],
"options": {
"colorMode": "value",
"graphMode": "area",
"justifyMode": "auto",
"orientation": "auto",
"reduceOptions": {
"calcs": [
"last"
],
"fields": "",
"values": false
},
"text": {},
"textMode": "auto"
},
"pluginVersion": "8.4.4",
"targets": [
{
"exemplar": true,
"expr": "gitea_users",
"instant": false,
"interval": "",
"legendFormat": "users",
"refId": "A"
},
{
"exemplar": true,
"expr": "gitea_organizations",
"hide": false,
"instant": false,
"interval": "",
"intervalFactor": 1,
"legendFormat": "orgs",
"refId": "F"
},
{
"exemplar": true,
"expr": "gitea_repositories",
"interval": "",
"intervalFactor": 1,
"legendFormat": "repositories",
"refId": "B"
},
{
"exemplar": true,
"expr": "gitea_mirrors",
"hide": false,
"interval": "",
"legendFormat": "mirrors",
"refId": "E"
},
{
"expr": "gitea_issues",
"interval": "",
"legendFormat": "issues",
"refId": "C"
},
{
"expr": "gitea_comments",
"interval": "",
"legendFormat": "comments",
"refId": "D"
}
],
"title": "gitea",
"type": "stat"
},
{
"description": "",
"fieldConfig": {
"defaults": {
"color": {
"mode": "palette-classic"
},
"custom": {
"axisLabel": "build count",
"axisPlacement": "auto",
"axisSoftMin": 0,
"barAlignment": -1,
"drawStyle": "line",
"fillOpacity": 60,
"gradientMode": "opacity",
"hideFrom": {
"graph": false,
"legend": false,
"tooltip": false,
"viz": false
},
"lineInterpolation": "stepAfter",
"lineStyle": {
"fill": "solid"
},
"lineWidth": 2,
"pointSize": 5,
"scaleDistribution": {
"type": "linear"
},
"showPoints": "never",
"spanNulls": true,
"stacking": {
"group": "A",
"mode": "none"
},
"thresholdsStyle": {
"mode": "off"
}
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
}
]
},
"unit": "none"
},
"overrides": [
{
"matcher": {
"id": "byName",
"options": "pending builds"
},
"properties": [
{
"id": "color",
"value": {
"fixedColor": "semi-dark-blue",
"mode": "fixed"
}
},
{
"id": "mappings",
"value": [
{
"options": {
"from": 1,
"result": {
"text": "ALERT - pending builds"
},
"to": 1000
},
"type": "range"
}
]
},
{
"id": "thresholds",
"value": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
},
{
"color": "#EAB839",
"value": 2
},
{
"color": "red",
"value": 5
}
]
}
}
]
},
{
"matcher": {
"id": "byName",
"options": "running builds"
},
"properties": [
{
"id": "color",
"value": {
"fixedColor": "semi-dark-green",
"mode": "fixed"
}
},
{
"id": "custom.fillBelowTo",
"value": "pending builds"
},
{
"id": "custom.lineStyle",
"value": {
"dash": [
0,
10
],
"fill": "dot"
}
},
{
"id": "custom.lineWidth",
"value": 3
}
]
},
{
"matcher": {
"id": "byName",
"options": "running jobs"
},
"properties": [
{
"id": "color",
"value": {
"fixedColor": "super-light-green",
"mode": "fixed"
}
},
{
"id": "custom.fillBelowTo",
"value": "running builds"
},
{
"id": "custom.gradientMode",
"value": "opacity"
}
]
},
{
"matcher": {
"id": "byName",
"options": "pending jobs"
},
"properties": [
{
"id": "mappings",
"value": [
{
"options": {
"from": 1,
"result": {
"text": "ALERT - pending jobs"
},
"to": 1000
},
"type": "range"
}
]
},
{
"id": "custom.lineWidth",
"value": 1
}
]
}
]
},
"gridPos": {
"h": 7,
"w": 24,
"x": 0,
"y": 14
},
"id": 8,
"options": {
"graph": {},
"legend": {
"calcs": [],
"displayMode": "list",
"placement": "bottom"
},
"tooltip": {
"mode": "multi",
"sort": "none"
}
},
"pluginVersion": "7.5.1",
"targets": [
{
"exemplar": true,
"expr": "drone_running_builds",
"format": "time_series",
"interval": "",
"intervalFactor": 1,
"legendFormat": "running builds",
"refId": "A"
},
{
"exemplar": true,
"expr": "drone_running_jobs",
"hide": false,
"interval": "",
"intervalFactor": 1,
"legendFormat": "running jobs",
"refId": "C"
},
{
"expr": "drone_pending_builds",
"format": "time_series",
"interval": "",
"legendFormat": "pending builds",
"refId": "B"
},
{
"exemplar": true,
"expr": "drone_pending_jobs",
"hide": false,
"interval": "",
"legendFormat": "pending jobs",
"refId": "D"
}
],
"title": "drone ci",
"type": "timeseries"
},
{
"collapsed": false,
"gridPos": {
"h": 1,
"w": 24,
"x": 0,
"y": 21
},
"id": 12,
"panels": [],
"title": "nebula",
"type": "row"
},
{
"datasource": {
"type": "prometheus",
"uid": "${DS_PROMETHEUS}"
},
"description": "",
"fieldConfig": {
"defaults": {
"color": {
"mode": "palette-classic"
},
"custom": {
"axisLabel": "",
"axisPlacement": "auto",
"barAlignment": 0,
"drawStyle": "line",
"fillOpacity": 40,
"gradientMode": "opacity",
"hideFrom": {
"graph": false,
"legend": false,
"tooltip": false,
"viz": false
},
"lineInterpolation": "stepBefore",
"lineStyle": {
"fill": "solid"
},
"lineWidth": 2,
"pointSize": 5,
"scaleDistribution": {
"type": "linear"
},
"showPoints": "never",
"spanNulls": true,
"stacking": {
"group": "A",
"mode": "none"
},
"thresholdsStyle": {
"mode": "off"
}
},
"displayName": "filesystem free bytes (/)",
"mappings": [
{
"options": {
"214748400000": {
"text": "size of /"
}
},
"type": "value"
}
],
"max": 214748400000,
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
},
{
"color": "red",
"value": 40
},
{
"color": "#EAB839",
"value": 60
}
]
},
"unit": "bytes"
},
"overrides": []
},
"gridPos": {
"h": 7,
"w": 12,
"x": 0,
"y": 22
},
"id": 4,
"options": {
"graph": {},
"legend": {
"calcs": [
"mean",
"lastNotNull",
"max",
"min"
],
"displayMode": "list",
"placement": "bottom"
},
"tooltip": {
"mode": "single",
"sort": "none"
}
},
"pluginVersion": "7.5.1",
"targets": [
{
"expr": "node_filesystem_free_bytes",
"hide": false,
"instant": false,
"interval": "",
"legendFormat": "",
"refId": "A"
}
],
"title": "filesystem utilization",
"transformations": [
{
"id": "filterFieldsByName",
"options": {
"include": {
"names": [
"Time",
"node_filesystem_free_bytes{device=\"/dev/sda3\", fstype=\"ext4\", instance=\"metrics.dotya.ml:443\", job=\"node\", mountpoint=\"/\"}"
]
}
}
}
],
"type": "timeseries"
},
{
"fieldConfig": {
"defaults": {
"color": {
"mode": "continuous-BlPu"
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
}
]
},
"unit": "bytes"
},
"overrides": []
},
"gridPos": {
"h": 7,
"w": 12,
"x": 12,
"y": 22
},
"id": 18,
"options": {
"colorMode": "value",
"graphMode": "area",
"justifyMode": "auto",
"orientation": "auto",
"reduceOptions": {
"calcs": [
"lastNotNull"
],
"fields": "",
"values": false
},
"text": {},
"textMode": "auto"
},
"pluginVersion": "8.4.4",
"targets": [
{
"exemplar": true,
"expr": "rate(node_disk_written_bytes_total[1m])",
"interval": "",
"legendFormat": "data written (1 minute avg)",
"refId": "A"
},
{
"exemplar": true,
"expr": "rate(node_disk_read_bytes_total[1m])",
"hide": false,
"interval": "",
"legendFormat": "data read (1 minute avg)",
"refId": "B"
}
],
"title": "disk io",
"type": "stat"
},
{
"fieldConfig": {
"defaults": {
"color": {
"mode": "thresholds"
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
},
{
"color": "#EAB839",
"value": 3
},
{
"color": "red",
"value": 4
}
]
}
},
"overrides": []
},
"gridPos": {
"h": 7,
"w": 15,
"x": 0,
"y": 29
},
"id": 20,
"options": {
"colorMode": "value",
"graphMode": "area",
"justifyMode": "auto",
"orientation": "auto",
"reduceOptions": {
"calcs": [
"lastNotNull"
],
"fields": "",
"values": false
},
"text": {},
"textMode": "auto"
},
"pluginVersion": "8.4.4",
"targets": [
{
"exemplar": true,
"expr": "node_load1",
"interval": "",
"legendFormat": "load 1",
"refId": "A"
},
{
"exemplar": true,
"expr": "node_load5",
"hide": false,
"interval": "",
"legendFormat": "load 5",
"refId": "B"
},
{
"exemplar": true,
"expr": "node_load15",
"hide": false,
"interval": "",
"legendFormat": "load 15",
"refId": "C"
}
],
"title": "load",
"type": "stat"
},
{
"fieldConfig": {
"defaults": {
"color": {
"mode": "continuous-YlBl"
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
},
{
"color": "#EAB839",
"value": 1
},
{
"color": "red",
"value": 2
}
]
},
"unit": "short"
},
"overrides": []
},
"gridPos": {
"h": 7,
"w": 9,
"x": 15,
"y": 29
},
"id": 22,
"options": {
"colorMode": "value",
"graphMode": "area",
"justifyMode": "auto",
"orientation": "auto",
"reduceOptions": {
"calcs": [
"lastNotNull"
],
"fields": "",
"values": false
},
"text": {},
"textMode": "auto"
},
"pluginVersion": "8.4.4",
"targets": [
{
"exemplar": true,
"expr": "rate(node_pressure_cpu_waiting_seconds_total[5m])",
"instant": false,
"interval": "",
"legendFormat": "cpu pressure (5 minute avg)",
"refId": "A"
}
],
"title": "cpu waiting",
"type": "stat"
},
{
"fieldConfig": {
"defaults": {
"color": {
"fixedColor": "purple",
"mode": "palette-classic"
},
"custom": {
"axisLabel": "",
"axisPlacement": "auto",
"barAlignment": 0,
"drawStyle": "line",
"fillOpacity": 13,
"gradientMode": "opacity",
"hideFrom": {
"graph": false,
"legend": false,
"tooltip": false,
"viz": false
},
"lineInterpolation": "smooth",
"lineStyle": {
"fill": "solid"
},
"lineWidth": 2,
"pointSize": 5,
"scaleDistribution": {
"type": "linear"
},
"showPoints": "never",
"spanNulls": true,
"stacking": {
"group": "A",
"mode": "none"
},
"thresholdsStyle": {
"mode": "off"
}
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
}
]
},
"unit": "bytes"
},
"overrides": []
},
"gridPos": {
"h": 8,
"w": 24,
"x": 0,
"y": 36
},
"id": 24,
"options": {
"graph": {},
"legend": {
"calcs": [],
"displayMode": "list",
"placement": "bottom"
},
"tooltip": {
"mode": "single",
"sort": "none"
}
},
"pluginVersion": "7.5.1",
"targets": [
{
"exemplar": true,
"expr": "node_memory_MemAvailable_bytes",
"interval": "",
"legendFormat": "mem available bytes",
"refId": "A"
},
{
"exemplar": true,
"expr": "node_memory_Active_bytes",
"hide": false,
"interval": "",
"legendFormat": "mem active bytes",
"refId": "B"
},
{
"exemplar": true,
"expr": "node_memory_AnonPages_bytes",
"hide": false,
"interval": "",
"legendFormat": "mem anon-pages bytes",
"refId": "C"
}
],
"title": "memory",
"type": "timeseries"
}
],
"refresh": "1m",
"schemaVersion": 35,
"style": "dark",
"tags": [
"prometheus"
],
"templating": {
"list": []
},
"time": {
"from": "now-24h",
"to": "now"
},
"timepicker": {
"refresh_intervals": [
"10s",
"30s",
"1m",
"5m",
"15m",
"30m",
"1h",
"2h",
"1d"
]
},
"timezone": "",
"title": "nebula stats",
"uid": "Ha2VyrtGz",
"version": 29,
"weekStart": ""
}