Last active
August 8, 2023 21:55
-
-
Save jlec/5bc0e7a094fbc8f7f3107fd7bd64f7f6 to your computer and use it in GitHub Desktop.
Uptime Kuma - SLA/Latency/Certs - Namespaced
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"__inputs": [ | |
{ | |
"name": "DS_PROMETHEUS", | |
"label": "Prometheus", | |
"description": "", | |
"type": "datasource", | |
"pluginId": "prometheus", | |
"pluginName": "Prometheus" | |
} | |
], | |
"__elements": {}, | |
"__requires": [ | |
{ | |
"type": "panel", | |
"id": "bargauge", | |
"name": "Bar gauge", | |
"version": "" | |
}, | |
{ | |
"type": "panel", | |
"id": "gauge", | |
"name": "Gauge", | |
"version": "" | |
}, | |
{ | |
"type": "grafana", | |
"id": "grafana", | |
"name": "Grafana", | |
"version": "9.5.1" | |
}, | |
{ | |
"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": { | |
"type": "prometheus", | |
"uid": "${DS_PROMETHEUS}" | |
}, | |
"enable": true, | |
"hide": true, | |
"iconColor": "rgba(0, 211, 255, 1)", | |
"name": "Annotations & Alerts", | |
"target": { | |
"limit": 100, | |
"matchAny": false, | |
"tags": [], | |
"type": "dashboard" | |
}, | |
"type": "dashboard" | |
} | |
] | |
}, | |
"description": "A dashboard to visualize the metrics from HTTP endpoints in [Uptime Kuma](https://github.com/louislam/uptime-kuma)\r\n\r\nImproved by https://github.com/EliottGoye", | |
"editable": true, | |
"fiscalYearStartMonth": 0, | |
"gnetId": 18667, | |
"graphTooltip": 0, | |
"id": null, | |
"links": [], | |
"liveNow": false, | |
"panels": [ | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "${DS_PROMETHEUS}" | |
}, | |
"fieldConfig": { | |
"defaults": { | |
"color": { | |
"mode": "thresholds" | |
}, | |
"mappings": [ | |
{ | |
"options": { | |
"0": { | |
"index": 1, | |
"text": "OFFLINE" | |
}, | |
"1": { | |
"index": 0, | |
"text": "ONLINE" | |
} | |
}, | |
"type": "value" | |
} | |
], | |
"thresholds": { | |
"mode": "absolute", | |
"steps": [ | |
{ | |
"color": "green", | |
"value": null | |
}, | |
{ | |
"color": "red", | |
"value": 0 | |
}, | |
{ | |
"color": "green", | |
"value": 1 | |
} | |
] | |
} | |
}, | |
"overrides": [] | |
}, | |
"gridPos": { | |
"h": 3, | |
"w": 4, | |
"x": 0, | |
"y": 0 | |
}, | |
"id": 111, | |
"options": { | |
"colorMode": "background", | |
"graphMode": "none", | |
"justifyMode": "auto", | |
"orientation": "auto", | |
"reduceOptions": { | |
"calcs": [ | |
"lastNotNull" | |
], | |
"fields": "", | |
"values": false | |
}, | |
"textMode": "auto" | |
}, | |
"pluginVersion": "9.5.1", | |
"targets": [ | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "${DS_PROMETHEUS}" | |
}, | |
"editorMode": "code", | |
"exemplar": false, | |
"expr": "sum(kuma_monitor_status)", | |
"instant": true, | |
"legendFormat": "__auto", | |
"range": false, | |
"refId": "A" | |
} | |
], | |
"title": "Number of Monitors", | |
"type": "stat" | |
}, | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "${DS_PROMETHEUS}" | |
}, | |
"fieldConfig": { | |
"defaults": { | |
"color": { | |
"mode": "thresholds" | |
}, | |
"mappings": [ | |
{ | |
"options": { | |
"0": { | |
"index": 1, | |
"text": "OFFLINE" | |
}, | |
"1": { | |
"index": 0, | |
"text": "ONLINE" | |
} | |
}, | |
"type": "value" | |
} | |
], | |
"thresholds": { | |
"mode": "absolute", | |
"steps": [ | |
{ | |
"color": "green", | |
"value": null | |
}, | |
{ | |
"color": "red", | |
"value": 0 | |
}, | |
{ | |
"color": "green", | |
"value": 1 | |
} | |
] | |
} | |
}, | |
"overrides": [] | |
}, | |
"gridPos": { | |
"h": 3, | |
"w": 4, | |
"x": 4, | |
"y": 0 | |
}, | |
"id": 217, | |
"options": { | |
"colorMode": "background", | |
"graphMode": "none", | |
"justifyMode": "auto", | |
"orientation": "auto", | |
"reduceOptions": { | |
"calcs": [ | |
"lastNotNull" | |
], | |
"fields": "", | |
"values": false | |
}, | |
"textMode": "auto" | |
}, | |
"pluginVersion": "9.5.1", | |
"targets": [ | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "${DS_PROMETHEUS}" | |
}, | |
"editorMode": "code", | |
"exemplar": false, | |
"expr": "sum(kuma_monitor_status == 1)", | |
"instant": true, | |
"legendFormat": "__auto", | |
"range": false, | |
"refId": "A" | |
} | |
], | |
"title": "Total Online Monitors", | |
"type": "stat" | |
}, | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "${DS_PROMETHEUS}" | |
}, | |
"fieldConfig": { | |
"defaults": { | |
"color": { | |
"mode": "thresholds" | |
}, | |
"mappings": [ | |
{ | |
"options": { | |
"0": { | |
"index": 1, | |
"text": "OFFLINE" | |
}, | |
"1": { | |
"index": 0, | |
"text": "ONLINE" | |
} | |
}, | |
"type": "value" | |
} | |
], | |
"thresholds": { | |
"mode": "absolute", | |
"steps": [ | |
{ | |
"color": "red", | |
"value": null | |
} | |
] | |
} | |
}, | |
"overrides": [] | |
}, | |
"gridPos": { | |
"h": 3, | |
"w": 4, | |
"x": 8, | |
"y": 0 | |
}, | |
"id": 323, | |
"options": { | |
"colorMode": "background", | |
"graphMode": "none", | |
"justifyMode": "auto", | |
"orientation": "auto", | |
"reduceOptions": { | |
"calcs": [ | |
"lastNotNull" | |
], | |
"fields": "", | |
"values": false | |
}, | |
"textMode": "auto" | |
}, | |
"pluginVersion": "9.5.1", | |
"targets": [ | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "${DS_PROMETHEUS}" | |
}, | |
"editorMode": "code", | |
"exemplar": false, | |
"expr": "sum(kuma_monitor_status == 0)", | |
"instant": true, | |
"legendFormat": "__auto", | |
"range": false, | |
"refId": "A" | |
} | |
], | |
"title": "Total Offline Monitors", | |
"type": "stat" | |
}, | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "${DS_PROMETHEUS}" | |
}, | |
"fieldConfig": { | |
"defaults": { | |
"color": { | |
"mode": "thresholds" | |
}, | |
"mappings": [ | |
{ | |
"options": { | |
"0": { | |
"index": 1, | |
"text": "OFFLINE" | |
}, | |
"1": { | |
"index": 0, | |
"text": "ONLINE" | |
} | |
}, | |
"type": "value" | |
} | |
], | |
"thresholds": { | |
"mode": "absolute", | |
"steps": [ | |
{ | |
"color": "blue", | |
"value": null | |
} | |
] | |
} | |
}, | |
"overrides": [] | |
}, | |
"gridPos": { | |
"h": 3, | |
"w": 4, | |
"x": 12, | |
"y": 0 | |
}, | |
"id": 559, | |
"options": { | |
"colorMode": "background", | |
"graphMode": "none", | |
"justifyMode": "auto", | |
"orientation": "auto", | |
"reduceOptions": { | |
"calcs": [ | |
"lastNotNull" | |
], | |
"fields": "", | |
"values": false | |
}, | |
"textMode": "auto" | |
}, | |
"pluginVersion": "9.5.1", | |
"targets": [ | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "${DS_PROMETHEUS}" | |
}, | |
"editorMode": "code", | |
"exemplar": false, | |
"expr": "avg(avg_over_time(kuma_monitor_response_time[15m]))", | |
"instant": true, | |
"legendFormat": "__auto", | |
"range": false, | |
"refId": "A" | |
} | |
], | |
"title": "Average response time (15m)", | |
"type": "stat" | |
}, | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "${DS_PROMETHEUS}" | |
}, | |
"fieldConfig": { | |
"defaults": { | |
"color": { | |
"mode": "thresholds" | |
}, | |
"mappings": [ | |
{ | |
"options": { | |
"0": { | |
"index": 1, | |
"text": "OFFLINE" | |
}, | |
"1": { | |
"index": 0, | |
"text": "ONLINE" | |
} | |
}, | |
"type": "value" | |
} | |
], | |
"thresholds": { | |
"mode": "absolute", | |
"steps": [ | |
{ | |
"color": "blue", | |
"value": null | |
} | |
] | |
} | |
}, | |
"overrides": [] | |
}, | |
"gridPos": { | |
"h": 3, | |
"w": 4, | |
"x": 16, | |
"y": 0 | |
}, | |
"id": 513, | |
"options": { | |
"colorMode": "background", | |
"graphMode": "none", | |
"justifyMode": "auto", | |
"orientation": "auto", | |
"reduceOptions": { | |
"calcs": [ | |
"lastNotNull" | |
], | |
"fields": "", | |
"values": false | |
}, | |
"textMode": "auto" | |
}, | |
"pluginVersion": "9.5.1", | |
"targets": [ | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "${DS_PROMETHEUS}" | |
}, | |
"editorMode": "code", | |
"exemplar": false, | |
"expr": "avg(avg_over_time(kuma_monitor_response_time[2h]))", | |
"instant": true, | |
"legendFormat": "__auto", | |
"range": false, | |
"refId": "A" | |
} | |
], | |
"title": "Average response time (2h)", | |
"type": "stat" | |
}, | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "${DS_PROMETHEUS}" | |
}, | |
"fieldConfig": { | |
"defaults": { | |
"color": { | |
"mode": "thresholds" | |
}, | |
"mappings": [ | |
{ | |
"options": { | |
"0": { | |
"index": 1, | |
"text": "OFFLINE" | |
}, | |
"1": { | |
"index": 0, | |
"text": "ONLINE" | |
} | |
}, | |
"type": "value" | |
} | |
], | |
"thresholds": { | |
"mode": "absolute", | |
"steps": [ | |
{ | |
"color": "blue", | |
"value": null | |
} | |
] | |
} | |
}, | |
"overrides": [] | |
}, | |
"gridPos": { | |
"h": 3, | |
"w": 4, | |
"x": 20, | |
"y": 0 | |
}, | |
"id": 429, | |
"options": { | |
"colorMode": "background", | |
"graphMode": "none", | |
"justifyMode": "auto", | |
"orientation": "auto", | |
"reduceOptions": { | |
"calcs": [ | |
"lastNotNull" | |
], | |
"fields": "", | |
"values": false | |
}, | |
"textMode": "auto" | |
}, | |
"pluginVersion": "9.5.1", | |
"targets": [ | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "${DS_PROMETHEUS}" | |
}, | |
"editorMode": "code", | |
"exemplar": false, | |
"expr": "avg(avg_over_time(kuma_monitor_response_time[24h]))", | |
"instant": true, | |
"legendFormat": "__auto", | |
"range": false, | |
"refId": "A" | |
} | |
], | |
"title": "Average response time (24h)", | |
"type": "stat" | |
}, | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "${DS_PROMETHEUS}" | |
}, | |
"fieldConfig": { | |
"defaults": { | |
"color": { | |
"mode": "palette-classic" | |
}, | |
"custom": { | |
"axisCenteredZero": false, | |
"axisColorMode": "text", | |
"axisLabel": "", | |
"axisPlacement": "auto", | |
"barAlignment": 0, | |
"drawStyle": "line", | |
"fillOpacity": 0, | |
"gradientMode": "none", | |
"hideFrom": { | |
"legend": false, | |
"tooltip": false, | |
"viz": false | |
}, | |
"lineInterpolation": "stepAfter", | |
"lineWidth": 1, | |
"pointSize": 5, | |
"scaleDistribution": { | |
"type": "linear" | |
}, | |
"showPoints": "auto", | |
"spanNulls": false, | |
"stacking": { | |
"group": "A", | |
"mode": "none" | |
}, | |
"thresholdsStyle": { | |
"mode": "off" | |
} | |
}, | |
"decimals": 2, | |
"mappings": [], | |
"max": 100, | |
"min": 0, | |
"thresholds": { | |
"mode": "absolute", | |
"steps": [ | |
{ | |
"color": "green", | |
"value": null | |
} | |
] | |
}, | |
"unit": "percent" | |
}, | |
"overrides": [] | |
}, | |
"gridPos": { | |
"h": 7, | |
"w": 24, | |
"x": 0, | |
"y": 3 | |
}, | |
"id": 512, | |
"interval": "15s", | |
"maxDataPoints": 30000, | |
"options": { | |
"legend": { | |
"calcs": [ | |
"mean" | |
], | |
"displayMode": "list", | |
"placement": "right", | |
"showLegend": true | |
}, | |
"tooltip": { | |
"mode": "single", | |
"sort": "none" | |
} | |
}, | |
"pluginVersion": "9.5.1", | |
"targets": [ | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "${DS_PROMETHEUS}" | |
}, | |
"editorMode": "code", | |
"expr": "(0*(kuma_monitor_status{kuma_monitor_name=~\"$monitor\"}!=1)) or (kuma_monitor_status{kuma_monitor_name=~\"$monitor\"}*100)", | |
"hide": false, | |
"legendFormat": "{{kuma_monitor_name}}", | |
"range": true, | |
"refId": "A" | |
} | |
], | |
"title": "SLA", | |
"transformations": [], | |
"type": "timeseries" | |
}, | |
{ | |
"collapsed": false, | |
"gridPos": { | |
"h": 1, | |
"w": 24, | |
"x": 0, | |
"y": 10 | |
}, | |
"id": 4, | |
"panels": [], | |
"repeat": "monitor", | |
"repeatDirection": "h", | |
"title": "$monitor", | |
"type": "row" | |
}, | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "${DS_PROMETHEUS}" | |
}, | |
"fieldConfig": { | |
"defaults": { | |
"color": { | |
"mode": "thresholds" | |
}, | |
"mappings": [ | |
{ | |
"options": { | |
"0": { | |
"index": 1, | |
"text": "OFFLINE" | |
}, | |
"1": { | |
"index": 0, | |
"text": "ONLINE" | |
} | |
}, | |
"type": "value" | |
} | |
], | |
"thresholds": { | |
"mode": "absolute", | |
"steps": [ | |
{ | |
"color": "green", | |
"value": null | |
}, | |
{ | |
"color": "red", | |
"value": 0 | |
}, | |
{ | |
"color": "green", | |
"value": 1 | |
} | |
] | |
} | |
}, | |
"overrides": [] | |
}, | |
"gridPos": { | |
"h": 6, | |
"w": 2, | |
"x": 0, | |
"y": 11 | |
}, | |
"id": 5, | |
"options": { | |
"colorMode": "background", | |
"graphMode": "none", | |
"justifyMode": "auto", | |
"orientation": "auto", | |
"reduceOptions": { | |
"calcs": [ | |
"lastNotNull" | |
], | |
"fields": "", | |
"values": false | |
}, | |
"textMode": "auto" | |
}, | |
"pluginVersion": "9.5.1", | |
"targets": [ | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "${DS_PROMETHEUS}" | |
}, | |
"editorMode": "code", | |
"exemplar": false, | |
"expr": "kuma_monitor_status{kuma_monitor_name=~\"$monitor\"}", | |
"instant": true, | |
"legendFormat": "__auto", | |
"range": false, | |
"refId": "A" | |
} | |
], | |
"title": "Status", | |
"type": "stat" | |
}, | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "${DS_PROMETHEUS}" | |
}, | |
"fieldConfig": { | |
"defaults": { | |
"color": { | |
"mode": "thresholds" | |
}, | |
"decimals": 2, | |
"mappings": [], | |
"max": 100, | |
"min": 0, | |
"thresholds": { | |
"mode": "percentage", | |
"steps": [ | |
{ | |
"color": "semi-dark-red", | |
"value": null | |
}, | |
{ | |
"color": "red", | |
"value": 95 | |
}, | |
{ | |
"color": "yellow", | |
"value": 99 | |
}, | |
{ | |
"color": "orange", | |
"value": 99.5 | |
}, | |
{ | |
"color": "light-green", | |
"value": 99.9 | |
}, | |
{ | |
"color": "semi-dark-green", | |
"value": 99.95 | |
} | |
] | |
}, | |
"unit": "percent" | |
}, | |
"overrides": [] | |
}, | |
"gridPos": { | |
"h": 6, | |
"w": 3, | |
"x": 2, | |
"y": 11 | |
}, | |
"id": 706, | |
"interval": "15", | |
"maxDataPoints": 300000, | |
"options": { | |
"orientation": "auto", | |
"reduceOptions": { | |
"calcs": [ | |
"mean" | |
], | |
"fields": "", | |
"values": false | |
}, | |
"showThresholdLabels": false, | |
"showThresholdMarkers": true | |
}, | |
"pluginVersion": "9.5.1", | |
"targets": [ | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "${DS_PROMETHEUS}" | |
}, | |
"editorMode": "code", | |
"expr": "(0*(kuma_monitor_status{kuma_monitor_name=~\"$monitor\"}!=1)) or (kuma_monitor_status{kuma_monitor_name=~\"$monitor\"}*100)", | |
"hide": false, | |
"legendFormat": "{{kuma_monitor_name}}", | |
"range": true, | |
"refId": "A" | |
} | |
], | |
"title": "SLA", | |
"transformations": [], | |
"type": "gauge" | |
}, | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "${DS_PROMETHEUS}" | |
}, | |
"fieldConfig": { | |
"defaults": { | |
"color": { | |
"mode": "continuous-GrYlRd" | |
}, | |
"mappings": [], | |
"thresholds": { | |
"mode": "absolute", | |
"steps": [ | |
{ | |
"color": "green", | |
"value": null | |
} | |
] | |
}, | |
"unit": "ms" | |
}, | |
"overrides": [] | |
}, | |
"gridPos": { | |
"h": 6, | |
"w": 5, | |
"x": 5, | |
"y": 11 | |
}, | |
"id": 2, | |
"options": { | |
"displayMode": "gradient", | |
"minVizHeight": 10, | |
"minVizWidth": 0, | |
"orientation": "horizontal", | |
"reduceOptions": { | |
"calcs": [ | |
"lastNotNull" | |
], | |
"fields": "", | |
"values": false | |
}, | |
"showUnfilled": true, | |
"valueMode": "color" | |
}, | |
"pluginVersion": "9.5.1", | |
"targets": [ | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "${DS_PROMETHEUS}" | |
}, | |
"editorMode": "code", | |
"expr": "kuma_monitor_response_time{kuma_monitor_name=~\"$monitor\"}", | |
"legendFormat": "Current", | |
"range": true, | |
"refId": "A" | |
}, | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "${DS_PROMETHEUS}" | |
}, | |
"editorMode": "code", | |
"expr": "avg_over_time(kuma_monitor_response_time{kuma_monitor_name=~\"$monitor\"}[24h])", | |
"hide": false, | |
"legendFormat": "AVG 24H", | |
"range": true, | |
"refId": "B" | |
} | |
], | |
"title": "Latency", | |
"type": "bargauge" | |
}, | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "${DS_PROMETHEUS}" | |
}, | |
"fieldConfig": { | |
"defaults": { | |
"color": { | |
"mode": "palette-classic" | |
}, | |
"custom": { | |
"axisCenteredZero": false, | |
"axisColorMode": "text", | |
"axisLabel": "", | |
"axisPlacement": "auto", | |
"barAlignment": 0, | |
"drawStyle": "line", | |
"fillOpacity": 0, | |
"gradientMode": "none", | |
"hideFrom": { | |
"legend": false, | |
"tooltip": false, | |
"viz": 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 | |
} | |
] | |
}, | |
"unit": "ms" | |
}, | |
"overrides": [] | |
}, | |
"gridPos": { | |
"h": 6, | |
"w": 10, | |
"x": 10, | |
"y": 11 | |
}, | |
"id": 651, | |
"options": { | |
"legend": { | |
"calcs": [], | |
"displayMode": "list", | |
"placement": "right", | |
"showLegend": false | |
}, | |
"tooltip": { | |
"mode": "single", | |
"sort": "none" | |
} | |
}, | |
"targets": [ | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "${DS_PROMETHEUS}" | |
}, | |
"editorMode": "code", | |
"expr": "kuma_monitor_response_time{kuma_monitor_name=~\"$monitor\"}", | |
"legendFormat": "Current", | |
"range": true, | |
"refId": "A" | |
}, | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "${DS_PROMETHEUS}" | |
}, | |
"editorMode": "code", | |
"expr": "avg_over_time(kuma_monitor_response_time{kuma_monitor_name=~\"$monitor\"}[24h])", | |
"hide": true, | |
"legendFormat": "AVG 24H", | |
"range": true, | |
"refId": "B" | |
} | |
], | |
"title": "Latency", | |
"type": "timeseries" | |
}, | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "${DS_PROMETHEUS}" | |
}, | |
"description": "", | |
"fieldConfig": { | |
"defaults": { | |
"color": { | |
"mode": "continuous-GrYlRd" | |
}, | |
"mappings": [], | |
"thresholds": { | |
"mode": "absolute", | |
"steps": [ | |
{ | |
"color": "green", | |
"value": null | |
}, | |
{ | |
"color": "red", | |
"value": 5 | |
}, | |
{ | |
"color": "#EAB839", | |
"value": 15 | |
} | |
] | |
} | |
}, | |
"overrides": [] | |
}, | |
"gridPos": { | |
"h": 6, | |
"w": 2, | |
"x": 20, | |
"y": 11 | |
}, | |
"id": 445, | |
"options": { | |
"colorMode": "background", | |
"graphMode": "none", | |
"justifyMode": "auto", | |
"orientation": "horizontal", | |
"reduceOptions": { | |
"calcs": [ | |
"lastNotNull" | |
], | |
"fields": "", | |
"values": false | |
}, | |
"textMode": "auto" | |
}, | |
"pluginVersion": "9.5.1", | |
"targets": [ | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "${DS_PROMETHEUS}" | |
}, | |
"editorMode": "code", | |
"expr": "monitor_cert_days_remaining{kuma_monitor_name=~\"$monitor\"}", | |
"legendFormat": "Current", | |
"range": true, | |
"refId": "A" | |
} | |
], | |
"title": "Certificate days until expire", | |
"type": "stat" | |
}, | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "${DS_PROMETHEUS}" | |
}, | |
"description": "", | |
"fieldConfig": { | |
"defaults": { | |
"color": { | |
"mode": "thresholds" | |
}, | |
"mappings": [ | |
{ | |
"options": { | |
"0": { | |
"index": 1, | |
"text": "Invalid" | |
}, | |
"1": { | |
"index": 0, | |
"text": "Valid" | |
} | |
}, | |
"type": "value" | |
} | |
], | |
"thresholds": { | |
"mode": "absolute", | |
"steps": [ | |
{ | |
"color": "green", | |
"value": null | |
}, | |
{ | |
"color": "red", | |
"value": 80 | |
} | |
] | |
} | |
}, | |
"overrides": [] | |
}, | |
"gridPos": { | |
"h": 6, | |
"w": 2, | |
"x": 22, | |
"y": 11 | |
}, | |
"id": 466, | |
"options": { | |
"colorMode": "background", | |
"graphMode": "none", | |
"justifyMode": "auto", | |
"orientation": "auto", | |
"reduceOptions": { | |
"calcs": [ | |
"lastNotNull" | |
], | |
"fields": "", | |
"values": false | |
}, | |
"textMode": "auto" | |
}, | |
"pluginVersion": "9.5.1", | |
"targets": [ | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "${DS_PROMETHEUS}" | |
}, | |
"editorMode": "code", | |
"expr": "monitor_cert_is_valid{kuma_monitor_name=~\"$monitor\"}", | |
"legendFormat": "Current", | |
"range": true, | |
"refId": "A" | |
} | |
], | |
"title": "Certificate Valid", | |
"type": "stat" | |
} | |
], | |
"refresh": "", | |
"schemaVersion": 38, | |
"style": "dark", | |
"tags": [ | |
"uptime-kuma" | |
], | |
"templating": { | |
"list": [ | |
{ | |
"current": {}, | |
"datasource": { | |
"type": "prometheus", | |
"uid": "${DS_PROMETHEUS}" | |
}, | |
"definition": "label_values(kuma_monitor_response_time, kuma_monitor_type)", | |
"hide": 0, | |
"includeAll": true, | |
"multi": true, | |
"name": "type", | |
"options": [], | |
"query": { | |
"query": "label_values(kuma_monitor_response_time, kuma_monitor_type)", | |
"refId": "StandardVariableQuery" | |
}, | |
"refresh": 2, | |
"regex": "", | |
"skipUrlSync": false, | |
"sort": 0, | |
"type": "query" | |
}, | |
{ | |
"current": {}, | |
"datasource": { | |
"type": "prometheus", | |
"uid": "${DS_PROMETHEUS}" | |
}, | |
"definition": "label_values(kuma_monitor_response_time{kuma_monitor_type=~\"$type\"}, kuma_monitor_name)", | |
"hide": 0, | |
"includeAll": true, | |
"multi": true, | |
"name": "monitor", | |
"options": [], | |
"query": { | |
"query": "label_values(kuma_monitor_response_time{kuma_monitor_type=~\"$type\"}, kuma_monitor_name)", | |
"refId": "StandardVariableQuery" | |
}, | |
"refresh": 2, | |
"regex": "", | |
"skipUrlSync": false, | |
"sort": 1, | |
"type": "query" | |
} | |
] | |
}, | |
"time": { | |
"from": "now-24h", | |
"to": "now" | |
}, | |
"timepicker": {}, | |
"timezone": "", | |
"title": "Uptime Kuma - SLA/Latency/Certs", | |
"uid": "See9ai7AhphoaY9phai6aewee3chia", | |
"version": 17, | |
"weekStart": "" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment