Repository navigation
Commit c968e97
authored
app: add addr label to beacon node version (#4847)
* app/eth2wrap: add per beacon node request metrics with a bounded addr label
Adds app_eth2_bn_requests_total, app_eth2_bn_errors_total and
app_eth2_bn_first_total with endpoint and addr labels, recorded per beacon
node inside provide, and an addr label on app_beacon_node_version.
eth2wrap.BeaconNodeLabel keeps only scheme://host[:port], truncates to 64
characters, suffixes collisions with #n and caps distinct values at 16
(then "other"). The SSE listener uses it for its existing addr label so
values join across metrics. Existing app_eth2_* metrics are unchanged.
category: feature
ticket: none
* app/eth2wrap: restore gen header, split provide join loop, avoid http literal
* app: drop per beacon node request counters, keep the addr label
* app: use the existing redacted addr label, drop bnlabel1 parent 10d405e commit c968e97
3 files changed
Lines changed: 4 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
87 | 87 | | |
88 | 88 | | |
89 | 89 | | |
90 | | - | |
91 | | - | |
| 90 | + | |
| 91 | + | |
92 | 92 | | |
93 | 93 | | |
94 | 94 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
305 | 305 | | |
306 | 306 | | |
307 | 307 | | |
308 | | - | |
| 308 | + | |
309 | 309 | | |
310 | 310 | | |
311 | 311 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | | - | |
| 24 | + | |
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| |||
0 commit comments