]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mgr/prometheus: Make standby discoverable 43897/head
authorRoland Sommer <rol@ndsommer.de>
Fri, 8 Oct 2021 06:40:26 +0000 (08:40 +0200)
committerKonstantin Shalygin <k0ste@k0ste.ru>
Wed, 24 Nov 2021 10:16:15 +0000 (17:16 +0700)
commit24e843a075a74daf4708f51e2a2f050d2f8c1a47
tree43f0ef6bdb76caedcf3fa0c20e9da697f0168804
parentf80521e2bb5d43ba159e43b90813db67b316d9db
mgr/prometheus: Make standby discoverable

Enable config settings to modify standby's behaviour on the index page
This makes the standby discoverable by reverse proxy or loadbalancer
setups. Testing for the empty response of the '/metrics' endpoint would
trigger metric collection on the active manager instance.

The newly added configuration options settings standby_behaviour and
standby_error_status_code are documented and flagged as runtime, as
modifying both settings has an immediate effect (no restart required).

Co-authored-by: Ernesto Puerta <37327689+epuertat@users.noreply.github.com>
Signed-off-by: Roland Sommer <rol@ndsommer.de>
Fixes: https://tracker.ceph.com/issues/53229
(cherry picked from commit c1570f870e28d8fd4cd072832f1a2e19bac663eb)
doc/mgr/prometheus.rst
src/pybind/mgr/prometheus/module.py