Stanzas count custom metrics used in dashboard

pull/1879/head
24kushang 3 months ago
parent e888b8c3b3
commit 50457c15c1
  1. 138
      log-analyser/grafana-provisioning/dashboards/Prosody-Dashboard.json

@ -18,7 +18,7 @@
"editable": true, "editable": true,
"fiscalYearStartMonth": 0, "fiscalYearStartMonth": 0,
"graphTooltip": 0, "graphTooltip": 0,
"id": 18, "id": 20,
"links": [], "links": [],
"liveNow": false, "liveNow": false,
"panels": [ "panels": [
@ -512,7 +512,10 @@
"type": "timeseries" "type": "timeseries"
}, },
{ {
"datasource": {}, "datasource": {
"type": "prometheus",
"uid": "bbb38190-2464-44ea-8080-f9ca9e3dcd61"
},
"fieldConfig": { "fieldConfig": {
"defaults": { "defaults": {
"color": { "color": {
@ -573,6 +576,98 @@
"x": 12, "x": 12,
"y": 18 "y": 18
}, },
"id": 21,
"options": {
"legend": {
"calcs": [],
"displayMode": "list",
"placement": "bottom",
"showLegend": true
},
"tooltip": {
"mode": "single",
"sort": "none"
}
},
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "bbb38190-2464-44ea-8080-f9ca9e3dcd61"
},
"editorMode": "code",
"expr": "sum(prosody_mod_measure_stanza_counts__received_total)by(stanza_kind)",
"instant": false,
"legendFormat": "__auto",
"range": true,
"refId": "A"
}
],
"title": "Stanza Counts",
"type": "timeseries"
},
{
"datasource": {},
"fieldConfig": {
"defaults": {
"color": {
"mode": "palette-classic"
},
"custom": {
"axisBorderShow": false,
"axisCenteredZero": false,
"axisColorMode": "text",
"axisLabel": "",
"axisPlacement": "auto",
"barAlignment": 0,
"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",
"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": 8,
"w": 12,
"x": 0,
"y": 26
},
"id": 9, "id": 9,
"options": { "options": {
"legend": { "legend": {
@ -609,7 +704,7 @@
"h": 1, "h": 1,
"w": 24, "w": 24,
"x": 0, "x": 0,
"y": 26 "y": 34
}, },
"id": 13, "id": 13,
"panels": [], "panels": [],
@ -676,7 +771,7 @@
"h": 8, "h": 8,
"w": 12, "w": 12,
"x": 0, "x": 0,
"y": 27 "y": 35
}, },
"id": 12, "id": 12,
"options": { "options": {
@ -786,7 +881,7 @@
"h": 8, "h": 8,
"w": 12, "w": 12,
"x": 12, "x": 12,
"y": 27 "y": 35
}, },
"id": 11, "id": 11,
"options": { "options": {
@ -822,7 +917,7 @@
"h": 1, "h": 1,
"w": 24, "w": 24,
"x": 0, "x": 0,
"y": 35 "y": 43
}, },
"id": 16, "id": 16,
"panels": [], "panels": [],
@ -876,8 +971,7 @@
"mode": "absolute", "mode": "absolute",
"steps": [ "steps": [
{ {
"color": "green", "color": "green"
"value": null
}, },
{ {
"color": "red", "color": "red",
@ -892,7 +986,7 @@
"h": 8, "h": 8,
"w": 12, "w": 12,
"x": 0, "x": 0,
"y": 36 "y": 44
}, },
"id": 15, "id": 15,
"options": { "options": {
@ -936,8 +1030,7 @@
"mode": "percentage", "mode": "percentage",
"steps": [ "steps": [
{ {
"color": "green", "color": "green"
"value": null
}, },
{ {
"color": "orange", "color": "orange",
@ -956,7 +1049,7 @@
"h": 8, "h": 8,
"w": 12, "w": 12,
"x": 12, "x": 12,
"y": 36 "y": 44
}, },
"id": 14, "id": 14,
"options": { "options": {
@ -1038,8 +1131,7 @@
"mode": "absolute", "mode": "absolute",
"steps": [ "steps": [
{ {
"color": "green", "color": "green"
"value": null
}, },
{ {
"color": "red", "color": "red",
@ -1054,7 +1146,7 @@
"h": 8, "h": 8,
"w": 12, "w": 12,
"x": 0, "x": 0,
"y": 44 "y": 52
}, },
"id": 20, "id": 20,
"options": { "options": {
@ -1092,7 +1184,7 @@
"h": 1, "h": 1,
"w": 24, "w": 24,
"x": 0, "x": 0,
"y": 52 "y": 60
}, },
"id": 19, "id": 19,
"panels": [], "panels": [],
@ -1143,8 +1235,7 @@
"mode": "absolute", "mode": "absolute",
"steps": [ "steps": [
{ {
"color": "green", "color": "green"
"value": null
}, },
{ {
"color": "red", "color": "red",
@ -1159,7 +1250,7 @@
"h": 8, "h": 8,
"w": 12, "w": 12,
"x": 0, "x": 0,
"y": 53 "y": 61
}, },
"id": 17, "id": 17,
"options": { "options": {
@ -1235,8 +1326,7 @@
"mode": "absolute", "mode": "absolute",
"steps": [ "steps": [
{ {
"color": "green", "color": "green"
"value": null
}, },
{ {
"color": "red", "color": "red",
@ -1251,7 +1341,7 @@
"h": 8, "h": 8,
"w": 12, "w": 12,
"x": 12, "x": 12,
"y": 53 "y": 61
}, },
"id": 18, "id": 18,
"options": { "options": {
@ -1284,7 +1374,7 @@
"type": "timeseries" "type": "timeseries"
} }
], ],
"refresh": "auto", "refresh": "5s",
"schemaVersion": 38, "schemaVersion": 38,
"tags": [], "tags": [],
"templating": { "templating": {
@ -1298,6 +1388,6 @@
"timezone": "", "timezone": "",
"title": "Prosody Dashboard", "title": "Prosody Dashboard",
"uid": "c8b1b5f8-6b45-4fa7-92b2-01cc164e2f94asdf", "uid": "c8b1b5f8-6b45-4fa7-92b2-01cc164e2f94asdf",
"version": 3, "version": 1,
"weekStart": "" "weekStart": ""
} }
Loading…
Cancel
Save