vectordotdev / vector

A high-performance observability data pipeline.
https://vector.dev
Mozilla Public License 2.0
18.21k stars 1.6k forks source link

feat(host_metrics source): Implement process collection for host metrics #21791

Closed LeeTeng2001 closed 1 day ago

LeeTeng2001 commented 1 week ago

Summary

Implement process metric collection for host metrics souce

Change Type

Is this a breaking change?

How did you test this PR?

A simplistic vector config for testing, additionally, it has unit test written in similar style to other host metrics

[sources.host]
type = "host_metrics"
collectors = ["process"]

[sinks.my_sink_id]
type = "console"
encoding.codec = "json"
inputs = ["host"]

Does this PR include user facing changes?

Checklist

References

9626

bits-bot commented 1 week ago

CLA assistant check
All committers have signed the CLA.

pront commented 6 days ago

Thanks @LeeTeng2001! There a few failing CI checks. cargo fmt should fix them.

See how to run common checks locally here: https://github.com/vectordotdev/vector/blob/master/CONTRIBUTING.md#running-other-checks

LeeTeng2001 commented 4 days ago

Thanks @LeeTeng2001! There a few failing CI checks. cargo fmt should fix them.

See how to run common checks locally here: https://github.com/vectordotdev/vector/blob/master/CONTRIBUTING.md#running-other-checks

Hi, I've fixed the format