prometheus / docs

Prometheus documentation: content and static site generator
https://prometheus.io
Apache License 2.0
659 stars 1.01k forks source link

exposition format: How to deal with duplicate metric families #547

Open beorn7 opened 8 years ago

beorn7 commented 8 years ago

The current spec is crystal clear that duplicate metric families (and, correspondingly, multiple TYPE and HELP lines for the same metric name in the text format) are not allowed in a single exposition.

However, the federation endopint of the prometheus server is currently in breach of that, see. https://github.com/prometheus/prometheus/issues/1963 .

This issue is about whether we should allow duplicate metric families, and if yes, how to deal with them. (Problematic right now is that the Prometheus server tolerates them if ingesting protobuf, and just ingests them one after another, while it rejects any text format exposition with multiple TYPE or HELP lines for the same metric name.)

beorn7 commented 7 years ago

To clarify: prometheus/prometheus#1963 is fixed, so federation output is not in breach of the spec anymore.