vectordotdev / vector

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

Publish raw network metrics for components #11803

Open jszwedko opened 2 years ago

jszwedko commented 2 years ago

A note for the community

Use Cases

It would be useful, in addition to the existing component_(received|sent)_bytes_total metric to see the raw bytes in / out of a component.

We should update the component spec to describe how / when these are emitted.

Attempted Solutions

No response

Proposal

Add the following metrics for all network-based components:

Counters:

Gauges:

Components

Sources

Some sources might only have input metrics or only output metrics.

Transforms

Sinks

Some sinks might only have input metrics or only output metrics.

References

Related: https://github.com/vectordotdev/vector/issues/9316

Version

vector 0.20.0 (x86_64-apple-darwin 2a706a3 2022-02-10)

binarylogic commented 2 years ago

I was thinking we could orient these around general network statistics, taking inspiration from the Prometheus node exporter network metrics. Something like:

jszwedko commented 2 years ago

👍 I like that. I updated the issue to be generally about component network metrics.

binarylogic commented 2 years ago

Just noting, this is covered in the changes in https://github.com/vectordotdev/vector/pull/12912. We should be using the metrics noted there or update the spec first.