enhancement(host_metrics source): replace heim with sysinfo in network collector#24818
Open
mushrowan wants to merge 1 commit intovectordotdev:masterfrom
Open
enhancement(host_metrics source): replace heim with sysinfo in network collector#24818mushrowan wants to merge 1 commit intovectordotdev:masterfrom
mushrowan wants to merge 1 commit intovectordotdev:masterfrom
Conversation
fd5bc2a to
46660f8
Compare
…ollector replace heim::net::io_counters() with sysinfo::Networks for network metrics collection, as part of removing the unmaintained heim dependency (vectordotdev#23646) - sysinfo already a dep (used by process.rs), no new dependencies - network_transmit_packets_total now emitted on all platforms (was linux/windows only behind heim IoCountersExt) - tx drop counters read from sysfs on linux since sysinfo doesn't expose them yet (same /sys/class/net dir sysinfo reads from) - windows tx drops temporarily unavailable, pending upstream sysinfo - replaces async stream/filter_map chain with simple sync iteration
46660f8 to
3a386c6
Compare
9 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
replace
heim::net::io_counters()withsysinfo::Networksin the host_metricsnetwork collector. first step in removing the unmaintained heim dependency
(#23646). sysinfo is already a dep (used by
process.rs)network_transmit_packets_totalnow emitted on all platforms (was linux/windowsonly). windows tx drops temporarily unavailable since sysinfo doesn't expose
drop counters yet, linux drops preserved via inline sysfs read
Vector configuration
How did you test this PR?
cargo test -p vector --no-default-features --features sources-host_metrics sources::host_metrics::networkChange Type
Is this a breaking change?
Does this PR include user facing changes?
guidelines.
no-changeloglabel to this PR.References
Notes