metrics-rs / metrics

A metrics ecosystem for Rust.
MIT License
1.13k stars 157 forks source link

HTTP exporter can listen on unix domain socket (UDS) as well as TCP #498

Closed scottopell closed 3 months ago

scottopell commented 3 months ago

HTTP over Unix Domain Sockets is useful in situations where the thing exposing telemetry does not have networking configured, but does have easy shared disk.

In my use case, this occurs because we run a container without external networking, but still want to collect telemetry from the container. This is trivial with a Unix Domain Socket mounted in a volume share.

tobz commented 3 months ago

Thanks for your contribution!

tobz commented 3 months ago

Released as metrics-exporter-prometheus@v0.15.3.