Grafana Public Statuspage
The snippet can be accessed without any authentication.
Authored by
Sheogorath
Simple Statuspage that can be imported as Dashboard into Grafana. Currently using Grafana Cloud's Synthetics Probes to check if pages are online.
Probes labelled with public_statuspage: true
will be visible on this page. You can publish the dashboard and use the resulting link as you public dashboard.
Example: https://shiveringisles.grafana.net/public-dashboards/29f5f9f3f16a4f4e9f749ef9bc78698a
dashboard.json 5.97 KiB
{
"__inputs": [
{
"name": "DS_GRAFANACLOUD-SHIVERINGISLES-PROM",
"label": "grafanacloud-shiveringisles-prom",
"description": "",
"type": "datasource",
"pluginId": "prometheus",
"pluginName": "Prometheus"
}
],
"__elements": {},
"__requires": [
{
"type": "grafana",
"id": "grafana",
"name": "Grafana",
"version": "11.5.0-80207"
},
{
"type": "datasource",
"id": "prometheus",
"name": "Prometheus",
"version": "1.0.0"
},
{
"type": "panel",
"id": "stat",
"name": "Stat",
"version": ""
},
{
"type": "panel",
"id": "state-timeline",
"name": "State timeline",
"version": ""
}
],
"annotations": {
"list": [
{
"builtIn": 1,
"datasource": {
"type": "grafana",
"uid": "-- Grafana --"
},
"enable": true,
"hide": true,
"iconColor": "rgba(0, 211, 255, 1)",
"name": "Annotations & Alerts",
"type": "dashboard"
}
]
},
"editable": true,
"fiscalYearStartMonth": 0,
"graphTooltip": 1,
"id": null,
"links": [],
"liveNow": true,
"panels": [
{
"datasource": {
"type": "prometheus",
"uid": "${DS_GRAFANACLOUD-SHIVERINGISLES-PROM}"
},
"fieldConfig": {
"defaults": {
"color": {
"mode": "fixed"
},
"mappings": [
{
"options": {
"0": {
"color": "dark-red",
"index": 0,
"text": "Down"
},
"1": {
"color": "dark-green",
"index": 1,
"text": "Up"
}
},
"type": "value"
}
],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
},
{
"color": "red",
"value": 80
}
]
}
},
"overrides": []
},
"gridPos": {
"h": 12,
"w": 24,
"x": 0,
"y": 0
},
"id": 3,
"options": {
"colorMode": "value",
"graphMode": "area",
"justifyMode": "auto",
"orientation": "auto",
"percentChangeColorMode": "standard",
"reduceOptions": {
"calcs": [
"lastNotNull"
],
"fields": "",
"values": false
},
"showPercentChange": false,
"textMode": "auto",
"wideLayout": true
},
"pluginVersion": "11.5.0-80207",
"targets": [
{
"editorMode": "code",
"expr": "max(sm_check_info{label_public_statuspage=\"true\"}) by (label_public_statuspage, job) * on(job) max(probe_success) by (job)",
"legendFormat": "__auto",
"range": true,
"refId": "A",
"datasource": {
"type": "prometheus",
"uid": "${DS_GRAFANACLOUD-SHIVERINGISLES-PROM}"
}
}
],
"title": "Current Service Status",
"type": "stat"
},
{
"datasource": {
"type": "prometheus",
"uid": "${DS_GRAFANACLOUD-SHIVERINGISLES-PROM}"
},
"fieldConfig": {
"defaults": {
"color": {
"mode": "fixed"
},
"custom": {
"fillOpacity": 70,
"hideFrom": {
"legend": false,
"tooltip": false,
"viz": false
},
"insertNulls": false,
"lineWidth": 0,
"spanNulls": false
},
"mappings": [
{
"options": {
"0": {
"color": "dark-red",
"index": 1,
"text": "Unavailable"
},
"1": {
"color": "semi-dark-green",
"index": 0,
"text": "Available"
}
},
"type": "value"
}
],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "semi-dark-red",
"value": null
}
]
}
},
"overrides": []
},
"gridPos": {
"h": 19,
"w": 24,
"x": 0,
"y": 12
},
"id": 1,
"options": {
"alignValue": "left",
"legend": {
"displayMode": "list",
"placement": "bottom",
"showLegend": false
},
"mergeValues": true,
"rowHeight": 0.9,
"showValue": "never",
"tooltip": {
"mode": "single",
"sort": "none"
}
},
"pluginVersion": "11.5.0-80207",
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "${DS_GRAFANACLOUD-SHIVERINGISLES-PROM}"
},
"disableTextWrap": false,
"editorMode": "code",
"exemplar": false,
"expr": "max(sm_check_info{label_public_statuspage=\"true\"}) by (label_public_statuspage, job) * on(job) max(max_over_time(probe_success{}[5m])) by (job)",
"fullMetaSearch": false,
"includeNullMetadata": true,
"instant": false,
"interval": "150s",
"legendFormat": "__auto",
"range": true,
"refId": "A",
"useBackend": false
}
],
"title": "Service Status over Time",
"type": "state-timeline"
}
],
"refresh": "1m",
"schemaVersion": 40,
"tags": [],
"templating": {
"list": []
},
"time": {
"from": "now-1h",
"to": "now"
},
"timepicker": {},
"timezone": "browser",
"title": "Shivering-Isles Status Page",
"uid": "ee96a11y63chsd",
"version": 11,
"weekStart": ""
}
Please register or sign in to comment