strimzi / metrics-reporter

Prometheus Metrics Reporter for Apache Kafka server and client components
Apache License 2.0
5 stars 9 forks source link

Rewrite to use the new Prometheus Java client #25

Closed mimaison closed 4 months ago

mimaison commented 4 months ago

This introduces some changes:

The new client allows exposing metrics in the OpenMetrics format and serialized with Protobuf. When Prometheus scrapes the endpoint, it negotiates the format using the Accept HTTP header. You can check different formats using the debug query parameter on the GET /metrics endpoint. For example:

Related resources:

mimaison commented 4 months ago

I rebased on main and removed my pom.xml changes related to packaging as it's been resolved in #27