tikv / rust-prometheus

Prometheus instrumentation library for Rust applications
Apache License 2.0
1.07k stars 182 forks source link

Add a "push-no-tls" feature, for HTTP-only push support #461

Open BrandonY opened 2 years ago

BrandonY commented 2 years ago

I've been putting together a little performance prober that uses rust-prometheus to push its results. My prober makes extensive use of some specialized native TLS libraries, and getting them to link nicely with reqwest's TLS library dependencies hasn't been working for me.

Then I realized that, by default, prometheus's pushgateway uses HTTP, so I figured that it would make sense for there to be an option for rust-prometheus's push support to not require those libraries. I've put together a new feature flag that enables push but does not require reqwest's TLS support.