Update uptime-kuma.json

Added the ability to select the Instance
Added new Panels with descriptions
Changed some visuals
pull/4680/head
Keno 1 month ago committed by GitHub
parent 1de8d77260
commit 8b448bd2a5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -1,30 +1,12 @@
{ {
"__inputs": [],
"__requires": [
{
"type": "grafana",
"id": "grafana",
"name": "Grafana",
"version": "8.1.1"
},
{
"type": "panel",
"id": "stat",
"name": "Stat",
"version": ""
},
{
"type": "panel",
"id": "timeseries",
"name": "Time series",
"version": ""
}
],
"annotations": { "annotations": {
"list": [ "list": [
{ {
"builtIn": 1, "builtIn": 1,
"datasource": "-- Grafana --", "datasource": {
"type": "grafana",
"uid": "-- Grafana --"
},
"enable": true, "enable": true,
"hide": true, "hide": true,
"iconColor": "rgba(0, 211, 255, 1)", "iconColor": "rgba(0, 211, 255, 1)",
@ -40,13 +22,173 @@
] ]
}, },
"editable": true, "editable": true,
"gnetId": 14847, "fiscalYearStartMonth": 0,
"graphTooltip": 0, "graphTooltip": 0,
"id": null, "id": 9,
"links": [], "links": [
{
"asDropdown": false,
"icon": "cloud",
"includeVars": false,
"keepTime": false,
"tags": [],
"targetBlank": true,
"title": "Uptime Kuma",
"tooltip": "Open Dashboard",
"type": "link",
"url": "https://status.example.com"
}
],
"liveNow": false,
"panels": [ "panels": [
{ {
"datasource": null, "datasource": {
"type": "prometheus",
"uid": "SUpEVGqnk"
},
"description": "",
"fieldConfig": {
"defaults": {
"color": {
"mode": "thresholds"
},
"decimals": 0,
"mappings": [],
"min": 0,
"noValue": "0",
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
},
{
"color": "red",
"value": 80
}
]
},
"unit": "short"
},
"overrides": []
},
"gridPos": {
"h": 5,
"w": 6,
"x": 0,
"y": 0
},
"id": 6,
"options": {
"colorMode": "value",
"graphMode": "none",
"justifyMode": "center",
"orientation": "vertical",
"reduceOptions": {
"calcs": [
"lastNotNull"
],
"fields": "",
"values": false
},
"showPercentChange": false,
"textMode": "auto",
"wideLayout": true
},
"pluginVersion": "10.4.1",
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "SUpEVGqnk"
},
"disableTextWrap": false,
"editorMode": "builder",
"expr": "count by(instance) (uptime_status{instance=\"$Instance\"})",
"fullMetaSearch": false,
"includeNullMetadata": true,
"legendFormat": "Total",
"range": true,
"refId": "A",
"useBackend": false
},
{
"datasource": {
"type": "prometheus",
"uid": "SUpEVGqnk"
},
"disableTextWrap": false,
"editorMode": "builder",
"expr": "count by(instance) (uptime_status{instance=\"$Instance\"} == 1)",
"fullMetaSearch": false,
"hide": false,
"includeNullMetadata": true,
"legendFormat": "Active",
"range": true,
"refId": "B",
"useBackend": false
},
{
"datasource": {
"type": "prometheus",
"uid": "SUpEVGqnk"
},
"disableTextWrap": false,
"editorMode": "builder",
"expr": "count by(instance) (uptime_status{instance=\"$Instance\"} == 2)",
"fullMetaSearch": false,
"hide": false,
"includeNullMetadata": true,
"legendFormat": "Pending",
"range": true,
"refId": "C",
"useBackend": false
},
{
"datasource": {
"type": "prometheus",
"uid": "SUpEVGqnk"
},
"disableTextWrap": false,
"editorMode": "builder",
"expr": "count by(instance) (uptime_status{instance=\"$Instance\"} == 0)",
"fullMetaSearch": false,
"hide": false,
"includeNullMetadata": true,
"legendFormat": "Inactive",
"range": true,
"refId": "D",
"useBackend": false
}
],
"title": "Services",
"transformations": [
{
"disabled": true,
"id": "calculateField",
"options": {
"alias": "Pending / Inactive",
"binary": {
"left": "Total",
"operator": "-",
"right": "Active"
},
"mode": "binary",
"reduce": {
"reducer": "sum"
}
}
}
],
"type": "stat"
},
{
"datasource": {
"type": "prometheus",
"uid": "SUpEVGqnk"
},
"description": "This Panel lists Services that are in inactive state\n",
"fieldConfig": { "fieldConfig": {
"defaults": { "defaults": {
"color": { "color": {
@ -56,47 +198,50 @@
{ {
"options": { "options": {
"0": { "0": {
"color": "red", "color": "dark-red",
"index": 0, "index": 0,
"text": "DOWN" "text": "Down"
}, },
"1": { "1": {
"color": "green", "color": "dark-green",
"index": 2,
"text": "Up"
},
"2": {
"color": "dark-yellow",
"index": 1, "index": 1,
"text": "UP" "text": "Pending"
} }
}, },
"type": "value" "type": "value"
} }
], ],
"noValue": "Everything UP",
"thresholds": { "thresholds": {
"mode": "absolute", "mode": "absolute",
"steps": [ "steps": [
{ {
"color": "green", "color": "green",
"value": null "value": null
},
{
"color": "red",
"value": 80
} }
] ]
} },
"unit": "bool"
}, },
"overrides": [] "overrides": []
}, },
"gridPos": { "gridPos": {
"h": 8, "h": 28,
"w": 9, "w": 4,
"x": 0, "x": 6,
"y": 0 "y": 0
}, },
"id": 4, "id": 9,
"options": { "options": {
"colorMode": "background", "colorMode": "background_solid",
"graphMode": "area", "graphMode": "none",
"justifyMode": "center", "justifyMode": "center",
"orientation": "auto", "orientation": "horizontal",
"reduceOptions": { "reduceOptions": {
"calcs": [ "calcs": [
"lastNotNull" "lastNotNull"
@ -104,24 +249,38 @@
"fields": "", "fields": "",
"values": false "values": false
}, },
"showPercentChange": false,
"text": {}, "text": {},
"textMode": "auto" "textMode": "name",
"wideLayout": false
}, },
"pluginVersion": "8.1.1", "pluginVersion": "10.4.1",
"targets": [ "targets": [
{ {
"exemplar": true, "datasource": {
"expr": "monitor_status ", "type": "prometheus",
"interval": "", "uid": "SUpEVGqnk"
"legendFormat": "{{ monitor_name }}", },
"refId": "A" "disableTextWrap": false,
"editorMode": "builder",
"expr": "uptime_status{instance=\"$Instance\"} == 0",
"fullMetaSearch": false,
"includeNullMetadata": true,
"legendFormat": "{{uptime_name}}",
"range": true,
"refId": "A",
"useBackend": false
} }
], ],
"title": "Site Status", "title": "Unhealthy Services",
"type": "stat" "type": "stat"
}, },
{ {
"datasource": null, "datasource": {
"type": "prometheus",
"uid": "SUpEVGqnk"
},
"description": "This Panel lists Services that are in pending state\n",
"fieldConfig": { "fieldConfig": {
"defaults": { "defaults": {
"color": { "color": {
@ -131,47 +290,50 @@
{ {
"options": { "options": {
"0": { "0": {
"color": "red", "color": "dark-red",
"index": 0, "index": 0,
"text": "EXPIRED" "text": "Down"
}, },
"1": { "1": {
"color": "green", "color": "dark-green",
"index": 2,
"text": "Up"
},
"2": {
"color": "dark-yellow",
"index": 1, "index": 1,
"text": "VALID" "text": "Pending"
} }
}, },
"type": "value" "type": "value"
} }
], ],
"noValue": "Everything UP",
"thresholds": { "thresholds": {
"mode": "absolute", "mode": "absolute",
"steps": [ "steps": [
{
"color": "red",
"value": null
},
{ {
"color": "green", "color": "green",
"value": 1 "value": null
} }
] ]
} },
"unit": "bool"
}, },
"overrides": [] "overrides": []
}, },
"gridPos": { "gridPos": {
"h": 8, "h": 28,
"w": 9, "w": 4,
"x": 12, "x": 10,
"y": 0 "y": 0
}, },
"id": 5, "id": 2,
"options": { "options": {
"colorMode": "background", "colorMode": "background_solid",
"graphMode": "area", "graphMode": "none",
"justifyMode": "center", "justifyMode": "auto",
"orientation": "auto", "orientation": "horizontal",
"reduceOptions": { "reduceOptions": {
"calcs": [ "calcs": [
"lastNotNull" "lastNotNull"
@ -179,58 +341,84 @@
"fields": "", "fields": "",
"values": false "values": false
}, },
"showPercentChange": false,
"text": {}, "text": {},
"textMode": "auto" "textMode": "name",
"wideLayout": true
}, },
"pluginVersion": "8.1.1", "pluginVersion": "10.4.1",
"targets": [ "targets": [
{ {
"exemplar": true, "datasource": {
"expr": "monitor_cert_is_valid", "type": "prometheus",
"interval": "", "uid": "SUpEVGqnk"
"legendFormat": "{{ monitor_name }}", },
"refId": "A" "disableTextWrap": false,
"editorMode": "builder",
"expr": "last_over_time(uptime_status{instance=\"$Instance\"}[$__interval]) == 2",
"fullMetaSearch": false,
"hide": false,
"includeNullMetadata": true,
"legendFormat": "{{uptime_name}}",
"range": true,
"refId": "B",
"useBackend": false
} }
], ],
"title": "TLS Certificate Status", "title": "Pending Services",
"type": "stat" "type": "stat"
}, },
{ {
"datasource": null, "datasource": {
"type": "prometheus",
"uid": "SUpEVGqnk"
},
"description": "",
"fieldConfig": { "fieldConfig": {
"defaults": { "defaults": {
"color": { "color": {
"mode": "palette-classic" "mode": "continuous-GrYlRd",
"seriesBy": "last"
}, },
"custom": { "custom": {
"axisBorderShow": false,
"axisCenteredZero": false,
"axisColorMode": "text",
"axisLabel": "", "axisLabel": "",
"axisPlacement": "auto", "axisPlacement": "auto",
"barAlignment": 0, "barAlignment": 0,
"drawStyle": "line", "drawStyle": "line",
"fillOpacity": 0, "fillOpacity": 23,
"gradientMode": "none", "gradientMode": "hue",
"hideFrom": { "hideFrom": {
"legend": false, "legend": false,
"tooltip": false, "tooltip": false,
"viz": false "viz": false
}, },
"lineInterpolation": "linear", "insertNulls": false,
"lineInterpolation": "smooth",
"lineStyle": {
"fill": "solid"
},
"lineWidth": 1, "lineWidth": 1,
"pointSize": 5, "pointSize": 5,
"scaleDistribution": { "scaleDistribution": {
"type": "linear" "type": "linear"
}, },
"showPoints": "auto", "showPoints": "auto",
"spanNulls": false, "spanNulls": 300000,
"stacking": { "stacking": {
"group": "A", "group": "A",
"mode": "none" "mode": "none"
}, },
"thresholdsStyle": { "thresholdsStyle": {
"mode": "off" "mode": "dashed+area"
} }
}, },
"decimals": 0,
"mappings": [], "mappings": [],
"max": 2000,
"min": 0,
"thresholds": { "thresholds": {
"mode": "absolute", "mode": "absolute",
"steps": [ "steps": [
@ -238,9 +426,21 @@
"color": "green", "color": "green",
"value": null "value": null
}, },
{
"color": "yellow",
"value": 400
},
{
"color": "dark-orange",
"value": 600
},
{ {
"color": "red", "color": "red",
"value": 80 "value": 1000
},
{
"color": "dark-red",
"value": 1500
} }
] ]
}, },
@ -249,40 +449,55 @@
"overrides": [] "overrides": []
}, },
"gridPos": { "gridPos": {
"h": 8, "h": 14,
"w": 9, "w": 10,
"x": 0, "x": 14,
"y": 8 "y": 0
}, },
"id": 2, "id": 4,
"options": { "options": {
"legend": { "legend": {
"calcs": [ "calcs": [
"max", "mean",
"min", "min"
"lastNotNull"
], ],
"displayMode": "table", "displayMode": "table",
"placement": "bottom" "placement": "right",
"showLegend": true,
"sortBy": "Mean",
"sortDesc": true
}, },
"tooltip": { "tooltip": {
"mode": "single" "mode": "single",
"sort": "none"
} }
}, },
"targets": [ "targets": [
{ {
"exemplar": true, "datasource": {
"expr": "sum(monitor_response_time{}) by (monitor_name)", "type": "prometheus",
"interval": "", "uid": "SUpEVGqnk"
"legendFormat": "{{ monitor_name }}", },
"refId": "A" "disableTextWrap": false,
"editorMode": "builder",
"expr": "uptime_response_time{uptime_type=\"http\", instance=\"$Instance\"}",
"fullMetaSearch": false,
"includeNullMetadata": true,
"legendFormat": "{{uptime_name}}",
"range": true,
"refId": "A",
"useBackend": false
} }
], ],
"title": "Response Times", "title": "Response Times (http based)",
"type": "timeseries" "type": "timeseries"
}, },
{ {
"datasource": null, "datasource": {
"type": "prometheus",
"uid": "SUpEVGqnk"
},
"description": "This panel shows all http services and the remaining days after the certificate needs to be renewed",
"fieldConfig": { "fieldConfig": {
"defaults": { "defaults": {
"color": { "color": {
@ -293,32 +508,37 @@
"mode": "absolute", "mode": "absolute",
"steps": [ "steps": [
{ {
"color": "red", "color": "dark-red",
"value": null "value": null
}, },
{ {
"color": "#EAB839", "color": "#EAB839",
"value": 15
},
{
"color": "light-green",
"value": 30 "value": 30
}, },
{ {
"color": "green", "color": "dark-green",
"value": 60 "value": 60
} }
] ]
} },
"unit": "short"
}, },
"overrides": [] "overrides": []
}, },
"gridPos": { "gridPos": {
"h": 8, "h": 23,
"w": 9, "w": 6,
"x": 12, "x": 0,
"y": 8 "y": 5
}, },
"id": 6, "id": 8,
"options": { "options": {
"colorMode": "background", "colorMode": "background_solid",
"graphMode": "area", "graphMode": "none",
"justifyMode": "center", "justifyMode": "center",
"orientation": "auto", "orientation": "auto",
"reduceOptions": { "reduceOptions": {
@ -328,28 +548,190 @@
"fields": "", "fields": "",
"values": false "values": false
}, },
"text": {}, "showPercentChange": false,
"textMode": "auto" "textMode": "auto",
"wideLayout": true
}, },
"pluginVersion": "8.1.1", "pluginVersion": "10.4.1",
"targets": [ "targets": [
{ {
"exemplar": true, "datasource": {
"expr": "monitor_cert_days_remaining", "type": "prometheus",
"interval": "", "uid": "SUpEVGqnk"
"legendFormat": "{{ monitor_name }}", },
"refId": "A" "disableTextWrap": false,
"editorMode": "builder",
"expr": "uptime_cert_days_remaining{instance=\"$Instance\", uptime_type=\"http\"} < 65",
"fullMetaSearch": false,
"includeNullMetadata": true,
"instant": false,
"legendFormat": "{{uptime_name}}",
"range": true,
"refId": "A",
"useBackend": false
} }
], ],
"title": "TLS Certificate Remaining Days", "title": "Certificate Validity Days",
"type": "stat" "type": "stat"
},
{
"datasource": {
"type": "prometheus",
"uid": "SUpEVGqnk"
},
"description": "",
"fieldConfig": {
"defaults": {
"color": {
"mode": "continuous-GrYlRd",
"seriesBy": "last"
},
"custom": {
"axisBorderShow": false,
"axisCenteredZero": false,
"axisColorMode": "text",
"axisLabel": "",
"axisPlacement": "auto",
"barAlignment": 0,
"drawStyle": "line",
"fillOpacity": 23,
"gradientMode": "hue",
"hideFrom": {
"legend": false,
"tooltip": false,
"viz": false
},
"insertNulls": false,
"lineInterpolation": "smooth",
"lineStyle": {
"fill": "solid"
},
"lineWidth": 1,
"pointSize": 5,
"scaleDistribution": {
"type": "linear"
},
"showPoints": "auto",
"spanNulls": 300000,
"stacking": {
"group": "A",
"mode": "none"
},
"thresholdsStyle": {
"mode": "dashed+area"
}
},
"decimals": 0,
"mappings": [],
"max": 2000,
"min": 0,
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
},
{
"color": "yellow",
"value": 400
},
{
"color": "dark-orange",
"value": 600
},
{
"color": "red",
"value": 1000
},
{
"color": "dark-red",
"value": 1500
}
]
},
"unit": "ms"
},
"overrides": []
},
"gridPos": {
"h": 14,
"w": 10,
"x": 14,
"y": 14
},
"id": 7,
"options": {
"legend": {
"calcs": [
"mean",
"min"
],
"displayMode": "table",
"placement": "right",
"showLegend": true,
"sortBy": "Mean",
"sortDesc": true
},
"tooltip": {
"mode": "single",
"sort": "none"
}
},
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "SUpEVGqnk"
},
"disableTextWrap": false,
"editorMode": "builder",
"expr": "uptime_response_time{uptime_type=\"ping\", instance=\"$Instance\"}",
"fullMetaSearch": false,
"includeNullMetadata": true,
"legendFormat": "{{uptime_name}}",
"range": true,
"refId": "A",
"useBackend": false
}
],
"title": "Response Times (ping based)",
"type": "timeseries"
} }
], ],
"schemaVersion": 30, "refresh": "1m",
"style": "dark", "schemaVersion": 39,
"tags": [], "tags": [],
"templating": { "templating": {
"list": [] "list": [
{
"current": {
"selected": true,
"text": "status_online:3001",
"value": "status_online:3001"
},
"datasource": {
"type": "prometheus",
"uid": "SUpEVGqnk"
},
"definition": "query_result(uptime_status)",
"hide": 0,
"includeAll": false,
"multi": false,
"name": "Instance",
"options": [],
"query": {
"qryType": 3,
"query": "query_result(uptime_status)",
"refId": "PrometheusVariableQueryEditor-VariableQuery"
},
"refresh": 1,
"regex": "/.*instance=\"([^\"]*).*/",
"skipUrlSync": false,
"sort": 1,
"type": "query"
}
]
}, },
"time": { "time": {
"from": "now-15m", "from": "now-15m",
@ -357,8 +739,8 @@
}, },
"timepicker": {}, "timepicker": {},
"timezone": "", "timezone": "",
"title": "Uptime Kuma", "title": "Service Status",
"uid": "CN8E-vZ7k", "uid": "canLN3c4z",
"version": 1, "version": 21,
"description": "A dashboard to show the data from the excellent Uptime Kuma project!" "weekStart": ""
} }

Loading…
Cancel
Save