Skip to content

Commit

Permalink
Fix overview beacon node score (#269)
Browse files Browse the repository at this point in the history
  • Loading branch information
LukeHackett12 authored Jun 4, 2024
1 parent aef9a6f commit 2a848af
Showing 1 changed file with 45 additions and 13 deletions.
58 changes: 45 additions & 13 deletions grafana/dashboards/dash_charon_overview.json
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@
"textMode": "auto",
"wideLayout": true
},
"pluginVersion": "10.4.0",
"pluginVersion": "10.4.2",
"targets": [
{
"datasource": {
Expand Down Expand Up @@ -261,7 +261,7 @@
"sizing": "auto",
"text": {}
},
"pluginVersion": "10.4.0",
"pluginVersion": "10.4.2",
"targets": [
{
"datasource": {
Expand Down Expand Up @@ -338,7 +338,7 @@
"showThresholdMarkers": true,
"sizing": "auto"
},
"pluginVersion": "10.4.0",
"pluginVersion": "10.4.2",
"targets": [
{
"datasource": {
Expand All @@ -347,14 +347,46 @@
},
"editorMode": "code",
"exemplar": false,
"expr": "(clamp(app_monitoring_readyz{cluster_name=\"$cluster_name\",cluster_hash=\"$cluster_hash\",cluster_peer=\"$cluster_peer\"} == 1 OR app_monitoring_readyz{cluster_name=\"$cluster_name\",cluster_hash=\"$cluster_hash\",cluster_peer=\"$cluster_peer\"} == 4 OR app_monitoring_readyz{cluster_name=\"$cluster_name\",cluster_hash=\"$cluster_hash\",cluster_peer=\"$cluster_peer\"} == 5 OR app_monitoring_readyz{cluster_name=\"$cluster_name\",cluster_hash=\"$cluster_hash\",cluster_peer=\"$cluster_peer\"} == 6, 1, 1) OR on() vector(0))\n*\n(\n (\n0.5 * (1.0 - 10*(sum(increase(app_eth2_errors_total{cluster_name=\"$cluster_name\",cluster_hash=\"$cluster_hash\",cluster_peer=\"$cluster_peer\"}[$__range])) / (sum(increase(app_eth2_latency_seconds_count{cluster_name=\"$cluster_name\",cluster_hash=\"$cluster_hash\",cluster_peer=\"$cluster_peer\", endpoint !=\"submit_validator_registrations\"}[$__range]))))) OR on() vector(0.5)\n )\n +\n (\n 0.5 * (1.0 - clamp_max(histogram_quantile(0.99, sum(rate(app_eth2_latency_seconds_bucket{cluster_name=\"$cluster_name\",cluster_hash=\"$cluster_hash\",cluster_peer=\"$cluster_peer\", endpoint !=\"submit_validator_registrations\"}[$__range])) by (le)),1))\n )\n)",
"expr": "(clamp(app_monitoring_readyz{cluster_name=\"$cluster_name\",cluster_hash=\"$cluster_hash\",cluster_peer=\"$cluster_peer\"} == 1 OR app_monitoring_readyz{cluster_name=\"$cluster_name\",cluster_hash=\"$cluster_hash\",cluster_peer=\"$cluster_peer\"} == 4 OR app_monitoring_readyz{cluster_name=\"$cluster_name\",cluster_hash=\"$cluster_hash\",cluster_peer=\"$cluster_peer\"} == 5 OR app_monitoring_readyz{cluster_name=\"$cluster_name\",cluster_hash=\"$cluster_hash\",cluster_peer=\"$cluster_peer\"} == 6, 1, 1) OR on() vector(0))\n",
"instant": true,
"legendFormat": "__auto",
"range": false,
"refId": "A"
},
{
"datasource": {
"type": "prometheus",
"uid": "prometheus"
},
"editorMode": "code",
"expr": "(\n (\n0.5 * (1.0 - 10*(sum(increase(app_eth2_errors_total{cluster_name=\"$cluster_name\",cluster_hash=\"$cluster_hash\",cluster_peer=\"$cluster_peer\"}[$__range])) / (sum(increase(app_eth2_latency_seconds_count{cluster_name=\"$cluster_name\",cluster_hash=\"$cluster_hash\",cluster_peer=\"$cluster_peer\", endpoint !=\"submit_validator_registrations\"}[$__range]))))) OR on() vector(0.5)\n )\n +\n (\n 0.5 * (1.0 - clamp_max(histogram_quantile(0.99, sum(rate(app_eth2_latency_seconds_bucket{cluster_name=\"$cluster_name\",cluster_hash=\"$cluster_hash\",cluster_peer=\"$cluster_peer\", endpoint !=\"submit_validator_registrations\"}[$__range])) by (le)),1))\n )\n)",
"hide": false,
"instant": false,
"legendFormat": "__auto",
"range": true,
"refId": "B"
},
{
"datasource": {
"name": "Expression",
"type": "__expr__",
"uid": "__expr__"
},
"expression": "$A * $B",
"hide": false,
"refId": "C",
"type": "math"
}
],
"title": "Beacon Node Score",
"transformations": [
{
"id": "filterByRefId",
"options": {
"include": "C"
}
}
],
"type": "gauge"
},
{
Expand Down Expand Up @@ -448,7 +480,7 @@
"textMode": "auto",
"wideLayout": true
},
"pluginVersion": "10.4.0",
"pluginVersion": "10.4.2",
"targets": [
{
"datasource": {
Expand Down Expand Up @@ -644,7 +676,7 @@
},
"showHeader": true
},
"pluginVersion": "10.4.0",
"pluginVersion": "10.4.2",
"targets": [
{
"datasource": {
Expand Down Expand Up @@ -1121,7 +1153,7 @@
}
]
},
"pluginVersion": "10.4.0",
"pluginVersion": "10.4.2",
"targets": [
{
"datasource": {
Expand Down Expand Up @@ -1881,7 +1913,7 @@
"textMode": "auto",
"wideLayout": true
},
"pluginVersion": "10.4.0",
"pluginVersion": "10.4.2",
"targets": [
{
"datasource": {
Expand Down Expand Up @@ -2204,7 +2236,7 @@
}
]
},
"pluginVersion": "10.4.0",
"pluginVersion": "10.4.2",
"targets": [
{
"datasource": {
Expand Down Expand Up @@ -2789,7 +2821,7 @@
}
]
},
"pluginVersion": "10.4.0",
"pluginVersion": "10.4.2",
"targets": [
{
"datasource": {
Expand Down Expand Up @@ -6890,8 +6922,8 @@
{
"current": {
"selected": false,
"text": "thoughtful-sister",
"value": "thoughtful-sister"
"text": "calm-game",
"value": "calm-game"
},
"datasource": {
"type": "prometheus",
Expand Down Expand Up @@ -7141,6 +7173,6 @@
"timezone": "",
"title": "Charon Overview",
"uid": "d6qujIJVk",
"version": 2,
"version": 3,
"weekStart": ""
}

0 comments on commit 2a848af

Please sign in to comment.