]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mgr/prometheus: Make standby discoverable 43464/head
authorRoland Sommer <rol@ndsommer.de>
Fri, 8 Oct 2021 06:40:26 +0000 (08:40 +0200)
committerRoland Sommer <rol@ndsommer.de>
Thu, 11 Nov 2021 07:28:40 +0000 (08:28 +0100)
commitc1570f870e28d8fd4cd072832f1a2e19bac663eb
tree0cd8acdaa0fa380126a1150d790c7a2785babe77
parent2363078751b050bb5b67f96097801e9fa16c07f3
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
doc/mgr/prometheus.rst
src/pybind/mgr/prometheus/module.py