metrics output is broken for tracked iterators #6

Closed
opened 2023-10-06 23:15:07 +00:00 by telackey · 1 comment
Member

With the latest code we get this:

$ wget -O - -q http://127.0.0.1:8086/metrics | grep tracked_iter | grep -v '#'
ipld_eth_state_snapshot_stats_tracked_iterator_1 +Inf
ipld_eth_state_snapshot_stats_tracked_iterator_10 +Inf
ipld_eth_state_snapshot_stats_tracked_iterator_11 +Inf
ipld_eth_state_snapshot_stats_tracked_iterator_12 0.012990409508347511
ipld_eth_state_snapshot_stats_tracked_iterator_13 +Inf
ipld_eth_state_snapshot_stats_tracked_iterator_14 +Inf
ipld_eth_state_snapshot_stats_tracked_iterator_15 +Inf
ipld_eth_state_snapshot_stats_tracked_iterator_16 +Inf
ipld_eth_state_snapshot_stats_tracked_iterator_2 +Inf
ipld_eth_state_snapshot_stats_tracked_iterator_3 +Inf
ipld_eth_state_snapshot_stats_tracked_iterator_4 +Inf
ipld_eth_state_snapshot_stats_tracked_iterator_5 +Inf
ipld_eth_state_snapshot_stats_tracked_iterator_6 +Inf
ipld_eth_state_snapshot_stats_tracked_iterator_7 +Inf
ipld_eth_state_snapshot_stats_tracked_iterator_8 +Inf
ipld_eth_state_snapshot_stats_tracked_iterator_9 +Inf

We should be getting something more like this:

ipld_eth_state_snapshot_stats_tracked_iterator_1 37.5
ipld_eth_state_snapshot_stats_tracked_iterator_10 37.5
ipld_eth_state_snapshot_stats_tracked_iterator_11 37.5
ipld_eth_state_snapshot_stats_tracked_iterator_12 37.5
ipld_eth_state_snapshot_stats_tracked_iterator_13 37.5
ipld_eth_state_snapshot_stats_tracked_iterator_14 37.5
ipld_eth_state_snapshot_stats_tracked_iterator_15 37.5
ipld_eth_state_snapshot_stats_tracked_iterator_16 0
ipld_eth_state_snapshot_stats_tracked_iterator_2 37.5
ipld_eth_state_snapshot_stats_tracked_iterator_3 37.5
ipld_eth_state_snapshot_stats_tracked_iterator_4 37.5
ipld_eth_state_snapshot_stats_tracked_iterator_5 37.5
ipld_eth_state_snapshot_stats_tracked_iterator_6 37.5
ipld_eth_state_snapshot_stats_tracked_iterator_7 37.5
ipld_eth_state_snapshot_stats_tracked_iterator_8 37.5
ipld_eth_state_snapshot_stats_tracked_iterator_9 37.5
With the latest code we get this: ``` $ wget -O - -q http://127.0.0.1:8086/metrics | grep tracked_iter | grep -v '#' ipld_eth_state_snapshot_stats_tracked_iterator_1 +Inf ipld_eth_state_snapshot_stats_tracked_iterator_10 +Inf ipld_eth_state_snapshot_stats_tracked_iterator_11 +Inf ipld_eth_state_snapshot_stats_tracked_iterator_12 0.012990409508347511 ipld_eth_state_snapshot_stats_tracked_iterator_13 +Inf ipld_eth_state_snapshot_stats_tracked_iterator_14 +Inf ipld_eth_state_snapshot_stats_tracked_iterator_15 +Inf ipld_eth_state_snapshot_stats_tracked_iterator_16 +Inf ipld_eth_state_snapshot_stats_tracked_iterator_2 +Inf ipld_eth_state_snapshot_stats_tracked_iterator_3 +Inf ipld_eth_state_snapshot_stats_tracked_iterator_4 +Inf ipld_eth_state_snapshot_stats_tracked_iterator_5 +Inf ipld_eth_state_snapshot_stats_tracked_iterator_6 +Inf ipld_eth_state_snapshot_stats_tracked_iterator_7 +Inf ipld_eth_state_snapshot_stats_tracked_iterator_8 +Inf ipld_eth_state_snapshot_stats_tracked_iterator_9 +Inf ``` We should be getting something more like this: ``` ipld_eth_state_snapshot_stats_tracked_iterator_1 37.5 ipld_eth_state_snapshot_stats_tracked_iterator_10 37.5 ipld_eth_state_snapshot_stats_tracked_iterator_11 37.5 ipld_eth_state_snapshot_stats_tracked_iterator_12 37.5 ipld_eth_state_snapshot_stats_tracked_iterator_13 37.5 ipld_eth_state_snapshot_stats_tracked_iterator_14 37.5 ipld_eth_state_snapshot_stats_tracked_iterator_15 37.5 ipld_eth_state_snapshot_stats_tracked_iterator_16 0 ipld_eth_state_snapshot_stats_tracked_iterator_2 37.5 ipld_eth_state_snapshot_stats_tracked_iterator_3 37.5 ipld_eth_state_snapshot_stats_tracked_iterator_4 37.5 ipld_eth_state_snapshot_stats_tracked_iterator_5 37.5 ipld_eth_state_snapshot_stats_tracked_iterator_6 37.5 ipld_eth_state_snapshot_stats_tracked_iterator_7 37.5 ipld_eth_state_snapshot_stats_tracked_iterator_8 37.5 ipld_eth_state_snapshot_stats_tracked_iterator_9 37.5 ```
roysc was assigned by telackey 2023-10-06 23:15:13 +00:00
telackey self-assigned this 2023-10-06 23:15:18 +00:00
telackey changed title from metrics output is broken to metrics output is broken for tracked iterators 2023-10-06 23:17:56 +00:00
Member

Fixed by #7

Fixed by https://git.vdb.to/cerc-io/ipld-eth-state-snapshot/pulls/7
roysc closed this issue 2023-10-07 03:29:42 +00:00
Sign in to join this conversation.
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: cerc-io/ipld-eth-state-snapshot#6
No description provided.