2023-03-19 19:46:37 +00:00
|
|
|
{
|
|
|
|
"__inputs": [
|
|
|
|
{
|
|
|
|
"name": "DS_PROMETHEUS",
|
|
|
|
"label": "Prometheus",
|
|
|
|
"description": "",
|
|
|
|
"type": "datasource",
|
|
|
|
"pluginId": "prometheus",
|
|
|
|
"pluginName": "Prometheus"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"__elements": {},
|
|
|
|
"__requires": [
|
|
|
|
{
|
|
|
|
"type": "grafana",
|
|
|
|
"id": "grafana",
|
|
|
|
"name": "Grafana",
|
|
|
|
"version": "9.4.3"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"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": "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"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"editable": true,
|
|
|
|
"fiscalYearStartMonth": 0,
|
|
|
|
"graphTooltip": 0,
|
|
|
|
"id": null,
|
|
|
|
"links": [],
|
|
|
|
"liveNow": false,
|
|
|
|
"panels": [
|
|
|
|
{
|
|
|
|
"collapsed": false,
|
|
|
|
"gridPos": {
|
|
|
|
"h": 1,
|
|
|
|
"w": 24,
|
|
|
|
"x": 0,
|
|
|
|
"y": 0
|
|
|
|
},
|
|
|
|
"id": 38,
|
|
|
|
"panels": [],
|
|
|
|
"title": "Overview",
|
|
|
|
"type": "row"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"datasource": {
|
|
|
|
"type": "prometheus",
|
|
|
|
"uid": "${DS_PROMETHEUS}"
|
|
|
|
},
|
|
|
|
"fieldConfig": {
|
|
|
|
"defaults": {
|
|
|
|
"color": {
|
|
|
|
"mode": "thresholds"
|
|
|
|
},
|
|
|
|
"mappings": [],
|
|
|
|
"thresholds": {
|
|
|
|
"mode": "absolute",
|
|
|
|
"steps": [
|
|
|
|
{
|
|
|
|
"color": "light-green",
|
|
|
|
"value": null
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"overrides": []
|
|
|
|
},
|
|
|
|
"gridPos": {
|
|
|
|
"h": 3,
|
|
|
|
"w": 4,
|
|
|
|
"x": 0,
|
|
|
|
"y": 1
|
|
|
|
},
|
|
|
|
"id": 36,
|
|
|
|
"options": {
|
|
|
|
"colorMode": "value",
|
|
|
|
"graphMode": "none",
|
|
|
|
"justifyMode": "auto",
|
|
|
|
"orientation": "auto",
|
|
|
|
"reduceOptions": {
|
|
|
|
"calcs": [
|
|
|
|
"last"
|
|
|
|
],
|
|
|
|
"fields": "",
|
|
|
|
"values": false
|
|
|
|
},
|
|
|
|
"textMode": "auto"
|
|
|
|
},
|
|
|
|
"pluginVersion": "9.4.3",
|
|
|
|
"targets": [
|
|
|
|
{
|
|
|
|
"datasource": {
|
|
|
|
"type": "prometheus",
|
|
|
|
"uid": "${DS_PROMETHEUS}"
|
|
|
|
},
|
2023-03-20 19:34:10 +00:00
|
|
|
"editorMode": "code",
|
|
|
|
"expr": "ntfy_messages_published_success{job=\"$job\"}",
|
2023-03-19 19:46:37 +00:00
|
|
|
"legendFormat": "Messages cached",
|
|
|
|
"range": true,
|
|
|
|
"refId": "A"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"title": "Published",
|
|
|
|
"type": "stat"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"datasource": {
|
|
|
|
"type": "prometheus",
|
|
|
|
"uid": "${DS_PROMETHEUS}"
|
|
|
|
},
|
|
|
|
"fieldConfig": {
|
|
|
|
"defaults": {
|
|
|
|
"color": {
|
|
|
|
"mode": "thresholds"
|
|
|
|
},
|
|
|
|
"mappings": [],
|
|
|
|
"thresholds": {
|
|
|
|
"mode": "absolute",
|
|
|
|
"steps": [
|
|
|
|
{
|
|
|
|
"color": "orange",
|
|
|
|
"value": null
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"overrides": []
|
|
|
|
},
|
|
|
|
"gridPos": {
|
|
|
|
"h": 3,
|
|
|
|
"w": 4,
|
|
|
|
"x": 4,
|
|
|
|
"y": 1
|
|
|
|
},
|
|
|
|
"id": 33,
|
|
|
|
"options": {
|
|
|
|
"colorMode": "value",
|
|
|
|
"graphMode": "none",
|
|
|
|
"justifyMode": "auto",
|
|
|
|
"orientation": "auto",
|
|
|
|
"reduceOptions": {
|
|
|
|
"calcs": [
|
|
|
|
"last"
|
|
|
|
],
|
|
|
|
"fields": "",
|
|
|
|
"values": false
|
|
|
|
},
|
|
|
|
"textMode": "auto"
|
|
|
|
},
|
|
|
|
"pluginVersion": "9.4.3",
|
|
|
|
"targets": [
|
|
|
|
{
|
|
|
|
"datasource": {
|
|
|
|
"type": "prometheus",
|
|
|
|
"uid": "${DS_PROMETHEUS}"
|
|
|
|
},
|
|
|
|
"editorMode": "builder",
|
2023-03-20 19:34:10 +00:00
|
|
|
"expr": "ntfy_messages_cached_total{job=\"$job\"}",
|
2023-03-19 19:46:37 +00:00
|
|
|
"legendFormat": "Messages cached",
|
|
|
|
"range": true,
|
|
|
|
"refId": "A"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"title": "Cached",
|
|
|
|
"type": "stat"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"datasource": {
|
|
|
|
"type": "prometheus",
|
|
|
|
"uid": "${DS_PROMETHEUS}"
|
|
|
|
},
|
|
|
|
"fieldConfig": {
|
|
|
|
"defaults": {
|
|
|
|
"color": {
|
|
|
|
"mode": "thresholds"
|
|
|
|
},
|
|
|
|
"mappings": [],
|
|
|
|
"thresholds": {
|
|
|
|
"mode": "absolute",
|
|
|
|
"steps": [
|
|
|
|
{
|
|
|
|
"color": "#69bfb5",
|
|
|
|
"value": null
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"overrides": []
|
|
|
|
},
|
|
|
|
"gridPos": {
|
|
|
|
"h": 3,
|
|
|
|
"w": 4,
|
|
|
|
"x": 8,
|
|
|
|
"y": 1
|
|
|
|
},
|
|
|
|
"id": 31,
|
|
|
|
"options": {
|
|
|
|
"colorMode": "value",
|
|
|
|
"graphMode": "none",
|
|
|
|
"justifyMode": "auto",
|
|
|
|
"orientation": "auto",
|
|
|
|
"reduceOptions": {
|
|
|
|
"calcs": [
|
|
|
|
"last"
|
|
|
|
],
|
|
|
|
"fields": "",
|
|
|
|
"values": false
|
|
|
|
},
|
|
|
|
"textMode": "auto"
|
|
|
|
},
|
|
|
|
"pluginVersion": "9.4.3",
|
|
|
|
"targets": [
|
|
|
|
{
|
|
|
|
"datasource": {
|
|
|
|
"type": "prometheus",
|
|
|
|
"uid": "${DS_PROMETHEUS}"
|
|
|
|
},
|
|
|
|
"editorMode": "builder",
|
2023-03-20 19:34:10 +00:00
|
|
|
"expr": "ntfy_visitors_total{job=\"$job\"}",
|
2023-03-19 19:46:37 +00:00
|
|
|
"legendFormat": "Visitors",
|
|
|
|
"range": true,
|
|
|
|
"refId": "A"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"title": "Visitors",
|
|
|
|
"type": "stat"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"datasource": {
|
|
|
|
"type": "prometheus",
|
|
|
|
"uid": "${DS_PROMETHEUS}"
|
|
|
|
},
|
|
|
|
"description": "",
|
|
|
|
"fieldConfig": {
|
|
|
|
"defaults": {
|
|
|
|
"color": {
|
|
|
|
"mode": "thresholds"
|
|
|
|
},
|
|
|
|
"mappings": [],
|
|
|
|
"thresholds": {
|
|
|
|
"mode": "absolute",
|
|
|
|
"steps": [
|
|
|
|
{
|
|
|
|
"color": "green",
|
|
|
|
"value": null
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"color": "red",
|
|
|
|
"value": 80
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"overrides": []
|
|
|
|
},
|
|
|
|
"gridPos": {
|
|
|
|
"h": 3,
|
|
|
|
"w": 4,
|
|
|
|
"x": 12,
|
|
|
|
"y": 1
|
|
|
|
},
|
|
|
|
"id": 32,
|
|
|
|
"options": {
|
|
|
|
"colorMode": "value",
|
|
|
|
"graphMode": "none",
|
|
|
|
"justifyMode": "auto",
|
|
|
|
"orientation": "auto",
|
|
|
|
"reduceOptions": {
|
|
|
|
"calcs": [
|
|
|
|
"last"
|
|
|
|
],
|
|
|
|
"fields": "",
|
|
|
|
"values": false
|
|
|
|
},
|
|
|
|
"textMode": "auto"
|
|
|
|
},
|
|
|
|
"pluginVersion": "9.4.3",
|
|
|
|
"targets": [
|
|
|
|
{
|
|
|
|
"datasource": {
|
|
|
|
"type": "prometheus",
|
|
|
|
"uid": "${DS_PROMETHEUS}"
|
|
|
|
},
|
|
|
|
"editorMode": "builder",
|
2023-03-20 19:34:10 +00:00
|
|
|
"expr": "ntfy_users_total{job=\"$job\"}",
|
2023-03-19 19:46:37 +00:00
|
|
|
"legendFormat": "Visitors",
|
|
|
|
"range": true,
|
|
|
|
"refId": "A"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"title": "Users",
|
|
|
|
"type": "stat"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"datasource": {
|
|
|
|
"type": "prometheus",
|
|
|
|
"uid": "${DS_PROMETHEUS}"
|
|
|
|
},
|
|
|
|
"description": "",
|
|
|
|
"fieldConfig": {
|
|
|
|
"defaults": {
|
|
|
|
"color": {
|
|
|
|
"mode": "thresholds"
|
|
|
|
},
|
|
|
|
"mappings": [],
|
|
|
|
"thresholds": {
|
|
|
|
"mode": "absolute",
|
|
|
|
"steps": [
|
|
|
|
{
|
|
|
|
"color": "blue",
|
|
|
|
"value": null
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"overrides": []
|
|
|
|
},
|
|
|
|
"gridPos": {
|
|
|
|
"h": 3,
|
|
|
|
"w": 4,
|
|
|
|
"x": 16,
|
|
|
|
"y": 1
|
|
|
|
},
|
|
|
|
"id": 34,
|
|
|
|
"options": {
|
|
|
|
"colorMode": "value",
|
|
|
|
"graphMode": "none",
|
|
|
|
"justifyMode": "auto",
|
|
|
|
"orientation": "auto",
|
|
|
|
"reduceOptions": {
|
|
|
|
"calcs": [
|
|
|
|
"last"
|
|
|
|
],
|
|
|
|
"fields": "",
|
|
|
|
"values": false
|
|
|
|
},
|
|
|
|
"textMode": "auto"
|
|
|
|
},
|
|
|
|
"pluginVersion": "9.4.3",
|
|
|
|
"targets": [
|
|
|
|
{
|
|
|
|
"datasource": {
|
|
|
|
"type": "prometheus",
|
|
|
|
"uid": "${DS_PROMETHEUS}"
|
|
|
|
},
|
|
|
|
"editorMode": "builder",
|
2023-03-20 19:34:10 +00:00
|
|
|
"expr": "ntfy_topics_total{job=\"$job\"}",
|
2023-03-19 19:46:37 +00:00
|
|
|
"legendFormat": "Topics",
|
|
|
|
"range": true,
|
|
|
|
"refId": "A"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"title": "Topics",
|
|
|
|
"type": "stat"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"datasource": {
|
|
|
|
"type": "prometheus",
|
|
|
|
"uid": "${DS_PROMETHEUS}"
|
|
|
|
},
|
|
|
|
"description": "",
|
|
|
|
"fieldConfig": {
|
|
|
|
"defaults": {
|
|
|
|
"color": {
|
|
|
|
"mode": "thresholds"
|
|
|
|
},
|
|
|
|
"mappings": [],
|
|
|
|
"thresholds": {
|
|
|
|
"mode": "absolute",
|
|
|
|
"steps": [
|
|
|
|
{
|
|
|
|
"color": "purple",
|
|
|
|
"value": null
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"overrides": []
|
|
|
|
},
|
|
|
|
"gridPos": {
|
|
|
|
"h": 3,
|
|
|
|
"w": 4,
|
|
|
|
"x": 20,
|
|
|
|
"y": 1
|
|
|
|
},
|
|
|
|
"id": 35,
|
|
|
|
"options": {
|
|
|
|
"colorMode": "value",
|
|
|
|
"graphMode": "none",
|
|
|
|
"justifyMode": "auto",
|
|
|
|
"orientation": "auto",
|
|
|
|
"reduceOptions": {
|
|
|
|
"calcs": [
|
|
|
|
"last"
|
|
|
|
],
|
|
|
|
"fields": "",
|
|
|
|
"values": false
|
|
|
|
},
|
|
|
|
"textMode": "auto"
|
|
|
|
},
|
|
|
|
"pluginVersion": "9.4.3",
|
|
|
|
"targets": [
|
|
|
|
{
|
|
|
|
"datasource": {
|
|
|
|
"type": "prometheus",
|
|
|
|
"uid": "${DS_PROMETHEUS}"
|
|
|
|
},
|
|
|
|
"editorMode": "builder",
|
|
|
|
"expr": "ntfy_subscribers_total",
|
|
|
|
"legendFormat": "Subscribers",
|
|
|
|
"range": true,
|
|
|
|
"refId": "A"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"title": "Subscribers",
|
|
|
|
"type": "stat"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"gridPos": {
|
|
|
|
"h": 1,
|
|
|
|
"w": 24,
|
|
|
|
"x": 0,
|
|
|
|
"y": 4
|
|
|
|
},
|
|
|
|
"id": 10,
|
|
|
|
"title": "Metrics",
|
|
|
|
"type": "row"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"datasource": {
|
|
|
|
"type": "prometheus",
|
|
|
|
"uid": "${DS_PROMETHEUS}"
|
|
|
|
},
|
2023-03-20 19:34:10 +00:00
|
|
|
"description": "Number of successfully published messages, and messages that could not be published (due to rate limiting, bad formatting, etc.)",
|
2023-03-19 19:46:37 +00:00
|
|
|
"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
|
2023-03-20 19:34:10 +00:00
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"overrides": [
|
|
|
|
{
|
|
|
|
"matcher": {
|
|
|
|
"id": "byName",
|
|
|
|
"options": "Failed"
|
|
|
|
},
|
|
|
|
"properties": [
|
|
|
|
{
|
|
|
|
"id": "custom.axisColorMode",
|
|
|
|
"value": "text"
|
2023-03-19 19:46:37 +00:00
|
|
|
},
|
|
|
|
{
|
2023-03-20 19:34:10 +00:00
|
|
|
"id": "color",
|
|
|
|
"value": {
|
|
|
|
"fixedColor": "red",
|
|
|
|
"mode": "fixed"
|
|
|
|
}
|
2023-03-19 19:46:37 +00:00
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
2023-03-20 19:34:10 +00:00
|
|
|
]
|
2023-03-19 19:46:37 +00:00
|
|
|
},
|
|
|
|
"gridPos": {
|
|
|
|
"h": 7,
|
|
|
|
"w": 6,
|
|
|
|
"x": 0,
|
|
|
|
"y": 5
|
|
|
|
},
|
2023-03-20 19:34:10 +00:00
|
|
|
"id": 42,
|
2023-03-19 19:46:37 +00:00
|
|
|
"options": {
|
|
|
|
"legend": {
|
|
|
|
"calcs": [],
|
|
|
|
"displayMode": "list",
|
|
|
|
"placement": "bottom",
|
|
|
|
"showLegend": true
|
|
|
|
},
|
|
|
|
"tooltip": {
|
|
|
|
"mode": "single",
|
|
|
|
"sort": "none"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"targets": [
|
|
|
|
{
|
|
|
|
"datasource": {
|
|
|
|
"type": "prometheus",
|
|
|
|
"uid": "${DS_PROMETHEUS}"
|
|
|
|
},
|
2023-03-20 19:34:10 +00:00
|
|
|
"editorMode": "code",
|
|
|
|
"expr": "rate(ntfy_messages_published_success{job=\"$job\"}[$rate])",
|
|
|
|
"legendFormat": "Success",
|
2023-03-19 19:46:37 +00:00
|
|
|
"range": true,
|
|
|
|
"refId": "A"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"datasource": {
|
|
|
|
"type": "prometheus",
|
|
|
|
"uid": "${DS_PROMETHEUS}"
|
|
|
|
},
|
2023-03-20 19:34:10 +00:00
|
|
|
"editorMode": "code",
|
|
|
|
"expr": "rate(ntfy_messages_published_failure{job=\"$job\"}[$rate])",
|
2023-03-19 19:46:37 +00:00
|
|
|
"hide": false,
|
2023-03-20 19:34:10 +00:00
|
|
|
"legendFormat": "Failed",
|
2023-03-19 19:46:37 +00:00
|
|
|
"range": true,
|
|
|
|
"refId": "B"
|
|
|
|
}
|
|
|
|
],
|
2023-03-20 19:34:10 +00:00
|
|
|
"title": "Messages published (per second)",
|
2023-03-19 19:46:37 +00:00
|
|
|
"type": "timeseries"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"datasource": {
|
|
|
|
"type": "prometheus",
|
|
|
|
"uid": "${DS_PROMETHEUS}"
|
|
|
|
},
|
2023-03-20 19:34:10 +00:00
|
|
|
"description": "Number of messages published since last ntfy server restart",
|
2023-03-19 19:46:37 +00:00
|
|
|
"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
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2023-03-20 19:34:10 +00:00
|
|
|
"overrides": [
|
|
|
|
{
|
|
|
|
"matcher": {
|
|
|
|
"id": "byName",
|
|
|
|
"options": "Failed"
|
|
|
|
},
|
|
|
|
"properties": [
|
|
|
|
{
|
|
|
|
"id": "color",
|
|
|
|
"value": {
|
|
|
|
"fixedColor": "red",
|
|
|
|
"mode": "fixed"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
2023-03-19 19:46:37 +00:00
|
|
|
},
|
|
|
|
"gridPos": {
|
|
|
|
"h": 7,
|
|
|
|
"w": 6,
|
|
|
|
"x": 6,
|
|
|
|
"y": 5
|
|
|
|
},
|
|
|
|
"id": 4,
|
|
|
|
"options": {
|
|
|
|
"legend": {
|
|
|
|
"calcs": [],
|
|
|
|
"displayMode": "list",
|
|
|
|
"placement": "bottom",
|
|
|
|
"showLegend": true
|
|
|
|
},
|
|
|
|
"tooltip": {
|
|
|
|
"mode": "single",
|
|
|
|
"sort": "none"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"targets": [
|
|
|
|
{
|
|
|
|
"datasource": {
|
|
|
|
"type": "prometheus",
|
|
|
|
"uid": "${DS_PROMETHEUS}"
|
|
|
|
},
|
|
|
|
"editorMode": "builder",
|
2023-03-20 19:34:10 +00:00
|
|
|
"expr": "ntfy_messages_published_success{job=\"$job\"}",
|
2023-03-19 19:46:37 +00:00
|
|
|
"legendFormat": "Successful",
|
|
|
|
"range": true,
|
|
|
|
"refId": "A"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"datasource": {
|
|
|
|
"type": "prometheus",
|
|
|
|
"uid": "${DS_PROMETHEUS}"
|
|
|
|
},
|
|
|
|
"editorMode": "builder",
|
2023-03-20 19:34:10 +00:00
|
|
|
"expr": "ntfy_messages_published_failure{job=\"$job\"}",
|
2023-03-19 19:46:37 +00:00
|
|
|
"hide": false,
|
|
|
|
"legendFormat": "Failed",
|
|
|
|
"range": true,
|
|
|
|
"refId": "B"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"title": "Messages published",
|
|
|
|
"type": "timeseries"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"datasource": {
|
|
|
|
"type": "prometheus",
|
|
|
|
"uid": "${DS_PROMETHEUS}"
|
|
|
|
},
|
2023-03-20 19:34:10 +00:00
|
|
|
"description": "Number of messages currently stored in message cache",
|
2023-03-19 19:46:37 +00:00
|
|
|
"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
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"overrides": []
|
|
|
|
},
|
|
|
|
"gridPos": {
|
|
|
|
"h": 7,
|
|
|
|
"w": 6,
|
|
|
|
"x": 12,
|
|
|
|
"y": 5
|
|
|
|
},
|
2023-03-20 19:34:10 +00:00
|
|
|
"id": 2,
|
2023-03-19 19:46:37 +00:00
|
|
|
"options": {
|
|
|
|
"legend": {
|
|
|
|
"calcs": [],
|
|
|
|
"displayMode": "list",
|
|
|
|
"placement": "bottom",
|
|
|
|
"showLegend": true
|
|
|
|
},
|
|
|
|
"tooltip": {
|
|
|
|
"mode": "single",
|
|
|
|
"sort": "none"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"targets": [
|
|
|
|
{
|
|
|
|
"datasource": {
|
|
|
|
"type": "prometheus",
|
|
|
|
"uid": "${DS_PROMETHEUS}"
|
|
|
|
},
|
|
|
|
"editorMode": "builder",
|
2023-03-20 19:34:10 +00:00
|
|
|
"expr": "ntfy_messages_cached_total{job=\"$job\"}",
|
|
|
|
"legendFormat": "Messages in database",
|
2023-03-19 19:46:37 +00:00
|
|
|
"range": true,
|
|
|
|
"refId": "A"
|
|
|
|
}
|
|
|
|
],
|
2023-03-20 19:34:10 +00:00
|
|
|
"title": "Messages cached",
|
2023-03-19 19:46:37 +00:00
|
|
|
"type": "timeseries"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"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
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"overrides": []
|
|
|
|
},
|
|
|
|
"gridPos": {
|
|
|
|
"h": 7,
|
|
|
|
"w": 6,
|
|
|
|
"x": 18,
|
|
|
|
"y": 5
|
|
|
|
},
|
2023-03-20 19:34:10 +00:00
|
|
|
"id": 14,
|
2023-03-19 19:46:37 +00:00
|
|
|
"options": {
|
|
|
|
"legend": {
|
|
|
|
"calcs": [],
|
|
|
|
"displayMode": "list",
|
|
|
|
"placement": "bottom",
|
|
|
|
"showLegend": true
|
|
|
|
},
|
|
|
|
"tooltip": {
|
|
|
|
"mode": "single",
|
|
|
|
"sort": "none"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"targets": [
|
|
|
|
{
|
|
|
|
"datasource": {
|
|
|
|
"type": "prometheus",
|
|
|
|
"uid": "${DS_PROMETHEUS}"
|
|
|
|
},
|
|
|
|
"editorMode": "builder",
|
2023-03-20 19:34:10 +00:00
|
|
|
"expr": "ntfy_visitors_total{job=\"$job\"}",
|
|
|
|
"legendFormat": "Visitors",
|
2023-03-19 19:46:37 +00:00
|
|
|
"range": true,
|
|
|
|
"refId": "A"
|
2023-03-20 19:34:10 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"datasource": {
|
|
|
|
"type": "prometheus",
|
|
|
|
"uid": "${DS_PROMETHEUS}"
|
2023-03-19 19:46:37 +00:00
|
|
|
},
|
2023-03-20 19:34:10 +00:00
|
|
|
"editorMode": "builder",
|
|
|
|
"expr": "ntfy_topics_total{job=\"$job\"}",
|
|
|
|
"hide": false,
|
|
|
|
"legendFormat": "Topics",
|
|
|
|
"range": true,
|
|
|
|
"refId": "B"
|
2023-03-19 19:46:37 +00:00
|
|
|
},
|
2023-03-20 19:34:10 +00:00
|
|
|
{
|
|
|
|
"datasource": {
|
|
|
|
"type": "prometheus",
|
|
|
|
"uid": "${DS_PROMETHEUS}"
|
|
|
|
},
|
|
|
|
"editorMode": "builder",
|
|
|
|
"expr": "ntfy_subscribers_total{job=\"$job\"}",
|
|
|
|
"hide": false,
|
|
|
|
"legendFormat": "Subscribers",
|
|
|
|
"range": true,
|
|
|
|
"refId": "C"
|
2023-03-19 19:46:37 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"datasource": {
|
|
|
|
"type": "prometheus",
|
|
|
|
"uid": "${DS_PROMETHEUS}"
|
|
|
|
},
|
|
|
|
"editorMode": "builder",
|
2023-03-20 19:34:10 +00:00
|
|
|
"expr": "ntfy_users_total{job=\"$job\"}",
|
|
|
|
"hide": false,
|
|
|
|
"legendFormat": "Users",
|
2023-03-19 19:46:37 +00:00
|
|
|
"range": true,
|
2023-03-20 19:34:10 +00:00
|
|
|
"refId": "D"
|
2023-03-19 19:46:37 +00:00
|
|
|
}
|
|
|
|
],
|
2023-03-20 19:34:10 +00:00
|
|
|
"title": "Visitors, subscribers, topics",
|
2023-03-19 19:46:37 +00:00
|
|
|
"type": "timeseries"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"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
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"overrides": []
|
|
|
|
},
|
|
|
|
"gridPos": {
|
|
|
|
"h": 7,
|
|
|
|
"w": 6,
|
2023-03-20 19:34:10 +00:00
|
|
|
"x": 0,
|
2023-03-19 19:46:37 +00:00
|
|
|
"y": 12
|
|
|
|
},
|
2023-03-20 19:34:10 +00:00
|
|
|
"id": 43,
|
2023-03-19 19:46:37 +00:00
|
|
|
"options": {
|
|
|
|
"legend": {
|
|
|
|
"calcs": [],
|
|
|
|
"displayMode": "list",
|
|
|
|
"placement": "bottom",
|
|
|
|
"showLegend": true
|
|
|
|
},
|
|
|
|
"tooltip": {
|
|
|
|
"mode": "single",
|
|
|
|
"sort": "none"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"targets": [
|
|
|
|
{
|
|
|
|
"datasource": {
|
|
|
|
"type": "prometheus",
|
|
|
|
"uid": "${DS_PROMETHEUS}"
|
|
|
|
},
|
2023-03-20 19:34:10 +00:00
|
|
|
"editorMode": "code",
|
|
|
|
"expr": "sum by(job) (rate(ntfy_http_requests_total{job=\"$job\"}[$rate]))",
|
|
|
|
"legendFormat": "Requests per second",
|
2023-03-19 19:46:37 +00:00
|
|
|
"range": true,
|
|
|
|
"refId": "A"
|
|
|
|
}
|
|
|
|
],
|
2023-03-20 19:34:10 +00:00
|
|
|
"title": "HTTP requests (per second)",
|
2023-03-19 19:46:37 +00:00
|
|
|
"type": "timeseries"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"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
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"overrides": []
|
|
|
|
},
|
|
|
|
"gridPos": {
|
|
|
|
"h": 7,
|
2023-03-20 19:34:10 +00:00
|
|
|
"w": 9,
|
|
|
|
"x": 6,
|
2023-03-19 19:46:37 +00:00
|
|
|
"y": 12
|
|
|
|
},
|
|
|
|
"id": 41,
|
|
|
|
"options": {
|
|
|
|
"legend": {
|
2023-03-20 19:34:10 +00:00
|
|
|
"calcs": [
|
|
|
|
"mean"
|
|
|
|
],
|
|
|
|
"displayMode": "table",
|
|
|
|
"placement": "right",
|
|
|
|
"showLegend": true,
|
|
|
|
"sortBy": "Mean",
|
|
|
|
"sortDesc": true
|
2023-03-19 19:46:37 +00:00
|
|
|
},
|
|
|
|
"tooltip": {
|
|
|
|
"mode": "single",
|
|
|
|
"sort": "none"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"targets": [
|
|
|
|
{
|
|
|
|
"datasource": {
|
|
|
|
"type": "prometheus",
|
|
|
|
"uid": "${DS_PROMETHEUS}"
|
|
|
|
},
|
2023-03-20 19:34:10 +00:00
|
|
|
"editorMode": "code",
|
|
|
|
"expr": "sum by(http_code) (rate(ntfy_http_requests_total{job=\"$job\", http_code!=\"200\", http_code!=\"429\", http_code!=\"507\"}[$rate]))",
|
2023-03-19 19:46:37 +00:00
|
|
|
"legendFormat": "{{http_code}}",
|
|
|
|
"range": true,
|
|
|
|
"refId": "A"
|
|
|
|
}
|
|
|
|
],
|
2023-03-20 19:34:10 +00:00
|
|
|
"title": "HTTP errors (per second, excl. 429/507)",
|
2023-03-19 19:46:37 +00:00
|
|
|
"type": "timeseries"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"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
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"overrides": []
|
|
|
|
},
|
|
|
|
"gridPos": {
|
|
|
|
"h": 7,
|
2023-03-20 19:34:10 +00:00
|
|
|
"w": 9,
|
|
|
|
"x": 15,
|
2023-03-19 19:46:37 +00:00
|
|
|
"y": 12
|
|
|
|
},
|
|
|
|
"id": 16,
|
|
|
|
"options": {
|
|
|
|
"legend": {
|
2023-03-20 19:34:10 +00:00
|
|
|
"calcs": [
|
|
|
|
"mean"
|
|
|
|
],
|
|
|
|
"displayMode": "table",
|
|
|
|
"placement": "right",
|
|
|
|
"showLegend": true,
|
|
|
|
"sortBy": "Mean",
|
|
|
|
"sortDesc": true
|
2023-03-19 19:46:37 +00:00
|
|
|
},
|
|
|
|
"tooltip": {
|
|
|
|
"mode": "single",
|
|
|
|
"sort": "none"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"targets": [
|
|
|
|
{
|
|
|
|
"datasource": {
|
|
|
|
"type": "prometheus",
|
|
|
|
"uid": "${DS_PROMETHEUS}"
|
|
|
|
},
|
2023-03-20 19:34:10 +00:00
|
|
|
"editorMode": "code",
|
|
|
|
"expr": "sum by(ntfy_code) (rate(ntfy_http_requests_total{http_code!=\"200\", job=\"$job\"}[$rate]))",
|
2023-03-19 19:46:37 +00:00
|
|
|
"legendFormat": "{{http_method}} {{http_code}} {{ntfy_code}}",
|
|
|
|
"range": true,
|
|
|
|
"refId": "A"
|
|
|
|
}
|
|
|
|
],
|
2023-03-20 19:34:10 +00:00
|
|
|
"title": "HTTP errors (per second, ntfy code)",
|
2023-03-19 19:46:37 +00:00
|
|
|
"type": "timeseries"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"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": "decbytes"
|
|
|
|
},
|
|
|
|
"overrides": []
|
|
|
|
},
|
|
|
|
"gridPos": {
|
|
|
|
"h": 7,
|
|
|
|
"w": 6,
|
|
|
|
"x": 0,
|
|
|
|
"y": 19
|
|
|
|
},
|
|
|
|
"id": 20,
|
|
|
|
"options": {
|
|
|
|
"legend": {
|
|
|
|
"calcs": [],
|
|
|
|
"displayMode": "list",
|
|
|
|
"placement": "bottom",
|
|
|
|
"showLegend": true
|
|
|
|
},
|
|
|
|
"tooltip": {
|
|
|
|
"mode": "single",
|
|
|
|
"sort": "none"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"targets": [
|
|
|
|
{
|
|
|
|
"datasource": {
|
|
|
|
"type": "prometheus",
|
|
|
|
"uid": "${DS_PROMETHEUS}"
|
|
|
|
},
|
|
|
|
"editorMode": "builder",
|
2023-03-20 19:34:10 +00:00
|
|
|
"expr": "ntfy_attachments_total_size{job=\"$job\"}",
|
2023-03-19 19:46:37 +00:00
|
|
|
"legendFormat": "Total size in MB",
|
|
|
|
"range": true,
|
|
|
|
"refId": "A"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"title": "Attachments: Total cache size",
|
|
|
|
"transformations": [],
|
|
|
|
"type": "timeseries"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"datasource": {
|
|
|
|
"type": "prometheus",
|
|
|
|
"uid": "${DS_PROMETHEUS}"
|
|
|
|
},
|
|
|
|
"fieldConfig": {
|
|
|
|
"defaults": {
|
|
|
|
"color": {
|
|
|
|
"mode": "palette-classic"
|
|
|
|
},
|
|
|
|
"custom": {
|
|
|
|
"axisCenteredZero": false,
|
|
|
|
"axisColorMode": "text",
|
|
|
|
"axisLabel": "",
|
|
|
|
"axisPlacement": "auto",
|
2023-03-20 19:34:10 +00:00
|
|
|
"barAlignment": -1,
|
2023-03-19 19:46:37 +00:00
|
|
|
"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
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2023-03-20 19:34:10 +00:00
|
|
|
"overrides": [
|
|
|
|
{
|
|
|
|
"matcher": {
|
|
|
|
"id": "byName",
|
|
|
|
"options": "Failure"
|
|
|
|
},
|
|
|
|
"properties": [
|
|
|
|
{
|
|
|
|
"id": "color",
|
|
|
|
"value": {
|
|
|
|
"fixedColor": "red",
|
|
|
|
"mode": "fixed"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
2023-03-19 19:46:37 +00:00
|
|
|
},
|
|
|
|
"gridPos": {
|
|
|
|
"h": 7,
|
|
|
|
"w": 6,
|
|
|
|
"x": 6,
|
|
|
|
"y": 19
|
|
|
|
},
|
|
|
|
"id": 27,
|
|
|
|
"options": {
|
|
|
|
"legend": {
|
|
|
|
"calcs": [],
|
|
|
|
"displayMode": "list",
|
|
|
|
"placement": "bottom",
|
|
|
|
"showLegend": true
|
|
|
|
},
|
|
|
|
"tooltip": {
|
|
|
|
"mode": "single",
|
|
|
|
"sort": "none"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"targets": [
|
|
|
|
{
|
|
|
|
"datasource": {
|
|
|
|
"type": "prometheus",
|
|
|
|
"uid": "${DS_PROMETHEUS}"
|
|
|
|
},
|
2023-03-20 19:34:10 +00:00
|
|
|
"editorMode": "code",
|
|
|
|
"expr": "rate(ntfy_firebase_published_success{job=\"$job\"}[$rate])",
|
2023-03-19 19:46:37 +00:00
|
|
|
"legendFormat": "Success",
|
|
|
|
"range": true,
|
|
|
|
"refId": "A"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"datasource": {
|
|
|
|
"type": "prometheus",
|
|
|
|
"uid": "${DS_PROMETHEUS}"
|
|
|
|
},
|
2023-03-20 19:34:10 +00:00
|
|
|
"editorMode": "code",
|
|
|
|
"expr": "rate(ntfy_firebase_published_failure{job=\"$job\"}[$rate])",
|
2023-03-19 19:46:37 +00:00
|
|
|
"hide": false,
|
|
|
|
"legendFormat": "Failure",
|
|
|
|
"range": true,
|
|
|
|
"refId": "B"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"title": "Firebase messages sent",
|
|
|
|
"type": "timeseries"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"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
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2023-03-20 19:34:10 +00:00
|
|
|
"overrides": [
|
|
|
|
{
|
|
|
|
"matcher": {
|
|
|
|
"id": "byName",
|
|
|
|
"options": "Rejected (HTTP 507)"
|
|
|
|
},
|
|
|
|
"properties": [
|
|
|
|
{
|
|
|
|
"id": "color",
|
|
|
|
"value": {
|
|
|
|
"fixedColor": "red",
|
|
|
|
"mode": "fixed"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
2023-03-19 19:46:37 +00:00
|
|
|
},
|
|
|
|
"gridPos": {
|
|
|
|
"h": 7,
|
|
|
|
"w": 6,
|
|
|
|
"x": 12,
|
|
|
|
"y": 19
|
|
|
|
},
|
|
|
|
"id": 26,
|
|
|
|
"options": {
|
|
|
|
"legend": {
|
|
|
|
"calcs": [],
|
|
|
|
"displayMode": "list",
|
|
|
|
"placement": "bottom",
|
|
|
|
"showLegend": true
|
|
|
|
},
|
|
|
|
"tooltip": {
|
|
|
|
"mode": "single",
|
|
|
|
"sort": "none"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"targets": [
|
|
|
|
{
|
|
|
|
"datasource": {
|
|
|
|
"type": "prometheus",
|
|
|
|
"uid": "${DS_PROMETHEUS}"
|
|
|
|
},
|
2023-03-20 19:34:10 +00:00
|
|
|
"editorMode": "code",
|
|
|
|
"expr": "rate(ntfy_unifiedpush_published_success{job=\"$job\"}[$rate])",
|
2023-03-19 19:46:37 +00:00
|
|
|
"legendFormat": "Success",
|
|
|
|
"range": true,
|
|
|
|
"refId": "A"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"datasource": {
|
|
|
|
"type": "prometheus",
|
|
|
|
"uid": "${DS_PROMETHEUS}"
|
|
|
|
},
|
2023-03-20 19:34:10 +00:00
|
|
|
"editorMode": "code",
|
|
|
|
"expr": "rate(ntfy_http_requests_total{job=\"$job\",http_code=\"507\"}[$rate])",
|
2023-03-19 19:46:37 +00:00
|
|
|
"hide": false,
|
2023-03-20 19:34:10 +00:00
|
|
|
"legendFormat": "Rejected (HTTP 507)",
|
2023-03-19 19:46:37 +00:00
|
|
|
"range": true,
|
|
|
|
"refId": "B"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"title": "UnifiedPush messages",
|
|
|
|
"type": "timeseries"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"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
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2023-03-20 19:34:10 +00:00
|
|
|
"overrides": [
|
|
|
|
{
|
|
|
|
"matcher": {
|
|
|
|
"id": "byName",
|
|
|
|
"options": "Failure"
|
|
|
|
},
|
|
|
|
"properties": [
|
|
|
|
{
|
|
|
|
"id": "color",
|
|
|
|
"value": {
|
|
|
|
"fixedColor": "red",
|
|
|
|
"mode": "fixed"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
2023-03-19 19:46:37 +00:00
|
|
|
},
|
|
|
|
"gridPos": {
|
|
|
|
"h": 7,
|
|
|
|
"w": 6,
|
|
|
|
"x": 18,
|
|
|
|
"y": 19
|
|
|
|
},
|
|
|
|
"id": 24,
|
|
|
|
"options": {
|
|
|
|
"legend": {
|
|
|
|
"calcs": [],
|
|
|
|
"displayMode": "list",
|
|
|
|
"placement": "bottom",
|
|
|
|
"showLegend": true
|
|
|
|
},
|
|
|
|
"tooltip": {
|
|
|
|
"mode": "single",
|
|
|
|
"sort": "none"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"targets": [
|
|
|
|
{
|
|
|
|
"datasource": {
|
|
|
|
"type": "prometheus",
|
|
|
|
"uid": "${DS_PROMETHEUS}"
|
|
|
|
},
|
2023-03-20 19:34:10 +00:00
|
|
|
"editorMode": "code",
|
|
|
|
"expr": "rate(ntfy_matrix_published_success{job=\"$job\"}[$rate])",
|
2023-03-19 19:46:37 +00:00
|
|
|
"legendFormat": "Success",
|
|
|
|
"range": true,
|
|
|
|
"refId": "A"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"datasource": {
|
|
|
|
"type": "prometheus",
|
|
|
|
"uid": "${DS_PROMETHEUS}"
|
|
|
|
},
|
2023-03-20 19:34:10 +00:00
|
|
|
"editorMode": "code",
|
|
|
|
"expr": "rate(ntfy_matrix_published_failure{job=\"$job\"}[$rate])",
|
2023-03-19 19:46:37 +00:00
|
|
|
"hide": false,
|
|
|
|
"legendFormat": "Failure",
|
|
|
|
"range": true,
|
|
|
|
"refId": "B"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"title": "Matrix messages published",
|
|
|
|
"type": "timeseries"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"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
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2023-03-20 19:34:10 +00:00
|
|
|
"overrides": [
|
|
|
|
{
|
|
|
|
"matcher": {
|
|
|
|
"id": "byName",
|
|
|
|
"options": "Failure"
|
|
|
|
},
|
|
|
|
"properties": [
|
|
|
|
{
|
|
|
|
"id": "color",
|
|
|
|
"value": {
|
|
|
|
"fixedColor": "red",
|
|
|
|
"mode": "fixed"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
2023-03-19 19:46:37 +00:00
|
|
|
},
|
|
|
|
"gridPos": {
|
|
|
|
"h": 7,
|
|
|
|
"w": 6,
|
|
|
|
"x": 0,
|
|
|
|
"y": 26
|
|
|
|
},
|
|
|
|
"id": 12,
|
|
|
|
"options": {
|
|
|
|
"legend": {
|
|
|
|
"calcs": [],
|
|
|
|
"displayMode": "list",
|
|
|
|
"placement": "bottom",
|
|
|
|
"showLegend": true
|
|
|
|
},
|
|
|
|
"tooltip": {
|
|
|
|
"mode": "single",
|
|
|
|
"sort": "none"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"targets": [
|
|
|
|
{
|
|
|
|
"datasource": {
|
|
|
|
"type": "prometheus",
|
|
|
|
"uid": "${DS_PROMETHEUS}"
|
|
|
|
},
|
|
|
|
"editorMode": "builder",
|
2023-03-20 19:34:10 +00:00
|
|
|
"expr": "ntfy_emails_sent_success{job=\"$job\"}",
|
|
|
|
"legendFormat": "Success",
|
2023-03-19 19:46:37 +00:00
|
|
|
"range": true,
|
|
|
|
"refId": "A"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"datasource": {
|
|
|
|
"type": "prometheus",
|
|
|
|
"uid": "${DS_PROMETHEUS}"
|
|
|
|
},
|
|
|
|
"editorMode": "builder",
|
2023-03-20 19:34:10 +00:00
|
|
|
"expr": "ntfy_emails_sent_failure{job=\"$job\"}",
|
2023-03-19 19:46:37 +00:00
|
|
|
"hide": false,
|
|
|
|
"legendFormat": "Failure",
|
|
|
|
"range": true,
|
|
|
|
"refId": "B"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"title": "Emails sent",
|
|
|
|
"type": "timeseries"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"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
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2023-03-20 19:34:10 +00:00
|
|
|
"overrides": [
|
|
|
|
{
|
|
|
|
"matcher": {
|
|
|
|
"id": "byName",
|
|
|
|
"options": "Failure"
|
|
|
|
},
|
|
|
|
"properties": [
|
|
|
|
{
|
|
|
|
"id": "color",
|
|
|
|
"value": {
|
|
|
|
"fixedColor": "red",
|
|
|
|
"mode": "fixed"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
2023-03-19 19:46:37 +00:00
|
|
|
},
|
|
|
|
"gridPos": {
|
|
|
|
"h": 7,
|
|
|
|
"w": 6,
|
|
|
|
"x": 6,
|
|
|
|
"y": 26
|
|
|
|
},
|
|
|
|
"id": 22,
|
|
|
|
"options": {
|
|
|
|
"legend": {
|
|
|
|
"calcs": [],
|
|
|
|
"displayMode": "list",
|
|
|
|
"placement": "bottom",
|
|
|
|
"showLegend": true
|
|
|
|
},
|
|
|
|
"tooltip": {
|
|
|
|
"mode": "single",
|
|
|
|
"sort": "none"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"targets": [
|
|
|
|
{
|
|
|
|
"datasource": {
|
|
|
|
"type": "prometheus",
|
|
|
|
"uid": "${DS_PROMETHEUS}"
|
|
|
|
},
|
|
|
|
"editorMode": "builder",
|
2023-03-20 19:34:10 +00:00
|
|
|
"expr": "ntfy_emails_received_success{job=\"$job\"}",
|
2023-03-19 19:46:37 +00:00
|
|
|
"legendFormat": "Success",
|
|
|
|
"range": true,
|
|
|
|
"refId": "A"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"datasource": {
|
|
|
|
"type": "prometheus",
|
|
|
|
"uid": "${DS_PROMETHEUS}"
|
|
|
|
},
|
|
|
|
"editorMode": "builder",
|
2023-03-20 19:34:10 +00:00
|
|
|
"expr": "ntfy_emails_received_failure{job=\"$job\"}",
|
2023-03-19 19:46:37 +00:00
|
|
|
"hide": false,
|
|
|
|
"legendFormat": "Failure",
|
|
|
|
"range": true,
|
|
|
|
"refId": "B"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"title": "Emails received",
|
|
|
|
"type": "timeseries"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"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": 7,
|
|
|
|
"w": 6,
|
|
|
|
"x": 12,
|
|
|
|
"y": 26
|
|
|
|
},
|
|
|
|
"id": 29,
|
|
|
|
"options": {
|
|
|
|
"legend": {
|
|
|
|
"calcs": [],
|
|
|
|
"displayMode": "list",
|
|
|
|
"placement": "bottom",
|
|
|
|
"showLegend": true
|
|
|
|
},
|
|
|
|
"tooltip": {
|
|
|
|
"mode": "single",
|
|
|
|
"sort": "none"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"targets": [
|
|
|
|
{
|
|
|
|
"datasource": {
|
|
|
|
"type": "prometheus",
|
|
|
|
"uid": "${DS_PROMETHEUS}"
|
|
|
|
},
|
|
|
|
"editorMode": "builder",
|
2023-03-20 19:34:10 +00:00
|
|
|
"expr": "ntfy_message_publish_duration_ms{job=\"$job\"}",
|
2023-03-19 19:46:37 +00:00
|
|
|
"legendFormat": "Duration",
|
|
|
|
"range": true,
|
|
|
|
"refId": "A"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"title": "Message publish duration",
|
|
|
|
"type": "timeseries"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"collapsed": false,
|
|
|
|
"gridPos": {
|
|
|
|
"h": 1,
|
|
|
|
"w": 24,
|
|
|
|
"x": 0,
|
|
|
|
"y": 33
|
|
|
|
},
|
|
|
|
"id": 8,
|
|
|
|
"panels": [],
|
|
|
|
"title": "Internals",
|
|
|
|
"type": "row"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"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
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"overrides": []
|
|
|
|
},
|
|
|
|
"gridPos": {
|
|
|
|
"h": 7,
|
|
|
|
"w": 6,
|
|
|
|
"x": 0,
|
|
|
|
"y": 34
|
|
|
|
},
|
|
|
|
"id": 6,
|
|
|
|
"options": {
|
|
|
|
"legend": {
|
|
|
|
"calcs": [],
|
|
|
|
"displayMode": "list",
|
|
|
|
"placement": "bottom",
|
|
|
|
"showLegend": false
|
|
|
|
},
|
|
|
|
"tooltip": {
|
|
|
|
"mode": "single",
|
|
|
|
"sort": "none"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"targets": [
|
|
|
|
{
|
|
|
|
"datasource": {
|
|
|
|
"type": "prometheus",
|
|
|
|
"uid": "${DS_PROMETHEUS}"
|
|
|
|
},
|
|
|
|
"editorMode": "builder",
|
2023-03-20 19:34:10 +00:00
|
|
|
"expr": "go_goroutines{job=\"$job\"}",
|
|
|
|
"legendFormat": "Go routines",
|
2023-03-19 19:46:37 +00:00
|
|
|
"range": true,
|
|
|
|
"refId": "A"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"title": "Go routines",
|
|
|
|
"type": "timeseries"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"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": {
|
2023-03-20 19:34:10 +00:00
|
|
|
"log": 10,
|
|
|
|
"type": "symlog"
|
2023-03-19 19:46:37 +00:00
|
|
|
},
|
|
|
|
"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": "none"
|
|
|
|
},
|
|
|
|
"overrides": []
|
|
|
|
},
|
|
|
|
"gridPos": {
|
|
|
|
"h": 7,
|
|
|
|
"w": 6,
|
|
|
|
"x": 6,
|
|
|
|
"y": 34
|
|
|
|
},
|
|
|
|
"id": 44,
|
|
|
|
"options": {
|
|
|
|
"legend": {
|
|
|
|
"calcs": [],
|
|
|
|
"displayMode": "list",
|
|
|
|
"placement": "bottom",
|
|
|
|
"showLegend": true
|
|
|
|
},
|
|
|
|
"tooltip": {
|
|
|
|
"mode": "single",
|
|
|
|
"sort": "none"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"targets": [
|
|
|
|
{
|
|
|
|
"datasource": {
|
|
|
|
"type": "prometheus",
|
|
|
|
"uid": "${DS_PROMETHEUS}"
|
|
|
|
},
|
|
|
|
"editorMode": "builder",
|
2023-03-20 19:34:10 +00:00
|
|
|
"expr": "process_open_fds{job=\"$job\"}",
|
2023-03-19 19:46:37 +00:00
|
|
|
"legendFormat": "Open",
|
|
|
|
"range": true,
|
|
|
|
"refId": "A"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"datasource": {
|
|
|
|
"type": "prometheus",
|
|
|
|
"uid": "${DS_PROMETHEUS}"
|
|
|
|
},
|
|
|
|
"editorMode": "builder",
|
2023-03-20 19:34:10 +00:00
|
|
|
"expr": "process_max_fds{job=\"$job\"}",
|
2023-03-19 19:46:37 +00:00
|
|
|
"hide": false,
|
|
|
|
"legendFormat": "Max",
|
|
|
|
"range": true,
|
|
|
|
"refId": "B"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"title": "File descriptors",
|
|
|
|
"type": "timeseries"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"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": "decbytes"
|
|
|
|
},
|
|
|
|
"overrides": []
|
|
|
|
},
|
|
|
|
"gridPos": {
|
|
|
|
"h": 7,
|
|
|
|
"w": 6,
|
|
|
|
"x": 12,
|
|
|
|
"y": 34
|
|
|
|
},
|
|
|
|
"id": 45,
|
|
|
|
"options": {
|
|
|
|
"legend": {
|
|
|
|
"calcs": [],
|
|
|
|
"displayMode": "list",
|
|
|
|
"placement": "bottom",
|
|
|
|
"showLegend": true
|
|
|
|
},
|
|
|
|
"tooltip": {
|
|
|
|
"mode": "single",
|
|
|
|
"sort": "none"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"targets": [
|
|
|
|
{
|
|
|
|
"datasource": {
|
|
|
|
"type": "prometheus",
|
|
|
|
"uid": "${DS_PROMETHEUS}"
|
|
|
|
},
|
|
|
|
"editorMode": "builder",
|
2023-03-20 19:34:10 +00:00
|
|
|
"expr": "process_resident_memory_bytes{job=\"$job\"}",
|
|
|
|
"legendFormat": "Resident memory used by ntfy (RSS)",
|
2023-03-19 19:46:37 +00:00
|
|
|
"range": true,
|
|
|
|
"refId": "A"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"datasource": {
|
|
|
|
"type": "prometheus",
|
|
|
|
"uid": "${DS_PROMETHEUS}"
|
|
|
|
},
|
|
|
|
"editorMode": "builder",
|
2023-03-20 19:34:10 +00:00
|
|
|
"expr": "process_virtual_memory_bytes{job=\"$job\"}",
|
2023-03-19 19:46:37 +00:00
|
|
|
"hide": false,
|
2023-03-20 19:34:10 +00:00
|
|
|
"legendFormat": "Virtual memory used by ntfy (VSS)",
|
2023-03-19 19:46:37 +00:00
|
|
|
"range": true,
|
|
|
|
"refId": "B"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"title": "Resident/virtual memory",
|
|
|
|
"type": "timeseries"
|
|
|
|
}
|
|
|
|
],
|
2023-03-20 19:34:10 +00:00
|
|
|
"refresh": "10s",
|
2023-03-19 19:46:37 +00:00
|
|
|
"revision": 1,
|
|
|
|
"schemaVersion": 38,
|
|
|
|
"style": "dark",
|
|
|
|
"tags": [],
|
|
|
|
"templating": {
|
2023-03-20 19:34:10 +00:00
|
|
|
"list": [
|
|
|
|
{
|
|
|
|
"current": {},
|
|
|
|
"datasource": {
|
|
|
|
"type": "prometheus",
|
|
|
|
"uid": "${DS_PROMETHEUS}"
|
|
|
|
},
|
|
|
|
"definition": "label_values(ntfy_visitors_total, job)",
|
|
|
|
"hide": 0,
|
|
|
|
"includeAll": false,
|
|
|
|
"label": "Job",
|
|
|
|
"multi": false,
|
|
|
|
"name": "job",
|
|
|
|
"options": [],
|
|
|
|
"query": {
|
|
|
|
"query": "label_values(ntfy_visitors_total, job)",
|
|
|
|
"refId": "StandardVariableQuery"
|
|
|
|
},
|
|
|
|
"refresh": 1,
|
|
|
|
"regex": "",
|
|
|
|
"skipUrlSync": false,
|
|
|
|
"sort": 0,
|
|
|
|
"type": "query"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"auto": false,
|
|
|
|
"auto_count": 30,
|
|
|
|
"auto_min": "10s",
|
|
|
|
"current": {
|
|
|
|
"selected": false,
|
|
|
|
"text": "30m",
|
|
|
|
"value": "30m"
|
|
|
|
},
|
|
|
|
"description": "Average per-second rates over values from this time span",
|
|
|
|
"hide": 0,
|
|
|
|
"label": "Rate",
|
|
|
|
"name": "rate",
|
|
|
|
"options": [
|
|
|
|
{
|
|
|
|
"selected": false,
|
|
|
|
"text": "1m",
|
|
|
|
"value": "1m"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"selected": false,
|
|
|
|
"text": "5m",
|
|
|
|
"value": "5m"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"selected": false,
|
|
|
|
"text": "10m",
|
|
|
|
"value": "10m"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"selected": true,
|
|
|
|
"text": "30m",
|
|
|
|
"value": "30m"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"selected": false,
|
|
|
|
"text": "1h",
|
|
|
|
"value": "1h"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"query": "1m,5m,10m,30m,1h",
|
|
|
|
"queryValue": "",
|
|
|
|
"refresh": 2,
|
|
|
|
"skipUrlSync": false,
|
|
|
|
"type": "interval"
|
|
|
|
}
|
|
|
|
]
|
2023-03-19 19:46:37 +00:00
|
|
|
},
|
|
|
|
"time": {
|
|
|
|
"from": "now-24h",
|
|
|
|
"to": "now"
|
|
|
|
},
|
|
|
|
"timepicker": {},
|
|
|
|
"timezone": "",
|
|
|
|
"title": "ntfy App",
|
|
|
|
"uid": "TO6HgexVz",
|
2023-03-20 19:34:10 +00:00
|
|
|
"version": 24,
|
2023-03-19 19:46:37 +00:00
|
|
|
"weekStart": ""
|
|
|
|
}
|