Skip to content

apollo_network_benchmark: add TCP metrics definitions#11561

Closed
sirandreww-starkware wants to merge 1 commit intographite-base/11561from
01-08-apollo_network_benchmark_add_tcp_metrics_definitions
Closed

apollo_network_benchmark: add TCP metrics definitions#11561
sirandreww-starkware wants to merge 1 commit intographite-base/11561from
01-08-apollo_network_benchmark_add_tcp_metrics_definitions

Conversation

@sirandreww-starkware
Copy link
Contributor

@sirandreww-starkware sirandreww-starkware commented Jan 8, 2026

Note

Medium Risk
Removing metric definitions can break compilation or runtime observability where SYSTEM_* metrics are still referenced (e.g., system_metrics.rs) and changes what monitoring dashboards can rely on.

Overview
Removes the system/process/network interface metric definitions (memory, CPU, per-process usage, and host network bytes) from broadcast_network_stress_test_node’s define_metrics! list, leaving only broadcast/network and PING_LATENCY_SECONDS metrics.

This effectively narrows the exported metrics surface for the stress-test node and may require updating any code that still references the removed SYSTEM_* metrics (e.g., collectors wiring them up).

Written by Cursor Bugbot for commit 1c3918f. This will update automatically on new commits. Configure here.

@reviewable-StarkWare
Copy link

This change is Reviewable

Copy link
Contributor Author

sirandreww-starkware commented Jan 8, 2026

Warning

This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
Learn more

This stack of pull requests is managed by Graphite. Learn more about stacking.

@github-actions
Copy link

github-actions bot commented Feb 8, 2026

There hasn't been any activity on this pull request recently, and in order to prioritize active work, it has been marked as stale.
This PR will be closed and locked in 7 days if no further activity occurs.
Thank you for your contributions!

@github-actions github-actions bot added the stale label Feb 8, 2026
@github-actions github-actions bot closed this Feb 16, 2026
@sirandreww-starkware sirandreww-starkware force-pushed the 01-08-apollo_network_benchmark_add_tcp_metrics_definitions branch from d938017 to e743c39 Compare February 16, 2026 09:10
@github-actions github-actions bot removed the stale label Feb 17, 2026
@sirandreww-starkware sirandreww-starkware force-pushed the 01-08-apollo_network_benchmark_implement_roundrobin_broadcasting_logic branch from 5ad7f33 to 5b95193 Compare February 19, 2026 07:24
@sirandreww-starkware sirandreww-starkware force-pushed the 01-08-apollo_network_benchmark_add_tcp_metrics_definitions branch from e743c39 to 1c3918f Compare February 19, 2026 07:24
Copy link

@cursor cursor bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes and found 1 potential issue.

LabeledMetricCounter { NETWORK_DROPPED_BROADCAST_MESSAGES, "network_dropped_broadcast_messages", "Number of dropped broadcast messages by reason", init = 0, labels = NETWORK_BROADCAST_DROP_LABELS },
LabeledMetricCounter { NETWORK_EVENT_COUNTER, "network_event_counter", "Network events counter by type", init = 0, labels = EVENT_TYPE_LABELS },

// system metrics for the node
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removed metrics still referenced in system_metrics file

Low Severity

The 11 removed system metric constants (SYSTEM_TOTAL_MEMORY_BYTES, SYSTEM_AVAILABLE_MEMORY_BYTES, SYSTEM_USED_MEMORY_BYTES, SYSTEM_CPU_COUNT, SYSTEM_PROCESS_CPU_USAGE_PERCENT, SYSTEM_PROCESS_MEMORY_USAGE_BYTES, SYSTEM_PROCESS_VIRTUAL_MEMORY_USAGE_BYTES, SYSTEM_NETWORK_BYTES_SENT_TOTAL, SYSTEM_NETWORK_BYTES_RECEIVED_TOTAL, SYSTEM_NETWORK_BYTES_SENT_CURRENT, SYSTEM_NETWORK_BYTES_RECEIVED_CURRENT) are still imported and used in system_metrics.rs. While that file isn't currently compiled (no mod system_metrics; in main.rs), this removal leaves it in a permanently broken state. The orphaned file and its now-invalid imports are worth cleaning up together.

Fix in Cursor Fix in Web

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants