]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
mgr/prometheus: Cast collect_timeout (scrape_interval) to float
authorBenjeman Meekhof <bmeekhof@users.noreply.github.com>
Mon, 29 Jul 2019 14:28:40 +0000 (10:28 -0400)
committerBenjeman Meekhof <bmeekhof@users.noreply.github.com>
Mon, 29 Jul 2019 14:52:35 +0000 (10:52 -0400)
commit26a74a0d83e068b0bb762c4c7066b4b195187e94
treef9e978b884630299173e1c187f8d5869d6b194a2
parent28a1e3cf791a7ac6c0cc2850955c5e72fada2958
mgr/prometheus: Cast collect_timeout (scrape_interval) to float

If set by user scrape_interval option is returned as non-float by get_localized_module_option.
Metric cache timeout comparison always returns true and data is never refreshed.

Fixes: https://tracker.ceph.com/issues/40997
Signed-off-by: Ben Meekhof <bmeekhof@umich.edu>
src/pybind/mgr/prometheus/module.py