You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
uptime-kuma/uptime-kuma.json

830 lines
21 KiB

{
"annotations": {
"list": [
{
"builtIn": 1,
"datasource": {
"type": "grafana",
"uid": "-- Grafana --"
},
"enable": true,
"hide": true,
"iconColor": "rgba(0, 211, 255, 1)",
"name": "Annotations & Alerts",
"target": {
"limit": 100,
"matchAny": false,
"tags": [],
"type": "dashboard"
},
"type": "dashboard"
}
]
},
"description": "This Dashboard shows all services checked by Uptime Kuma",
"editable": true,
"fiscalYearStartMonth": 0,
"graphTooltip": 0,
"id": 9,
"links": [
{
"asDropdown": false,
"icon": "cloud",
"includeVars": false,
"keepTime": false,
"tags": [],
"targetBlank": true,
"title": "Uptime Kuma Instance",
"tooltip": "Open Dashboard",
"type": "link",
"url": "https://uptime.example.com"
},
{
"asDropdown": false,
"icon": "external link",
"includeVars": false,
"keepTime": false,
"tags": [],
"targetBlank": true,
"title": "GitHub",
"tooltip": "Open GitHub-Repo",
"type": "link",
"url": "https://github.com/louislam/uptime-kuma"
}
],
"liveNow": false,
"panels": [
{
"datasource": {
"type": "prometheus",
"uid": "${datasource}"
},
"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": [
"last"
],
"fields": "",
"values": false
},
"showPercentChange": false,
"textMode": "value_and_name",
"wideLayout": false
},
"pluginVersion": "10.4.1",
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "${datasource}"
},
"disableTextWrap": false,
"editorMode": "code",
"exemplar": false,
"expr": "count by(instance) (uptime_status{instance=\"$Instance\", job=\"$job\", monitor_type!=\"group\"})",
"fullMetaSearch": false,
"includeNullMetadata": true,
"instant": true,
"legendFormat": "Total",
"range": false,
"refId": "Total",
"useBackend": false
},
{
"datasource": {
"type": "prometheus",
"uid": "${datasource}"
},
"disableTextWrap": false,
"editorMode": "code",
"exemplar": false,
"expr": "count by(instance) (uptime_status{instance=\"$Instance\", job=\"$job\", monitor_type!=\"group\"} == 1)",
"fullMetaSearch": false,
"hide": false,
"includeNullMetadata": true,
"instant": true,
"legendFormat": "Active",
"range": false,
"refId": "Active",
"useBackend": false
},
{
"datasource": {
"type": "prometheus",
"uid": "${datasource}"
},
"disableTextWrap": false,
"editorMode": "code",
"exemplar": false,
"expr": "count by(instance) (uptime_status{instance=\"$Instance\", job=\"$job\", monitor_type!=\"group\"} == 2)",
"fullMetaSearch": false,
"hide": false,
"includeNullMetadata": true,
"instant": true,
"legendFormat": "Pending",
"range": false,
"refId": "Pending",
"useBackend": false
},
{
"datasource": {
"type": "prometheus",
"uid": "${datasource}"
},
"disableTextWrap": false,
"editorMode": "code",
"exemplar": false,
"expr": "count by(instance) (uptime_status{instance=\"$Instance\", job=\"$job\", monitor_type!=\"group\"} == 0)",
"fullMetaSearch": false,
"hide": false,
"includeNullMetadata": true,
"instant": true,
"legendFormat": "Inactive",
"range": false,
"refId": "Inactive",
"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",
"fieldConfig": {
"defaults": {
"color": {
"mode": "thresholds"
},
"mappings": [
{
"options": {
"0": {
"color": "dark-red",
"index": 0,
"text": "Down"
},
"1": {
"color": "dark-green",
"index": 2,
"text": "Up"
},
"2": {
"color": "dark-yellow",
"index": 1,
"text": "Pending"
}
},
"type": "value"
}
],
"noValue": "Everything UP",
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
}
]
},
"unit": "bool"
},
"overrides": []
},
"gridPos": {
"h": 28,
"w": 4,
"x": 6,
"y": 0
},
"id": 9,
"options": {
"colorMode": "background_solid",
"graphMode": "none",
"justifyMode": "center",
"orientation": "horizontal",
"reduceOptions": {
"calcs": [
"last"
],
"fields": "",
"values": false
},
"showPercentChange": false,
"text": {},
"textMode": "name",
"wideLayout": false
},
"pluginVersion": "10.4.1",
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "SUpEVGqnk"
},
"disableTextWrap": false,
"editorMode": "builder",
"exemplar": false,
"expr": "uptime_status{instance=\"$Instance\", job=\"$job\", monitor_type!=\"group\"} == 0",
"fullMetaSearch": false,
"includeNullMetadata": true,
"instant": true,
"legendFormat": "{{monitor_name}}",
"range": false,
"refId": "A",
"useBackend": false
}
],
"title": "Unhealthy Services",
"type": "stat"
},
{
"datasource": {
"type": "prometheus",
"uid": "SUpEVGqnk"
},
"description": "This Panel lists Services that are in pending state",
"fieldConfig": {
"defaults": {
"color": {
"mode": "thresholds"
},
"mappings": [
{
"options": {
"0": {
"color": "dark-red",
"index": 0,
"text": "Down"
},
"1": {
"color": "dark-green",
"index": 2,
"text": "Up"
},
"2": {
"color": "dark-yellow",
"index": 1,
"text": "Pending"
}
},
"type": "value"
}
],
"noValue": "Everything UP",
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
}
]
},
"unit": "bool"
},
"overrides": []
},
"gridPos": {
"h": 28,
"w": 4,
"x": 10,
"y": 0
},
"id": 2,
"options": {
"colorMode": "background_solid",
"graphMode": "none",
"justifyMode": "auto",
"orientation": "horizontal",
"reduceOptions": {
"calcs": [
"last"
],
"fields": "",
"values": false
},
"showPercentChange": false,
"text": {},
"textMode": "name",
"wideLayout": true
},
"pluginVersion": "10.4.1",
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "SUpEVGqnk"
},
"disableTextWrap": false,
"editorMode": "builder",
"exemplar": false,
"expr": "uptime_status{instance=\"$Instance\", job=\"$job\", monitor_type!=\"group\"} == 2",
"format": "time_series",
"fullMetaSearch": false,
"hide": false,
"includeNullMetadata": true,
"instant": true,
"legendFormat": "{{monitor_name}}",
"range": false,
"refId": "B",
"useBackend": false
}
],
"title": "Pending Services",
"type": "stat"
},
{
"datasource": {
"type": "prometheus",
"uid": "SUpEVGqnk"
},
"description": "This panel shows the different http based services and their response times in the selected interval as well as their mean- and minimum response time.",
"fieldConfig": {
"defaults": {
"color": {
"mode": "thresholds",
"seriesBy": "last"
},
"custom": {
"axisBorderShow": false,
"axisCenteredZero": false,
"axisColorMode": "series",
"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": [],
"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": 0
},
"id": 4,
"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{monitor_type=\"http\", instance=\"$Instance\", job=\"$job\"}",
"fullMetaSearch": false,
"includeNullMetadata": true,
"legendFormat": "{{monitor_name}}",
"range": true,
"refId": "A",
"useBackend": false
}
],
"title": "Response Times (http based)",
"type": "timeseries"
},
{
"datasource": {
"type": "prometheus",
"uid": "SUpEVGqnk"
},
"description": "This panel shows all http services and the remaining days after the certificate needs to be renewed",
"fieldConfig": {
"defaults": {
"color": {
"mode": "thresholds"
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "dark-red",
"value": null
},
{
"color": "#EAB839",
"value": 15
},
{
"color": "light-green",
"value": 30
},
{
"color": "dark-green",
"value": 60
}
]
},
"unit": "short"
},
"overrides": []
},
"gridPos": {
"h": 23,
"w": 6,
"x": 0,
"y": 5
},
"id": 8,
"options": {
"colorMode": "background_solid",
"graphMode": "none",
"justifyMode": "center",
"orientation": "auto",
"reduceOptions": {
"calcs": [
"last"
],
"fields": "",
"values": false
},
"showPercentChange": false,
"textMode": "auto",
"wideLayout": true
},
"pluginVersion": "10.4.1",
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "SUpEVGqnk"
},
"disableTextWrap": false,
"editorMode": "builder",
"exemplar": false,
"expr": "sort(uptime_cert_days_remaining{instance=\"$Instance\", monitor_type=\"http\", job=\"$job\"}) < 65",
"fullMetaSearch": false,
"includeNullMetadata": true,
"instant": true,
"legendFormat": "{{monitor_name}}",
"range": false,
"refId": "A",
"useBackend": false
}
],
"title": "Certificate Validity Days",
"type": "stat"
},
{
"datasource": {
"type": "prometheus",
"uid": "SUpEVGqnk"
},
"description": "",
"fieldConfig": {
"defaults": {
"color": {
"mode": "thresholds",
"seriesBy": "last"
},
"custom": {
"axisBorderShow": false,
"axisCenteredZero": false,
"axisColorMode": "series",
"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": [],
"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{monitor_type=\"ping\", instance=\"$Instance\", job=\"$job\"}",
"fullMetaSearch": false,
"includeNullMetadata": true,
"legendFormat": "{{monitor_name}}",
"range": true,
"refId": "A",
"useBackend": false
}
],
"title": "Response Times (ping based)",
"type": "timeseries"
}
],
"refresh": "30s",
"schemaVersion": 39,
"tags": [
"uptime-kuma",
"metrics"
],
"templating": {
"list": [
{
"current": {
"selected": false,
"text": "Prometheus",
"value": "SUpEVGqnk"
},
"hide": 0,
"includeAll": false,
"label": "Datasource",
"multi": false,
"name": "datasource",
"options": [],
"query": "prometheus",
"queryValue": "",
"refresh": 1,
"regex": "",
"skipUrlSync": false,
"type": "datasource"
},
{
"current": {
"selected": false,
"text": "Uptime-Kuma",
"value": "Uptime-Kuma"
},
"datasource": {
"type": "prometheus",
"uid": "${datasource}"
},
"definition": "label_values(job)",
"hide": 0,
"includeAll": false,
"label": "Job",
"multi": false,
"name": "job",
"options": [],
"query": {
"qryType": 1,
"query": "label_values(job)",
"refId": "PrometheusVariableQueryEditor-VariableQuery"
},
"refresh": 1,
"regex": "",
"skipUrlSync": false,
"sort": 1,
"type": "query"
},
{
"current": {
"selected": false,
"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": {
"from": "now-1h",
"to": "now"
},
"timepicker": {
"refresh_intervals": [
"1m",
"5m",
"15m",
"30m"
]
},
"timezone": "",
"title": "Uptime-Kuma Status",
"uid": "CN8E-vZ7k",
"version": 2,
"weekStart": "",
"description": "A simple dashboard showcasing service status updates over time tracked by the Uptime Kuma monitoring tool."
}