Skip to content

Commit

Permalink
Relayer reward metric (#1742)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
svyatonik authored Jan 18, 2023
1 parent 6b45559 commit 68344e3
Show file tree
Hide file tree
Showing 16 changed files with 232 additions and 341 deletions.
3 changes: 3 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,22 @@
"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,
"gnetId": null,
"graphTooltip": 0,
"links": [],
"liveNow": false,
"panels": [
{
"alert": {
Expand Down Expand Up @@ -66,29 +74,6 @@
"type": "last"
},
"type": "query"
},
{
"evaluator": {
"params": [
1000
],
"type": "lt"
},
"operator": {
"type": "or"
},
"query": {
"params": [
"C",
"5m",
"now"
]
},
"reducer": {
"params": [],
"type": "last"
},
"type": "query"
}
],
"executionErrorState": "alerting",
Expand All @@ -104,19 +89,13 @@
"dashLength": 10,
"dashes": false,
"datasource": "Prometheus",
"fieldConfig": {
"defaults": {
"custom": {}
},
"overrides": []
},
"fill": 1,
"fillGradient": 0,
"gridPos": {
"h": 8,
"w": 12,
"x": 0,
"y": 16
"y": 0
},
"hiddenSeries": false,
"id": 8,
Expand All @@ -132,8 +111,11 @@
"lines": true,
"linewidth": 1,
"nullPointMode": "null",
"options": {
"alertThreshold": true
},
"percentage": false,
"pluginVersion": "7.1.3",
"pluginVersion": "8.2.6",
"pointradius": 2,
"points": false,
"renderer": "flot",
Expand Down Expand Up @@ -161,7 +143,8 @@
"fill": true,
"line": true,
"op": "lt",
"value": 1000
"value": 1000,
"visible": true
}
],
"timeFrom": null,
Expand Down Expand Up @@ -253,29 +236,6 @@
"type": "last"
},
"type": "query"
},
{
"evaluator": {
"params": [
1000
],
"type": "lt"
},
"operator": {
"type": "or"
},
"query": {
"params": [
"C",
"5m",
"now"
]
},
"reducer": {
"params": [],
"type": "last"
},
"type": "query"
}
],
"executionErrorState": "alerting",
Expand All @@ -291,19 +251,13 @@
"dashLength": 10,
"dashes": false,
"datasource": "Prometheus",
"fieldConfig": {
"defaults": {
"custom": {}
},
"overrides": []
},
"fill": 1,
"fillGradient": 0,
"gridPos": {
"h": 8,
"w": 12,
"x": 12,
"y": 16
"y": 0
},
"hiddenSeries": false,
"id": 9,
Expand All @@ -319,8 +273,11 @@
"lines": true,
"linewidth": 1,
"nullPointMode": "null",
"options": {
"alertThreshold": true
},
"percentage": false,
"pluginVersion": "7.1.3",
"pluginVersion": "8.2.6",
"pointradius": 2,
"points": false,
"renderer": "flot",
Expand Down Expand Up @@ -348,7 +305,8 @@
"fill": true,
"line": true,
"op": "lt",
"value": 1000
"value": 1000,
"visible": true
}
],
"timeFrom": null,
Expand Down Expand Up @@ -432,19 +390,13 @@
"dashLength": 10,
"dashes": false,
"datasource": "Prometheus",
"fieldConfig": {
"defaults": {
"custom": {}
},
"overrides": []
},
"fill": 1,
"fillGradient": 0,
"gridPos": {
"h": 8,
"w": 12,
"x": 0,
"y": 24
"y": 8
},
"hiddenSeries": false,
"id": 11,
Expand All @@ -460,8 +412,11 @@
"lines": true,
"linewidth": 1,
"nullPointMode": "null",
"options": {
"alertThreshold": true
},
"percentage": false,
"pluginVersion": "7.1.3",
"pluginVersion": "8.2.6",
"pointradius": 2,
"points": false,
"renderer": "flot",
Expand All @@ -483,7 +438,8 @@
"fill": true,
"line": true,
"op": "gt",
"value": 0
"value": 0,
"visible": true
}
],
"timeFrom": null,
Expand Down Expand Up @@ -567,19 +523,13 @@
"dashLength": 10,
"dashes": false,
"datasource": "Prometheus",
"fieldConfig": {
"defaults": {
"custom": {}
},
"overrides": []
},
"fill": 1,
"fillGradient": 0,
"gridPos": {
"h": 8,
"w": 12,
"x": 12,
"y": 24
"y": 8
},
"hiddenSeries": false,
"id": 12,
Expand All @@ -595,8 +545,11 @@
"lines": true,
"linewidth": 1,
"nullPointMode": "null",
"options": {
"alertThreshold": true
},
"percentage": false,
"pluginVersion": "7.1.3",
"pluginVersion": "8.2.6",
"pointradius": 2,
"points": false,
"renderer": "flot",
Expand All @@ -618,7 +571,8 @@
"fill": true,
"line": true,
"op": "gt",
"value": 0
"value": 0,
"visible": true
}
],
"timeFrom": null,
Expand Down Expand Up @@ -660,108 +614,10 @@
"align": false,
"alignLevel": null
}
},
{
"aliasColors": {},
"bars": false,
"dashLength": 10,
"dashes": false,
"datasource": "Prometheus",
"fieldConfig": {
"defaults": {
"custom": {}
},
"overrides": []
},
"fill": 1,
"fillGradient": 0,
"gridPos": {
"h": 8,
"w": 12,
"x": 0,
"y": 32
},
"hiddenSeries": false,
"id": 14,
"legend": {
"avg": false,
"current": false,
"max": false,
"min": false,
"show": true,
"total": false,
"values": false
},
"lines": true,
"linewidth": 1,
"nullPointMode": "null",
"percentage": false,
"pluginVersion": "7.1.3",
"pointradius": 2,
"points": false,
"renderer": "flot",
"seriesOverrides": [],
"spaceLength": 10,
"stack": false,
"steppedLine": false,
"targets": [
{
"expr": "Millau_to_Rialto_MessageLane_00000000_unprofitable_delivery_transactions",
"interval": "",
"legendFormat": "Millau -> Rialto, lane 00000000",
"refId": "A"
},
{
"expr": "Rialto_to_Millau_MessageLane_00000000_unprofitable_delivery_transactions",
"interval": "",
"legendFormat": "Rialto -> Millau, lane 00000000",
"refId": "B"
}
],
"thresholds": [],
"timeFrom": null,
"timeRegions": [],
"timeShift": null,
"title": "Count of unprofitable message delivery transactions",
"tooltip": {
"shared": true,
"sort": 0,
"value_type": "individual"
},
"type": "graph",
"xaxis": {
"buckets": null,
"mode": "time",
"name": null,
"show": true,
"values": []
},
"yaxes": [
{
"format": "short",
"label": null,
"logBase": 1,
"max": null,
"min": null,
"show": true
},
{
"format": "short",
"label": null,
"logBase": 1,
"max": null,
"min": null,
"show": true
}
],
"yaxis": {
"align": false,
"alignLevel": null
}
}
],
"refresh": "10s",
"schemaVersion": 26,
"schemaVersion": 32,
"style": "dark",
"tags": [],
"templating": {
Expand Down
Loading

0 comments on commit 68344e3

Please sign in to comment.