Skip to content

Commit 68344e3

Browse files
authored
Relayer reward metric (#1742)
* use StorageDoubleMapKeyProvider in RelayerRewards * add metrics * clippy * fixed alerts that have caused missing dashboards * fix metric name * fix metric name again * add new metrics to the RialtoParachain <> Millau maintenance dashboard * remove obsolete dashboard
1 parent 6b45559 commit 68344e3

File tree

16 files changed

+232
-341
lines changed

16 files changed

+232
-341
lines changed

Cargo.lock

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

deployments/bridges/rialto-millau/dashboard/grafana/rialto-millau-maintenance-dashboard.json

Lines changed: 37 additions & 181 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,22 @@
88
"hide": true,
99
"iconColor": "rgba(0, 211, 255, 1)",
1010
"name": "Annotations & Alerts",
11+
"target": {
12+
"limit": 100,
13+
"matchAny": false,
14+
"tags": [],
15+
"type": "dashboard"
16+
},
1117
"type": "dashboard"
1218
}
1319
]
1420
},
1521
"editable": true,
22+
"fiscalYearStartMonth": 0,
1623
"gnetId": null,
1724
"graphTooltip": 0,
1825
"links": [],
26+
"liveNow": false,
1927
"panels": [
2028
{
2129
"alert": {
@@ -66,29 +74,6 @@
6674
"type": "last"
6775
},
6876
"type": "query"
69-
},
70-
{
71-
"evaluator": {
72-
"params": [
73-
1000
74-
],
75-
"type": "lt"
76-
},
77-
"operator": {
78-
"type": "or"
79-
},
80-
"query": {
81-
"params": [
82-
"C",
83-
"5m",
84-
"now"
85-
]
86-
},
87-
"reducer": {
88-
"params": [],
89-
"type": "last"
90-
},
91-
"type": "query"
9277
}
9378
],
9479
"executionErrorState": "alerting",
@@ -104,19 +89,13 @@
10489
"dashLength": 10,
10590
"dashes": false,
10691
"datasource": "Prometheus",
107-
"fieldConfig": {
108-
"defaults": {
109-
"custom": {}
110-
},
111-
"overrides": []
112-
},
11392
"fill": 1,
11493
"fillGradient": 0,
11594
"gridPos": {
11695
"h": 8,
11796
"w": 12,
11897
"x": 0,
119-
"y": 16
98+
"y": 0
12099
},
121100
"hiddenSeries": false,
122101
"id": 8,
@@ -132,8 +111,11 @@
132111
"lines": true,
133112
"linewidth": 1,
134113
"nullPointMode": "null",
114+
"options": {
115+
"alertThreshold": true
116+
},
135117
"percentage": false,
136-
"pluginVersion": "7.1.3",
118+
"pluginVersion": "8.2.6",
137119
"pointradius": 2,
138120
"points": false,
139121
"renderer": "flot",
@@ -161,7 +143,8 @@
161143
"fill": true,
162144
"line": true,
163145
"op": "lt",
164-
"value": 1000
146+
"value": 1000,
147+
"visible": true
165148
}
166149
],
167150
"timeFrom": null,
@@ -253,29 +236,6 @@
253236
"type": "last"
254237
},
255238
"type": "query"
256-
},
257-
{
258-
"evaluator": {
259-
"params": [
260-
1000
261-
],
262-
"type": "lt"
263-
},
264-
"operator": {
265-
"type": "or"
266-
},
267-
"query": {
268-
"params": [
269-
"C",
270-
"5m",
271-
"now"
272-
]
273-
},
274-
"reducer": {
275-
"params": [],
276-
"type": "last"
277-
},
278-
"type": "query"
279239
}
280240
],
281241
"executionErrorState": "alerting",
@@ -291,19 +251,13 @@
291251
"dashLength": 10,
292252
"dashes": false,
293253
"datasource": "Prometheus",
294-
"fieldConfig": {
295-
"defaults": {
296-
"custom": {}
297-
},
298-
"overrides": []
299-
},
300254
"fill": 1,
301255
"fillGradient": 0,
302256
"gridPos": {
303257
"h": 8,
304258
"w": 12,
305259
"x": 12,
306-
"y": 16
260+
"y": 0
307261
},
308262
"hiddenSeries": false,
309263
"id": 9,
@@ -319,8 +273,11 @@
319273
"lines": true,
320274
"linewidth": 1,
321275
"nullPointMode": "null",
276+
"options": {
277+
"alertThreshold": true
278+
},
322279
"percentage": false,
323-
"pluginVersion": "7.1.3",
280+
"pluginVersion": "8.2.6",
324281
"pointradius": 2,
325282
"points": false,
326283
"renderer": "flot",
@@ -348,7 +305,8 @@
348305
"fill": true,
349306
"line": true,
350307
"op": "lt",
351-
"value": 1000
308+
"value": 1000,
309+
"visible": true
352310
}
353311
],
354312
"timeFrom": null,
@@ -432,19 +390,13 @@
432390
"dashLength": 10,
433391
"dashes": false,
434392
"datasource": "Prometheus",
435-
"fieldConfig": {
436-
"defaults": {
437-
"custom": {}
438-
},
439-
"overrides": []
440-
},
441393
"fill": 1,
442394
"fillGradient": 0,
443395
"gridPos": {
444396
"h": 8,
445397
"w": 12,
446398
"x": 0,
447-
"y": 24
399+
"y": 8
448400
},
449401
"hiddenSeries": false,
450402
"id": 11,
@@ -460,8 +412,11 @@
460412
"lines": true,
461413
"linewidth": 1,
462414
"nullPointMode": "null",
415+
"options": {
416+
"alertThreshold": true
417+
},
463418
"percentage": false,
464-
"pluginVersion": "7.1.3",
419+
"pluginVersion": "8.2.6",
465420
"pointradius": 2,
466421
"points": false,
467422
"renderer": "flot",
@@ -483,7 +438,8 @@
483438
"fill": true,
484439
"line": true,
485440
"op": "gt",
486-
"value": 0
441+
"value": 0,
442+
"visible": true
487443
}
488444
],
489445
"timeFrom": null,
@@ -567,19 +523,13 @@
567523
"dashLength": 10,
568524
"dashes": false,
569525
"datasource": "Prometheus",
570-
"fieldConfig": {
571-
"defaults": {
572-
"custom": {}
573-
},
574-
"overrides": []
575-
},
576526
"fill": 1,
577527
"fillGradient": 0,
578528
"gridPos": {
579529
"h": 8,
580530
"w": 12,
581531
"x": 12,
582-
"y": 24
532+
"y": 8
583533
},
584534
"hiddenSeries": false,
585535
"id": 12,
@@ -595,8 +545,11 @@
595545
"lines": true,
596546
"linewidth": 1,
597547
"nullPointMode": "null",
548+
"options": {
549+
"alertThreshold": true
550+
},
598551
"percentage": false,
599-
"pluginVersion": "7.1.3",
552+
"pluginVersion": "8.2.6",
600553
"pointradius": 2,
601554
"points": false,
602555
"renderer": "flot",
@@ -618,7 +571,8 @@
618571
"fill": true,
619572
"line": true,
620573
"op": "gt",
621-
"value": 0
574+
"value": 0,
575+
"visible": true
622576
}
623577
],
624578
"timeFrom": null,
@@ -660,108 +614,10 @@
660614
"align": false,
661615
"alignLevel": null
662616
}
663-
},
664-
{
665-
"aliasColors": {},
666-
"bars": false,
667-
"dashLength": 10,
668-
"dashes": false,
669-
"datasource": "Prometheus",
670-
"fieldConfig": {
671-
"defaults": {
672-
"custom": {}
673-
},
674-
"overrides": []
675-
},
676-
"fill": 1,
677-
"fillGradient": 0,
678-
"gridPos": {
679-
"h": 8,
680-
"w": 12,
681-
"x": 0,
682-
"y": 32
683-
},
684-
"hiddenSeries": false,
685-
"id": 14,
686-
"legend": {
687-
"avg": false,
688-
"current": false,
689-
"max": false,
690-
"min": false,
691-
"show": true,
692-
"total": false,
693-
"values": false
694-
},
695-
"lines": true,
696-
"linewidth": 1,
697-
"nullPointMode": "null",
698-
"percentage": false,
699-
"pluginVersion": "7.1.3",
700-
"pointradius": 2,
701-
"points": false,
702-
"renderer": "flot",
703-
"seriesOverrides": [],
704-
"spaceLength": 10,
705-
"stack": false,
706-
"steppedLine": false,
707-
"targets": [
708-
{
709-
"expr": "Millau_to_Rialto_MessageLane_00000000_unprofitable_delivery_transactions",
710-
"interval": "",
711-
"legendFormat": "Millau -> Rialto, lane 00000000",
712-
"refId": "A"
713-
},
714-
{
715-
"expr": "Rialto_to_Millau_MessageLane_00000000_unprofitable_delivery_transactions",
716-
"interval": "",
717-
"legendFormat": "Rialto -> Millau, lane 00000000",
718-
"refId": "B"
719-
}
720-
],
721-
"thresholds": [],
722-
"timeFrom": null,
723-
"timeRegions": [],
724-
"timeShift": null,
725-
"title": "Count of unprofitable message delivery transactions",
726-
"tooltip": {
727-
"shared": true,
728-
"sort": 0,
729-
"value_type": "individual"
730-
},
731-
"type": "graph",
732-
"xaxis": {
733-
"buckets": null,
734-
"mode": "time",
735-
"name": null,
736-
"show": true,
737-
"values": []
738-
},
739-
"yaxes": [
740-
{
741-
"format": "short",
742-
"label": null,
743-
"logBase": 1,
744-
"max": null,
745-
"min": null,
746-
"show": true
747-
},
748-
{
749-
"format": "short",
750-
"label": null,
751-
"logBase": 1,
752-
"max": null,
753-
"min": null,
754-
"show": true
755-
}
756-
],
757-
"yaxis": {
758-
"align": false,
759-
"alignLevel": null
760-
}
761617
}
762618
],
763619
"refresh": "10s",
764-
"schemaVersion": 26,
620+
"schemaVersion": 32,
765621
"style": "dark",
766622
"tags": [],
767623
"templating": {

0 commit comments

Comments
 (0)