Skip to content

Commit

Permalink
fix: mesh peers - inclusion and churn sum by reason metrics
Browse files Browse the repository at this point in the history
  • Loading branch information
twoeths committed Aug 28, 2023
1 parent 1b40a91 commit f877d3b
Showing 1 changed file with 137 additions and 11 deletions.
148 changes: 137 additions & 11 deletions dashboards/lodestar_debug_gossipsub.json
Original file line number Diff line number Diff line change
Expand Up @@ -1690,7 +1690,32 @@
"mappings": [],
"unit": "cps"
},
"overrides": []
"overrides": [
{
"__systemRef": "hideSeriesFrom",
"matcher": {
"id": "byNames",
"options": {
"mode": "exclude",
"names": [
"beacon_aggregate_and_proof"
],
"prefix": "All except:",
"readOnly": true
}
},
"properties": [
{
"id": "custom.hideFrom",
"value": {
"legend": false,
"tooltip": false,
"viz": true
}
}
]
}
]
},
"gridPos": {
"h": 9,
Expand All @@ -1717,22 +1742,26 @@
"type": "prometheus",
"uid": "${DS_PROMETHEUS}"
},
"editorMode": "code",
"exemplar": false,
"expr": "sum(\n rate(gossipsub_mesh_peer_inclusion_events_total[$rate_interval])\n) by (topic)",
"interval": "",
"legendFormat": "+ {{topic}}",
"range": true,
"refId": "A"
},
{
"datasource": {
"type": "prometheus",
"uid": "${DS_PROMETHEUS}"
},
"editorMode": "code",
"exemplar": false,
"expr": "- sum(\n rate(gossipsub_peer_churn_events_total [$rate_interval])\n) by (topic)",
"hide": false,
"interval": "",
"legendFormat": "- {{topic}}",
"range": true,
"refId": "B"
}
],
Expand Down Expand Up @@ -1809,23 +1838,120 @@
"type": "prometheus",
"uid": "${DS_PROMETHEUS}"
},
"exemplar": false,
"expr": "sum(\n rate(gossipsub_mesh_peer_inclusion_events_total[$rate_interval])\n) by (reason)",
"editorMode": "code",
"expr": "sum(rate(gossipsub_mesh_peer_inclusion_events_fanout_total[$rate_interval]))",
"hide": false,
"interval": "",
"legendFormat": "+ {{reason}}",
"refId": "B"
"legendFormat": "+ fanout",
"range": true,
"refId": "C"
},
{
"datasource": {
"type": "prometheus",
"uid": "${DS_PROMETHEUS}"
},
"exemplar": false,
"expr": "- sum(\n rate(gossipsub_peer_churn_events_total [$rate_interval])\n) by (reason)",
"interval": "",
"legendFormat": "- {{reason}}",
"refId": "A"
"editorMode": "code",
"expr": "sum(rate(gossipsub_mesh_peer_inclusion_events_random_total[$rate_interval]))",
"hide": false,
"legendFormat": "+ random",
"range": true,
"refId": "D"
},
{
"datasource": {
"type": "prometheus",
"uid": "${DS_PROMETHEUS}"
},
"editorMode": "code",
"expr": "sum(rate(gossipsub_mesh_peer_inclusion_events_subscribed_total[$rate_interval]))",
"hide": false,
"legendFormat": "+ subscribed",
"range": true,
"refId": "E"
},
{
"datasource": {
"type": "prometheus",
"uid": "${DS_PROMETHEUS}"
},
"editorMode": "code",
"expr": "sum(rate(gossipsub_mesh_peer_inclusion_events_outbound_total[$rate_interval]))",
"hide": false,
"legendFormat": "+ outbound",
"range": true,
"refId": "F"
},
{
"datasource": {
"type": "prometheus",
"uid": "${DS_PROMETHEUS}"
},
"editorMode": "code",
"expr": "sum(rate(gossipsub_mesh_peer_inclusion_events_not_enough_total[$rate_interval]))",
"hide": false,
"legendFormat": "+ not_enough",
"range": true,
"refId": "G"
},
{
"datasource": {
"type": "prometheus",
"uid": "${DS_PROMETHEUS}"
},
"editorMode": "code",
"expr": "sum(rate(gossipsub_mesh_peer_inclusion_events_opportunistic_total[$rate_interval]))",
"hide": false,
"legendFormat": "+ opportunistic",
"range": true,
"refId": "H"
},
{
"datasource": {
"type": "prometheus",
"uid": "${DS_PROMETHEUS}"
},
"editorMode": "code",
"expr": "- sum(rate(gossipsub_peer_churn_events_disconnected_total[$rate_interval]))",
"hide": false,
"legendFormat": "- disconnected",
"range": true,
"refId": "I"
},
{
"datasource": {
"type": "prometheus",
"uid": "${DS_PROMETHEUS}"
},
"editorMode": "code",
"expr": "- sum(rate(gossipsub_peer_churn_events_bad_score_total[$rate_interval]))",
"hide": false,
"legendFormat": "- bad_score",
"range": true,
"refId": "J"
},
{
"datasource": {
"type": "prometheus",
"uid": "${DS_PROMETHEUS}"
},
"editorMode": "code",
"expr": "- sum(rate(gossipsub_peer_churn_events_prune_total[$rate_interval]))",
"hide": false,
"legendFormat": "- prune",
"range": true,
"refId": "K"
},
{
"datasource": {
"type": "prometheus",
"uid": "${DS_PROMETHEUS}"
},
"editorMode": "code",
"expr": "- sum(rate(gossipsub_peer_churn_events_excess_total[$rate_interval]))",
"hide": false,
"legendFormat": "- excess",
"range": true,
"refId": "L"
}
],
"title": "Mesh inclusion (+) / churn (-) events - sum by reason",
Expand Down

0 comments on commit f877d3b

Please sign in to comment.