Skip to content

Commit

Permalink
chore: separate builder and engine in success + error rates panel
Browse files Browse the repository at this point in the history
  • Loading branch information
nflaig committed Oct 22, 2024
1 parent 0e4ea98 commit 8673b8e
Showing 1 changed file with 49 additions and 16 deletions.
65 changes: 49 additions & 16 deletions dashboards/lodestar_block_production.json
Original file line number Diff line number Diff line change
Expand Up @@ -445,19 +445,22 @@
"axisBorderShow": false,
"axisCenteredZero": false,
"axisColorMode": "text",
"axisLabel": "",
"axisLabel": "builder | engine",
"axisPlacement": "auto",
"barAlignment": 0,
"drawStyle": "line",
"fillOpacity": 0,
"gradientMode": "none",
"fillOpacity": 30,
"gradientMode": "opacity",
"hideFrom": {
"legend": false,
"tooltip": false,
"viz": false
},
"insertNulls": false,
"lineInterpolation": "linear",
"lineStyle": {
"fill": "solid"
},
"lineWidth": 1,
"pointSize": 5,
"scaleDistribution": {
Expand All @@ -473,19 +476,22 @@
"mode": "off"
}
},
"mappings": []
"fieldMinMax": false,
"mappings": [],
"noValue": "0",
"unit": "none"
},
"overrides": [
{
"matcher": {
"id": "byName",
"options": "total"
"options": "engine success"
},
"properties": [
{
"id": "color",
"value": {
"fixedColor": "yellow",
"fixedColor": "dark-green",
"mode": "fixed"
}
}
Expand All @@ -494,13 +500,13 @@
{
"matcher": {
"id": "byName",
"options": "successes"
"options": "builder success"
},
"properties": [
{
"id": "color",
"value": {
"fixedColor": "green",
"fixedColor": "dark-green",
"mode": "fixed"
}
}
Expand All @@ -509,13 +515,13 @@
{
"matcher": {
"id": "byName",
"options": "success"
"options": "engine errors"
},
"properties": [
{
"id": "color",
"value": {
"fixedColor": "green",
"fixedColor": "dark-red",
"mode": "fixed"
}
}
Expand All @@ -524,13 +530,13 @@
{
"matcher": {
"id": "byName",
"options": "errors"
"options": "builder errors"
},
"properties": [
{
"id": "color",
"value": {
"fixedColor": "red",
"fixedColor": "dark-red",
"mode": "fixed"
}
}
Expand Down Expand Up @@ -565,10 +571,11 @@
},
"editorMode": "code",
"exemplar": false,
"expr": "rate(beacon_block_production_successes_total[$rate_interval])",
"expr": "rate(beacon_block_production_successes_total{source=\"engine\"}[$rate_interval])",
"format": "time_series",
"hide": false,
"interval": "",
"legendFormat": "success",
"legendFormat": "engine success",
"range": true,
"refId": "B"
},
Expand All @@ -579,11 +586,37 @@
},
"editorMode": "code",
"exemplar": false,
"expr": "rate(beacon_block_production_requests_total[$rate_interval])\n-\nrate(beacon_block_production_successes_total[$rate_interval])",
"expr": "rate(beacon_block_production_requests_total{source=\"engine\"}[$rate_interval])\n-\nrate(beacon_block_production_successes_total{source=\"engine\"}[$rate_interval])",
"interval": "",
"legendFormat": "errors",
"legendFormat": "engine errors",
"range": true,
"refId": "A"
},
{
"datasource": {
"type": "prometheus",
"uid": "${DS_PROMETHEUS}"
},
"editorMode": "code",
"expr": "-1 * rate(beacon_block_production_successes_total{source=\"builder\"}[$rate_interval])",
"hide": false,
"instant": false,
"legendFormat": "builder success",
"range": true,
"refId": "C"
},
{
"datasource": {
"type": "prometheus",
"uid": "${DS_PROMETHEUS}"
},
"editorMode": "code",
"expr": "-1 *\n(\n rate(beacon_block_production_requests_total{source=\"builder\"}[$rate_interval])\n -\n rate(beacon_block_production_successes_total{source=\"builder\"}[$rate_interval])\n)",
"hide": false,
"instant": false,
"legendFormat": "builder errors",
"range": true,
"refId": "D"
}
],
"title": "Success + Error rates",
Expand Down

0 comments on commit 8673b8e

Please sign in to comment.