]> git.ipfire.org Git - thirdparty/pdns.git/commit
Adjust Content-Type header for Prometheus endpoint to include version 15211/head
authorWouter de Vries <wouter@cloudflare.com>
Tue, 21 Jan 2025 14:18:57 +0000 (15:18 +0100)
committerOtto Moerbeek <otto.moerbeek@open-xchange.com>
Mon, 24 Feb 2025 11:15:30 +0000 (12:15 +0100)
commitfe9f4ff2d99d868ff751e1ab90cff5482cdbfbb4
treed77858311c64def9e46257fec5ea78da59db4637
parent544037cd123e8662877b5dc0b7963f5a094a2faf
Adjust Content-Type header for Prometheus endpoint to include version

Prometheus v3 will, by default, be more strict about the content-types
returned from scrape endpoints. With the current value (just
`text/plain`), it would fail to scrape.

In this commit the value is changed from `text/plain` to `text/plain;
version=0.0.4`.

See also [1] and [2]
[1] https://prometheus.io/docs/instrumenting/exposition_formats/
[2] https://prometheus.io/docs/prometheus/3.0/migration/

(cherry picked from commit f572f31ecd8d76793f1f5864ab740f6f7f7e2b84)
pdns/dnsdistdist/dnsdist-web.cc
pdns/recursordist/docs/http-api/prometheus.rst
pdns/recursordist/ws-recursor.cc
pdns/ws-auth.cc