]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mgr/zabbix: format ceph.[{#POOL},percent_used as float 39235/head
authorKefu Chai <kchai@redhat.com>
Tue, 2 Feb 2021 13:36:18 +0000 (21:36 +0800)
committerKonstantin Shalygin <k0ste@k0ste.ru>
Tue, 2 Feb 2021 19:54:48 +0000 (02:54 +0700)
commitcc5e46e27b2c105abf61dbd7b19c85004bb64b5f
treeb7e7e7b8ee85cc04ae012032110a4d2044cd08d1
parentf68164023d01b12676acfab90561b8c846f71ff9
mgr/zabbix: format ceph.[{#POOL},percent_used as float

also, multiply it with 100, as we are using 1.0 for 100% here.

for more details regarding the mapping from value_type to its values.
see
https://www.zabbix.com/documentation/4.0/manual/api/reference/item/object

Fixes: https://tracker.ceph.com/issues/48825
Signed-off-by: Kefu Chai <kchai@redhat.com>
(cherry picked from commit c8e5a051a016fa29a621ef021f942d9dac97205a)
src/pybind/mgr/zabbix/module.py
src/pybind/mgr/zabbix/zabbix_template.xml