### Motivation

While metrics types are optional in the Prometheus format (and ignored by 
Prometheus server), some external tools (eg: DataDog) are failing to ingest the 
metrics exported by Pulsar broker in Prometheus format. 

The reason is that we use a custom exporter and we don't mark the metrics 
types, such as the Prometheus regular libraries are doing.

### Modifications

 * Ensure metric type is printed, once, before the metric is printed
 * Removed space after comma in labels. While this is parsed correctly by all 
implementation, the spec doesn't actually allow a space in that position.


[ Full content available at: https://github.com/apache/pulsar/pull/2679 ]
This message was relayed via gitbox.apache.org for [email protected]

Reply via email to