nwaku-monitorin.json: add new panel to show the number of stored messages

Notice that this panel doesn't show the number of messages in real-time.
Instead, it shows the 'waku_archive_messages' nim-waku metric which is
updated every minute.
This commit is contained in:
Ivan Folgueira Bande 2023-12-28 18:50:15 +01:00
parent 7d9bcac50b
commit 171d222858
No known key found for this signature in database
GPG Key ID: 3C117481F89E24A7
1 changed files with 297 additions and 106 deletions

View File

@ -28,13 +28,90 @@
"links": [],
"liveNow": false,
"panels": [
{
"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": 0
},
"id": 139,
"options": {
"legend": {
"calcs": [],
"displayMode": "list",
"placement": "bottom",
"showLegend": true
},
"tooltip": {
"mode": "single",
"sort": "none"
}
},
"title": "Panel Title",
"type": "timeseries"
},
{
"collapsed": false,
"gridPos": {
"h": 1,
"w": 24,
"x": 0,
"y": 0
"y": 8
},
"id": 45,
"panels": [],
@ -69,7 +146,7 @@
"h": 8,
"w": 9,
"x": 0,
"y": 1
"y": 9
},
"id": 41,
"options": {
@ -86,7 +163,7 @@
"showUnfilled": true,
"valueMode": "color"
},
"pluginVersion": "10.2.0",
"pluginVersion": "10.2.2",
"targets": [
{
"datasource": {
@ -138,7 +215,7 @@
"h": 4,
"w": 9,
"x": 9,
"y": 1
"y": 9
},
"id": 38,
"options": {
@ -153,9 +230,10 @@
"fields": "",
"values": false
},
"textMode": "auto"
"textMode": "auto",
"wideLayout": true
},
"pluginVersion": "10.2.0",
"pluginVersion": "10.2.2",
"targets": [
{
"datasource": {
@ -200,7 +278,7 @@
"h": 4,
"w": 5,
"x": 9,
"y": 5
"y": 13
},
"id": 42,
"options": {
@ -215,9 +293,10 @@
"fields": "",
"values": false
},
"textMode": "auto"
"textMode": "auto",
"wideLayout": true
},
"pluginVersion": "10.2.0",
"pluginVersion": "10.2.2",
"targets": [
{
"datasource": {
@ -266,7 +345,7 @@
"h": 4,
"w": 4,
"x": 14,
"y": 5
"y": 13
},
"id": 39,
"options": {
@ -281,9 +360,10 @@
"fields": "",
"values": false
},
"textMode": "auto"
"textMode": "auto",
"wideLayout": true
},
"pluginVersion": "10.2.0",
"pluginVersion": "10.2.2",
"targets": [
{
"datasource": {
@ -363,7 +443,7 @@
"h": 7,
"w": 9,
"x": 0,
"y": 9
"y": 17
},
"id": 12,
"options": {
@ -454,7 +534,7 @@
"h": 7,
"w": 9,
"x": 9,
"y": 9
"y": 17
},
"id": 43,
"options": {
@ -527,7 +607,7 @@
"h": 5,
"w": 3,
"x": 0,
"y": 16
"y": 24
},
"id": 2,
"options": {
@ -542,7 +622,7 @@
},
"showHeader": true
},
"pluginVersion": "10.2.0",
"pluginVersion": "10.2.2",
"targets": [
{
"datasource": {
@ -605,7 +685,7 @@
"h": 5,
"w": 3,
"x": 3,
"y": 16
"y": 24
},
"id": 22,
"options": {
@ -620,9 +700,10 @@
"fields": "",
"values": false
},
"textMode": "auto"
"textMode": "auto",
"wideLayout": true
},
"pluginVersion": "10.2.0",
"pluginVersion": "10.2.2",
"targets": [
{
"datasource": {
@ -682,7 +763,7 @@
"h": 5,
"w": 3,
"x": 6,
"y": 16
"y": 24
},
"id": 32,
"options": {
@ -697,9 +778,10 @@
"fields": "",
"values": false
},
"textMode": "auto"
"textMode": "auto",
"wideLayout": true
},
"pluginVersion": "10.2.0",
"pluginVersion": "10.2.2",
"targets": [
{
"datasource": {
@ -747,7 +829,7 @@
"h": 5,
"w": 3,
"x": 9,
"y": 16
"y": 24
},
"id": 33,
"options": {
@ -762,9 +844,10 @@
"fields": "",
"values": false
},
"textMode": "auto"
"textMode": "auto",
"wideLayout": true
},
"pluginVersion": "10.2.0",
"pluginVersion": "10.2.2",
"targets": [
{
"datasource": {
@ -825,7 +908,7 @@
"h": 5,
"w": 3,
"x": 12,
"y": 16
"y": 24
},
"id": 25,
"options": {
@ -840,9 +923,10 @@
"fields": "",
"values": false
},
"textMode": "auto"
"textMode": "auto",
"wideLayout": true
},
"pluginVersion": "10.2.0",
"pluginVersion": "10.2.2",
"targets": [
{
"datasource": {
@ -890,7 +974,7 @@
"h": 5,
"w": 3,
"x": 15,
"y": 16
"y": 24
},
"id": 28,
"options": {
@ -905,9 +989,10 @@
"fields": "",
"values": false
},
"textMode": "auto"
"textMode": "auto",
"wideLayout": true
},
"pluginVersion": "10.2.0",
"pluginVersion": "10.2.2",
"targets": [
{
"datasource": {
@ -952,7 +1037,7 @@
"h": 5,
"w": 3,
"x": 0,
"y": 21
"y": 29
},
"id": 10,
"options": {
@ -967,9 +1052,10 @@
"fields": "",
"values": false
},
"textMode": "auto"
"textMode": "auto",
"wideLayout": true
},
"pluginVersion": "10.2.0",
"pluginVersion": "10.2.2",
"targets": [
{
"datasource": {
@ -1017,7 +1103,7 @@
"h": 10,
"w": 15,
"x": 3,
"y": 21
"y": 29
},
"id": 44,
"options": {
@ -1032,9 +1118,10 @@
"fields": "",
"values": false
},
"textMode": "auto"
"textMode": "auto",
"wideLayout": true
},
"pluginVersion": "10.2.0",
"pluginVersion": "10.2.2",
"targets": [
{
"datasource": {
@ -1079,7 +1166,7 @@
"h": 5,
"w": 3,
"x": 0,
"y": 26
"y": 34
},
"id": 36,
"options": {
@ -1094,9 +1181,10 @@
"fields": "",
"values": false
},
"textMode": "auto"
"textMode": "auto",
"wideLayout": true
},
"pluginVersion": "10.2.0",
"pluginVersion": "10.2.2",
"targets": [
{
"datasource": {
@ -1176,7 +1264,7 @@
"h": 9,
"w": 6,
"x": 0,
"y": 31
"y": 39
},
"id": 4,
"options": {
@ -1272,7 +1360,7 @@
"h": 9,
"w": 6,
"x": 6,
"y": 31
"y": 39
},
"id": 8,
"options": {
@ -1367,7 +1455,7 @@
"h": 9,
"w": 6,
"x": 12,
"y": 31
"y": 39
},
"id": 29,
"options": {
@ -1462,7 +1550,7 @@
"h": 8,
"w": 6,
"x": 0,
"y": 40
"y": 48
},
"id": 20,
"options": {
@ -1557,7 +1645,7 @@
"h": 8,
"w": 6,
"x": 6,
"y": 40
"y": 48
},
"id": 18,
"options": {
@ -1652,7 +1740,7 @@
"h": 8,
"w": 6,
"x": 12,
"y": 40
"y": 48
},
"id": 128,
"options": {
@ -1751,7 +1839,7 @@
"h": 6,
"w": 6,
"x": 0,
"y": 48
"y": 56
},
"id": 127,
"options": {
@ -1850,7 +1938,7 @@
"h": 6,
"w": 6,
"x": 6,
"y": 48
"y": 56
},
"id": 126,
"options": {
@ -1949,7 +2037,7 @@
"h": 6,
"w": 6,
"x": 12,
"y": 48
"y": 56
},
"id": 135,
"options": {
@ -2048,7 +2136,7 @@
"h": 6,
"w": 6,
"x": 0,
"y": 54
"y": 62
},
"id": 134,
"options": {
@ -2147,7 +2235,7 @@
"h": 6,
"w": 6,
"x": 6,
"y": 54
"y": 62
},
"id": 137,
"options": {
@ -2246,7 +2334,7 @@
"h": 6,
"w": 6,
"x": 12,
"y": 54
"y": 62
},
"id": 136,
"options": {
@ -2345,7 +2433,7 @@
"h": 6,
"w": 6,
"x": 0,
"y": 60
"y": 68
},
"id": 133,
"options": {
@ -2444,7 +2532,7 @@
"h": 6,
"w": 6,
"x": 6,
"y": 60
"y": 68
},
"id": 130,
"options": {
@ -2543,7 +2631,7 @@
"h": 6,
"w": 6,
"x": 12,
"y": 60
"y": 68
},
"id": 138,
"options": {
@ -2579,13 +2667,108 @@
"title": "RLN Invalid Messages",
"type": "timeseries"
},
{
"datasource": {
"type": "prometheus",
"uid": "PBFA97CFB590B2093"
},
"description": "Shows the evolution of the number of messages (number of rows) in the \"messages\" table.\n\nNotice that the data is not shown in real-time. The figure is updated every minute.\n\nSee the following for more details on how this metric is obtained: https://github.com/waku-org/nwaku/blob/07beea02095035f4f4c234ec2dec1f365e6955b8/waku/waku_archive/archive.nim#L235",
"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": 7,
"w": 9,
"x": 0,
"y": 74
},
"id": 140,
"options": {
"legend": {
"calcs": [],
"displayMode": "list",
"placement": "bottom",
"showLegend": true
},
"tooltip": {
"mode": "single",
"sort": "none"
}
},
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "PBFA97CFB590B2093"
},
"editorMode": "code",
"expr": "waku_archive_messages{instance=\"nwaku:8003\"}",
"legendFormat": "{{instance}}",
"range": true,
"refId": "A"
}
],
"title": "# archived messages (updated every minute)",
"type": "timeseries"
},
{
"collapsed": false,
"gridPos": {
"h": 1,
"w": 24,
"x": 0,
"y": 66
"y": 81
},
"id": 46,
"panels": [],
@ -2624,7 +2807,7 @@
"h": 3,
"w": 4,
"x": 0,
"y": 67
"y": 82
},
"id": 11,
"links": [],
@ -2653,9 +2836,10 @@
"fields": "",
"values": false
},
"textMode": "auto"
"textMode": "auto",
"wideLayout": true
},
"pluginVersion": "10.2.0",
"pluginVersion": "10.2.2",
"postfix": "",
"postfixFontSize": "50%",
"prefix": "",
@ -2735,7 +2919,7 @@
"h": 3,
"w": 4,
"x": 4,
"y": 67
"y": 82
},
"id": 84,
"links": [],
@ -2764,9 +2948,10 @@
"fields": "",
"values": false
},
"textMode": "auto"
"textMode": "auto",
"wideLayout": true
},
"pluginVersion": "10.2.0",
"pluginVersion": "10.2.2",
"postfix": "",
"postfixFontSize": "50%",
"prefix": "",
@ -2847,7 +3032,7 @@
"h": 3,
"w": 4,
"x": 8,
"y": 67
"y": 82
},
"id": 23,
"links": [],
@ -2876,9 +3061,10 @@
"fields": "",
"values": false
},
"textMode": "auto"
"textMode": "auto",
"wideLayout": true
},
"pluginVersion": "10.2.0",
"pluginVersion": "10.2.2",
"postfix": "",
"postfixFontSize": "50%",
"prefix": "",
@ -2958,7 +3144,7 @@
"h": 6,
"w": 4,
"x": 12,
"y": 67
"y": 82
},
"id": 16,
"links": [],
@ -2976,7 +3162,7 @@
"showThresholdLabels": false,
"showThresholdMarkers": true
},
"pluginVersion": "10.2.0",
"pluginVersion": "10.2.2",
"targets": [
{
"expr": "sum(pg_stat_database_blks_hit{instance=~\"$Instance\"})/(sum(pg_stat_database_blks_hit{instance=~\"$Instance\"})+sum(pg_stat_database_blks_read{instance=~\"$Instance\"}))*100",
@ -3028,7 +3214,7 @@
"h": 6,
"w": 4,
"x": 16,
"y": 67
"y": 82
},
"id": 9,
"links": [],
@ -3046,7 +3232,7 @@
"showThresholdLabels": false,
"showThresholdMarkers": true
},
"pluginVersion": "10.2.0",
"pluginVersion": "10.2.2",
"targets": [
{
"expr": "sum(pg_stat_database_numbackends)/max(pg_settings_max_connections)",
@ -3098,7 +3284,7 @@
"h": 6,
"w": 4,
"x": 20,
"y": 67
"y": 82
},
"id": 15,
"links": [],
@ -3116,7 +3302,7 @@
"showThresholdLabels": false,
"showThresholdMarkers": true
},
"pluginVersion": "10.2.0",
"pluginVersion": "10.2.2",
"targets": [
{
"expr": "sum(pg_stat_database_xact_commit{instance=\"$Instance\"})/(sum(pg_stat_database_xact_commit{instance=\"$Instance\"}) + sum(pg_stat_database_xact_rollback{instance=\"$Instance\"}))",
@ -3165,7 +3351,7 @@
"h": 3,
"w": 4,
"x": 0,
"y": 70
"y": 85
},
"id": 37,
"links": [],
@ -3194,9 +3380,10 @@
"fields": "",
"values": false
},
"textMode": "auto"
"textMode": "auto",
"wideLayout": true
},
"pluginVersion": "10.2.0",
"pluginVersion": "10.2.2",
"postfix": "",
"postfixFontSize": "50%",
"prefix": "",
@ -3275,7 +3462,7 @@
"h": 3,
"w": 4,
"x": 4,
"y": 70
"y": 85
},
"id": 14,
"interval": "",
@ -3305,9 +3492,10 @@
"fields": "",
"values": false
},
"textMode": "auto"
"textMode": "auto",
"wideLayout": true
},
"pluginVersion": "10.2.0",
"pluginVersion": "10.2.2",
"postfix": "",
"postfixFontSize": "50%",
"prefix": "",
@ -3388,7 +3576,7 @@
"h": 3,
"w": 4,
"x": 8,
"y": 70
"y": 85
},
"id": 93,
"links": [],
@ -3417,9 +3605,10 @@
"fields": "",
"values": false
},
"textMode": "auto"
"textMode": "auto",
"wideLayout": true
},
"pluginVersion": "10.2.0",
"pluginVersion": "10.2.2",
"postfix": "",
"postfixFontSize": "50%",
"prefix": "",
@ -3487,7 +3676,7 @@
"h": 5,
"w": 3,
"x": 0,
"y": 73
"y": 88
},
"id": 125,
"options": {
@ -3502,9 +3691,10 @@
"fields": "",
"values": false
},
"textMode": "auto"
"textMode": "auto",
"wideLayout": true
},
"pluginVersion": "10.2.0",
"pluginVersion": "10.2.2",
"targets": [
{
"datasource": {
@ -3562,7 +3752,7 @@
"h": 3,
"w": 4,
"x": 8,
"y": 73
"y": 88
},
"id": 102,
"links": [],
@ -3591,9 +3781,10 @@
"fields": "",
"values": false
},
"textMode": "auto"
"textMode": "auto",
"wideLayout": true
},
"pluginVersion": "10.2.0",
"pluginVersion": "10.2.2",
"postfix": "",
"postfixFontSize": "50%",
"prefix": "",
@ -3653,7 +3844,7 @@
"h": 9,
"w": 12,
"x": 12,
"y": 73
"y": 88
},
"hiddenSeries": false,
"id": 121,
@ -3685,7 +3876,7 @@
"alertThreshold": true
},
"percentage": false,
"pluginVersion": "10.2.0",
"pluginVersion": "10.2.2",
"pointradius": 2,
"points": false,
"renderer": "flot",
@ -3752,7 +3943,7 @@
"h": 9,
"w": 12,
"x": 0,
"y": 78
"y": 93
},
"hiddenSeries": false,
"id": 24,
@ -3784,7 +3975,7 @@
"alertThreshold": true
},
"percentage": false,
"pluginVersion": "10.2.0",
"pluginVersion": "10.2.2",
"pointradius": 2,
"points": false,
"renderer": "flot",
@ -3850,7 +4041,7 @@
"h": 9,
"w": 12,
"x": 12,
"y": 82
"y": 97
},
"hiddenSeries": false,
"id": 27,
@ -3872,7 +4063,7 @@
"alertThreshold": true
},
"percentage": false,
"pluginVersion": "10.2.0",
"pluginVersion": "10.2.2",
"pointradius": 2,
"points": false,
"renderer": "flot",
@ -3952,7 +4143,7 @@
"h": 9,
"w": 12,
"x": 0,
"y": 87
"y": 102
},
"hiddenSeries": false,
"id": 122,
@ -3977,7 +4168,7 @@
"alertThreshold": true
},
"percentage": false,
"pluginVersion": "10.2.0",
"pluginVersion": "10.2.2",
"pointradius": 2,
"points": false,
"renderer": "flot",
@ -4049,7 +4240,7 @@
"h": 9,
"w": 12,
"x": 12,
"y": 91
"y": 106
},
"hiddenSeries": false,
"id": 111,
@ -4071,7 +4262,7 @@
"alertThreshold": true
},
"percentage": false,
"pluginVersion": "10.2.0",
"pluginVersion": "10.2.2",
"pointradius": 2,
"points": false,
"renderer": "flot",
@ -4144,7 +4335,7 @@
"h": 9,
"w": 12,
"x": 0,
"y": 96
"y": 111
},
"hiddenSeries": false,
"id": 26,
@ -4165,7 +4356,7 @@
"alertThreshold": true
},
"percentage": false,
"pluginVersion": "10.2.0",
"pluginVersion": "10.2.2",
"pointradius": 2,
"points": false,
"renderer": "flot",
@ -4238,7 +4429,7 @@
"h": 5,
"w": 12,
"x": 12,
"y": 100
"y": 115
},
"hiddenSeries": false,
"id": 30,
@ -4267,7 +4458,7 @@
"alertThreshold": true
},
"percentage": false,
"pluginVersion": "10.2.0",
"pluginVersion": "10.2.2",
"pointradius": 2,
"points": false,
"renderer": "flot",
@ -4334,7 +4525,7 @@
"h": 10,
"w": 12,
"x": 0,
"y": 105
"y": 120
},
"hiddenSeries": false,
"id": 123,
@ -4361,7 +4552,7 @@
"alertThreshold": true
},
"percentage": false,
"pluginVersion": "10.2.0",
"pluginVersion": "10.2.2",
"pointradius": 2,
"points": false,
"renderer": "flot",
@ -4425,7 +4616,7 @@
"h": 5,
"w": 12,
"x": 12,
"y": 105
"y": 120
},
"hiddenSeries": false,
"id": 31,
@ -4454,7 +4645,7 @@
"alertThreshold": true
},
"percentage": false,
"pluginVersion": "10.2.0",
"pluginVersion": "10.2.2",
"pointradius": 2,
"points": false,
"renderer": "flot",
@ -4521,7 +4712,7 @@
"h": 10,
"w": 12,
"x": 0,
"y": 115
"y": 130
},
"hiddenSeries": false,
"id": 120,
@ -4740,4 +4931,4 @@
"uid": "yns_4vFVk",
"version": 1,
"weekStart": ""
}
}