prometheus / client_java

Prometheus instrumentation library for JVM applications
http://prometheus.github.io/client_java/
Apache License 2.0
2.18k stars 796 forks source link

ExpositionFormats should be optional #1087

Open turneand opened 2 weeks ago

turneand commented 2 weeks ago

Our applications are deployed and make use of only the text based prometheus writers.

Is it possible to make the non-text based writers in ExpositionFormats optional (protobuf and openMetrics), and ideally flagged as optional dependencies? Protobuf binaries add on ~2mb to our deployable which we will never use, and also reduce the risk of any potential transitive vulnerabilities.

zeitlinger commented 1 week ago

PR is welcome :smile: