]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
mgr/prometheus: metrics header for standby module
authorNitzan Mordechai <nmordech@redhat.com>
Thu, 11 Dec 2025 06:32:31 +0000 (06:32 +0000)
committerNitzan Mordechai <nmordch@li-2bf86dcc-35b8-11b2-a85c-b1dfd4248b42.ibm.com>
Wed, 7 Jan 2026 11:16:40 +0000 (13:16 +0200)
PR #65245 drop the header set for standby module,
we should still have it.

Fixes: https://tracker.ceph.com/issues/74149
Signed-off-by: Nitzan Mordechai <nmordech@ibm.com>
src/pybind/mgr/prometheus/module.py

index 679c7fa894e5dabe7fc01a83687f4a9b36b8866e..76ee581aad926ba515ae9d1b725e289514e93555 100644 (file)
@@ -2323,6 +2323,7 @@ class StandbyModule(MgrStandbyModule):
 
             @cherrypy.expose
             def metrics(self) -> str:
+                cherrypy.response.headers['Content-Type'] = 'text/plain'
                 return ''
 
         cherrypy.tree.mount(Root(), '/', {})