TritonDataCenter / node-artedi

a library for measuring fish
2 stars 4 forks source link

Provide Prometheus HTTP header #10

Open KodyKantor opened 7 years ago

KodyKantor commented 7 years ago

Applications that expose Prometheus metrics are expected to include an HTTP header. The current header looks like this:

'Content-Type: text/plain; version=0.0.4'

artedi already has a global constant for specifying the Prometheus text format version, so we could also allow users to easily retrieve the HTTP header to include when they have their metrics endpoint scraped.