Skip to content

Commit

Permalink
update expected metrics
Browse files Browse the repository at this point in the history
  • Loading branch information
gammazero committed Mar 5, 2025
1 parent fc3c6c7 commit 844d33b
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
10 changes: 8 additions & 2 deletions test/sharness/t0119-prometheus-data/prometheus_metrics
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
exchange_bitswap_response_bytes_bucket
exchange_bitswap_response_bytes_count
exchange_bitswap_response_bytes_sum
exchange_bitswap_wantlists_items_total
exchange_bitswap_wantlists_seconds_bucket
exchange_bitswap_wantlists_seconds_count
exchange_bitswap_wantlists_seconds_sum
exchange_bitswap_wantlists_total
flatfs_datastore_batchcommit_errors_total
flatfs_datastore_batchcommit_latency_seconds_bucket
flatfs_datastore_batchcommit_latency_seconds_count
Expand Down Expand Up @@ -361,8 +369,6 @@ libp2p_swarm_dial_ranking_delay_seconds_count
libp2p_swarm_dial_ranking_delay_seconds_sum
process_cpu_seconds_total
process_max_fds
process_network_receive_bytes_total
process_network_transmit_bytes_total
process_open_fds
process_resident_memory_bytes
process_start_time_seconds
Expand Down
4 changes: 2 additions & 2 deletions test/sharness/t0119-prometheus.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ test_expect_success "collect metrics" '
test_kill_ipfs_daemon

test_expect_success "filter metrics" '
sed -ne "s/^\([a-z0-9_]\+\).*/\1/p" raw_metrics | LC_ALL=C sort | uniq > filtered_metrics
gsed -ne "s/^\([a-z0-9_]\+\).*/\1/p" raw_metrics | LC_ALL=C sort | uniq > filtered_metrics
'

test_expect_success "make sure metrics haven't changed" '
Expand All @@ -49,7 +49,7 @@ test_expect_success "collect metrics" '
test_kill_ipfs_daemon

test_expect_success "filter metrics and find ones added by enabling ResourceMgr" '
sed -ne "s/^\([a-z0-9_]\+\).*/\1/p" raw_metrics | LC_ALL=C sort > filtered_metrics &&
gsed -ne "s/^\([a-z0-9_]\+\).*/\1/p" raw_metrics | LC_ALL=C sort > filtered_metrics &&
grep -v -x -f ../t0119-prometheus-data/prometheus_metrics filtered_metrics | LC_ALL=C sort | uniq > rcmgr_metrics
'

Expand Down

0 comments on commit 844d33b

Please sign in to comment.