Compare commits

..

No commits in common. "grafana" and "stable" have entirely different histories.

View file

@ -15,7 +15,13 @@
"type": "grafana",
"id": "grafana",
"name": "Grafana",
"version": "12.3.0"
"version": "10.2.3"
},
{
"type": "panel",
"id": "piechart",
"name": "Pie chart",
"version": ""
},
{
"type": "datasource",
@ -55,6 +61,7 @@
"editable": true,
"fiscalYearStartMonth": 0,
"graphTooltip": 0,
"id": 32,
"links": [
{
"asDropdown": false,
@ -72,812 +79,6 @@
}
],
"panels": [
{
"collapsed": false,
"gridPos": {
"h": 1,
"w": 24,
"x": 0,
"y": 0
},
"id": 10,
"panels": [],
"title": "General",
"type": "row"
},
{
"datasource": {
"type": "prometheus",
"uid": "${DS_LOCAL}"
},
"fieldConfig": {
"defaults": {
"color": {
"mode": "thresholds"
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": 0
},
{
"color": "red",
"value": 80
}
]
}
},
"overrides": []
},
"gridPos": {
"h": 4,
"w": 4,
"x": 0,
"y": 1
},
"id": 4,
"options": {
"colorMode": "value",
"graphMode": "area",
"justifyMode": "auto",
"orientation": "auto",
"percentChangeColorMode": "standard",
"reduceOptions": {
"calcs": [
"lastNotNull"
],
"fields": "/^version$/",
"values": false
},
"showPercentChange": false,
"textMode": "auto",
"wideLayout": true
},
"pluginVersion": "12.3.0",
"targets": [
{
"editorMode": "code",
"exemplar": false,
"expr": "last_over_time(friendica_server_info{instance=\"$instance\"}[1d])",
"format": "table",
"instant": true,
"legendFormat": "__auto",
"range": false,
"refId": "A",
"datasource": {
"type": "prometheus",
"uid": "${DS_LOCAL}"
}
}
],
"title": "Current version",
"type": "stat"
},
{
"datasource": {
"type": "prometheus",
"uid": "${DS_LOCAL}"
},
"fieldConfig": {
"defaults": {
"color": {
"mode": "thresholds"
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": 0
},
{
"color": "red",
"value": 1
}
]
}
},
"overrides": []
},
"gridPos": {
"h": 4,
"w": 4,
"x": 4,
"y": 1
},
"id": 5,
"options": {
"colorMode": "value",
"graphMode": "area",
"justifyMode": "auto",
"orientation": "auto",
"percentChangeColorMode": "standard",
"reduceOptions": {
"calcs": [
"lastNotNull"
],
"fields": "available_version",
"values": false
},
"showPercentChange": false,
"textMode": "auto",
"wideLayout": true
},
"pluginVersion": "12.3.0",
"targets": [
{
"editorMode": "code",
"exemplar": false,
"expr": "last_over_time(friendica_update_available{instance=\"$instance\"}[1d])",
"format": "table",
"instant": true,
"legendFormat": "__auto",
"range": false,
"refId": "A",
"datasource": {
"type": "prometheus",
"uid": "${DS_LOCAL}"
}
}
],
"title": "Available update",
"type": "stat"
},
{
"datasource": {
"type": "prometheus",
"uid": "${DS_LOCAL}"
},
"fieldConfig": {
"defaults": {
"color": {
"mode": "thresholds"
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": 0
},
{
"color": "red",
"value": 80
}
]
}
},
"overrides": []
},
"gridPos": {
"h": 4,
"w": 4,
"x": 8,
"y": 1
},
"id": 11,
"options": {
"colorMode": "value",
"graphMode": "area",
"justifyMode": "auto",
"orientation": "auto",
"percentChangeColorMode": "standard",
"reduceOptions": {
"calcs": [
"lastNotNull"
],
"fields": "/^version$/",
"values": false
},
"showPercentChange": false,
"textMode": "auto",
"wideLayout": true
},
"pluginVersion": "12.3.0",
"targets": [
{
"editorMode": "code",
"exemplar": false,
"expr": "last_over_time(friendica_php_info{instance=\"$instance\"}[1d])",
"format": "table",
"instant": true,
"legendFormat": "__auto",
"range": false,
"refId": "A",
"datasource": {
"type": "prometheus",
"uid": "${DS_LOCAL}"
}
}
],
"title": "PHP version",
"type": "stat"
},
{
"datasource": {
"type": "prometheus",
"uid": "${DS_LOCAL}"
},
"fieldConfig": {
"defaults": {
"color": {
"mode": "thresholds"
},
"mappings": [
{
"options": {
"0": {
"index": 0,
"text": "failed"
},
"1": {
"index": 1,
"text": "OK"
}
},
"type": "value"
}
],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "red",
"value": 0
},
{
"color": "green",
"value": 1
}
]
}
},
"overrides": []
},
"gridPos": {
"h": 4,
"w": 4,
"x": 12,
"y": 1
},
"id": 12,
"options": {
"colorMode": "value",
"graphMode": "area",
"justifyMode": "auto",
"orientation": "auto",
"percentChangeColorMode": "standard",
"reduceOptions": {
"calcs": [
"lastNotNull"
],
"fields": "/^Value$/",
"values": false
},
"showPercentChange": false,
"textMode": "auto",
"wideLayout": true
},
"pluginVersion": "12.3.0",
"targets": [
{
"editorMode": "code",
"exemplar": false,
"expr": "last_over_time(friendica_update_db_status{instance=\"$instance\"}[1d])",
"format": "table",
"instant": true,
"legendFormat": "__auto",
"range": false,
"refId": "A",
"datasource": {
"type": "prometheus",
"uid": "${DS_LOCAL}"
}
}
],
"title": "DB update",
"type": "stat"
},
{
"datasource": {
"type": "prometheus",
"uid": "${DS_LOCAL}"
},
"fieldConfig": {
"defaults": {
"color": {
"mode": "thresholds"
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": 0
},
{
"color": "red",
"value": 700
}
]
},
"unit": "s"
},
"overrides": []
},
"gridPos": {
"h": 4,
"w": 4,
"x": 16,
"y": 1
},
"id": 13,
"options": {
"colorMode": "value",
"graphMode": "area",
"justifyMode": "auto",
"orientation": "auto",
"percentChangeColorMode": "standard",
"reduceOptions": {
"calcs": [
"lastNotNull"
],
"fields": "/^Value$/",
"values": false
},
"showPercentChange": false,
"textMode": "auto",
"wideLayout": true
},
"pluginVersion": "12.3.0",
"targets": [
{
"editorMode": "code",
"exemplar": false,
"expr": "time()-last_over_time(max(friendica_cron_last_execution{instance=\"$instance\"}[1d]))",
"format": "table",
"instant": true,
"legendFormat": "__auto",
"range": false,
"refId": "A",
"datasource": {
"type": "prometheus",
"uid": "${DS_LOCAL}"
}
}
],
"title": "Last cron",
"type": "stat"
},
{
"collapsed": false,
"gridPos": {
"h": 1,
"w": 24,
"x": 0,
"y": 5
},
"id": 16,
"panels": [],
"title": "Posts",
"type": "row"
},
{
"datasource": {
"type": "prometheus",
"uid": "${DS_LOCAL}"
},
"fieldConfig": {
"defaults": {
"color": {
"mode": "palette-classic"
},
"custom": {
"axisBorderShow": false,
"axisCenteredZero": false,
"axisColorMode": "text",
"axisLabel": "",
"axisPlacement": "auto",
"barAlignment": 0,
"barWidthFactor": 0.6,
"drawStyle": "line",
"fillOpacity": 0,
"gradientMode": "none",
"hideFrom": {
"legend": false,
"tooltip": false,
"viz": false
},
"insertNulls": false,
"lineInterpolation": "linear",
"lineWidth": 1,
"pointSize": 5,
"scaleDistribution": {
"type": "linear"
},
"showPoints": "auto",
"showValues": false,
"spanNulls": false,
"stacking": {
"group": "A",
"mode": "none"
},
"thresholdsStyle": {
"mode": "off"
}
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": 0
}
]
},
"unit": "pps"
},
"overrides": []
},
"gridPos": {
"h": 8,
"w": 12,
"x": 0,
"y": 6
},
"id": 14,
"options": {
"legend": {
"calcs": [],
"displayMode": "table",
"placement": "right",
"showLegend": true
},
"tooltip": {
"hideZeros": false,
"mode": "multi",
"sort": "desc"
}
},
"pluginVersion": "12.3.0",
"targets": [
{
"editorMode": "code",
"expr": "rate(friendica_posts_inbound{instance=\"$instance\"})",
"interval": "",
"legendFormat": "{{type}}",
"range": true,
"refId": "A",
"datasource": {
"type": "prometheus",
"uid": "${DS_LOCAL}"
}
}
],
"title": "Inbound",
"type": "timeseries"
},
{
"datasource": {
"type": "prometheus",
"uid": "${DS_LOCAL}"
},
"fieldConfig": {
"defaults": {
"color": {
"mode": "palette-classic"
},
"custom": {
"axisBorderShow": false,
"axisCenteredZero": false,
"axisColorMode": "text",
"axisLabel": "",
"axisPlacement": "auto",
"barAlignment": 0,
"barWidthFactor": 0.6,
"drawStyle": "line",
"fillOpacity": 0,
"gradientMode": "none",
"hideFrom": {
"legend": false,
"tooltip": false,
"viz": false
},
"insertNulls": false,
"lineInterpolation": "linear",
"lineWidth": 1,
"pointSize": 5,
"scaleDistribution": {
"type": "linear"
},
"showPoints": "auto",
"showValues": false,
"spanNulls": false,
"stacking": {
"group": "A",
"mode": "none"
},
"thresholdsStyle": {
"mode": "off"
}
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": 0
}
]
},
"unit": "pps"
},
"overrides": []
},
"gridPos": {
"h": 8,
"w": 12,
"x": 12,
"y": 6
},
"id": 15,
"options": {
"legend": {
"calcs": [],
"displayMode": "table",
"placement": "right",
"showLegend": true
},
"tooltip": {
"hideZeros": false,
"mode": "multi",
"sort": "desc"
}
},
"pluginVersion": "12.3.0",
"targets": [
{
"editorMode": "code",
"expr": "rate(friendica_posts_outbound{instance=\"$instance\"})",
"interval": "",
"legendFormat": "{{type}}",
"range": true,
"refId": "A",
"datasource": {
"type": "prometheus",
"uid": "${DS_LOCAL}"
}
}
],
"title": "Outbound",
"type": "timeseries"
},
{
"collapsed": false,
"gridPos": {
"h": 1,
"w": 24,
"x": 0,
"y": 14
},
"id": 9,
"panels": [],
"title": "Packets",
"type": "row"
},
{
"datasource": {
"type": "prometheus",
"uid": "${DS_LOCAL}"
},
"fieldConfig": {
"defaults": {
"color": {
"mode": "palette-classic"
},
"custom": {
"axisBorderShow": false,
"axisCenteredZero": false,
"axisColorMode": "text",
"axisLabel": "",
"axisPlacement": "auto",
"barAlignment": 0,
"barWidthFactor": 0.6,
"drawStyle": "line",
"fillOpacity": 0,
"gradientMode": "none",
"hideFrom": {
"legend": false,
"tooltip": false,
"viz": false
},
"insertNulls": false,
"lineInterpolation": "linear",
"lineWidth": 1,
"pointSize": 5,
"scaleDistribution": {
"type": "linear"
},
"showPoints": "auto",
"showValues": false,
"spanNulls": false,
"stacking": {
"group": "A",
"mode": "none"
},
"thresholdsStyle": {
"mode": "off"
}
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": 0
}
]
},
"unit": "pps"
},
"overrides": []
},
"gridPos": {
"h": 8,
"w": 12,
"x": 0,
"y": 15
},
"id": 7,
"options": {
"legend": {
"calcs": [],
"displayMode": "table",
"placement": "right",
"showLegend": true
},
"tooltip": {
"hideZeros": false,
"mode": "multi",
"sort": "desc"
}
},
"pluginVersion": "12.3.0",
"targets": [
{
"editorMode": "code",
"expr": "rate(friendica_packets_inbound{instance=\"$instance\"})",
"interval": "",
"legendFormat": "{{protocol}}",
"range": true,
"refId": "A",
"datasource": {
"type": "prometheus",
"uid": "${DS_LOCAL}"
}
}
],
"title": "Inbound",
"type": "timeseries"
},
{
"datasource": {
"type": "prometheus",
"uid": "${DS_LOCAL}"
},
"fieldConfig": {
"defaults": {
"color": {
"mode": "palette-classic"
},
"custom": {
"axisBorderShow": false,
"axisCenteredZero": false,
"axisColorMode": "text",
"axisLabel": "",
"axisPlacement": "auto",
"barAlignment": 0,
"barWidthFactor": 0.6,
"drawStyle": "line",
"fillOpacity": 0,
"gradientMode": "none",
"hideFrom": {
"legend": false,
"tooltip": false,
"viz": false
},
"insertNulls": false,
"lineInterpolation": "linear",
"lineWidth": 1,
"pointSize": 5,
"scaleDistribution": {
"type": "linear"
},
"showPoints": "auto",
"showValues": false,
"spanNulls": false,
"stacking": {
"group": "A",
"mode": "none"
},
"thresholdsStyle": {
"mode": "off"
}
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": 0
}
]
},
"unit": "pps"
},
"overrides": []
},
"gridPos": {
"h": 8,
"w": 12,
"x": 12,
"y": 15
},
"id": 8,
"options": {
"legend": {
"calcs": [],
"displayMode": "table",
"placement": "right",
"showLegend": true
},
"tooltip": {
"hideZeros": false,
"mode": "multi",
"sort": "desc"
}
},
"pluginVersion": "12.3.0",
"targets": [
{
"editorMode": "code",
"expr": "rate(friendica_packets_outbound{instance=\"$instance\"})",
"interval": "",
"legendFormat": "{{protocol}}",
"range": true,
"refId": "A",
"datasource": {
"type": "prometheus",
"uid": "${DS_LOCAL}"
}
}
],
"title": "Outbound",
"type": "timeseries"
},
{
"collapsed": false,
"gridPos": {
"h": 1,
"w": 24,
"x": 0,
"y": 23
},
"id": 6,
"panels": [],
"title": "Worker",
"type": "row"
},
{
"datasource": {
"type": "prometheus",
@ -912,7 +113,6 @@
"type": "linear"
},
"showPoints": "never",
"showValues": false,
"spanNulls": false,
"stacking": {
"group": "A",
@ -928,7 +128,7 @@
"steps": [
{
"color": "green",
"value": 0
"value": null
},
{
"color": "red",
@ -943,7 +143,7 @@
"h": 8,
"w": 12,
"x": 0,
"y": 24
"y": 0
},
"id": 3,
"options": {
@ -954,23 +154,18 @@
"showLegend": true
},
"tooltip": {
"hideZeros": false,
"mode": "single",
"sort": "none"
}
},
"pluginVersion": "12.3.0",
"pluginVersion": "11.3.0",
"targets": [
{
"editorMode": "code",
"expr": "friendica_worker_jpm{instance=\"$instance\"}",
"legendFormat": "{{frequency}}",
"range": true,
"refId": "A",
"datasource": {
"type": "prometheus",
"uid": "${DS_LOCAL}"
}
"refId": "A"
}
],
"title": "Jobs per Minute",
@ -1010,7 +205,6 @@
"type": "linear"
},
"showPoints": "never",
"showValues": false,
"spanNulls": false,
"stacking": {
"group": "A",
@ -1026,7 +220,7 @@
"steps": [
{
"color": "green",
"value": 0
"value": null
},
{
"color": "red",
@ -1042,7 +236,7 @@
"h": 8,
"w": 12,
"x": 12,
"y": 24
"y": 0
},
"id": 2,
"options": {
@ -1053,12 +247,11 @@
"showLegend": true
},
"tooltip": {
"hideZeros": false,
"mode": "single",
"sort": "none"
}
},
"pluginVersion": "12.3.0",
"pluginVersion": "11.3.0",
"targets": [
{
"datasource": {
@ -1109,7 +302,6 @@
"type": "linear"
},
"showPoints": "never",
"showValues": false,
"spanNulls": false,
"stacking": {
"group": "A",
@ -1125,7 +317,7 @@
"steps": [
{
"color": "green",
"value": 0
"value": null
},
{
"color": "red",
@ -1141,7 +333,7 @@
"h": 8,
"w": 12,
"x": 0,
"y": 32
"y": 8
},
"id": 1,
"options": {
@ -1152,12 +344,11 @@
"showLegend": true
},
"tooltip": {
"hideZeros": false,
"mode": "single",
"sort": "none"
}
},
"pluginVersion": "12.3.0",
"pluginVersion": "11.3.0",
"targets": [
{
"datasource": {
@ -1176,14 +367,17 @@
}
],
"preload": false,
"schemaVersion": 42,
"schemaVersion": 40,
"tags": [
"friendica"
],
"templating": {
"list": [
{
"current": {},
"current": {
"text": "Prometheus",
"value": "prometheus"
},
"label": "Datasource",
"name": "DS_LOCAL",
"options": [],
@ -1193,7 +387,10 @@
"type": "datasource"
},
{
"current": {},
"current": {
"text": "opensocial-friendica-exporter:9205",
"value": "opensocial-friendica-exporter:9205"
},
"datasource": {
"type": "prometheus",
"uid": "${DS_LOCAL}"
@ -1221,6 +418,6 @@
"timezone": "browser",
"title": "Friendica Statistics",
"uid": "ce1viveblgbnkb",
"version": 12,
"version": 10,
"weekStart": ""
}