]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
mgr/zabbix: format ceph.[{#POOL},percent_used as float
authorKefu Chai <kchai@redhat.com>
Tue, 2 Feb 2021 13:36:18 +0000 (21:36 +0800)
committerKefu Chai <kchai@redhat.com>
Tue, 2 Feb 2021 13:39:57 +0000 (21:39 +0800)
commitc8e5a051a016fa29a621ef021f942d9dac97205a
tree6bc73bf3b469d9dfcb19b33d49acbb792adcb36e
parentf6b18055ab5bbb4476962ef5f03627c4623cb2ea
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>
src/pybind/mgr/zabbix/module.py
src/pybind/mgr/zabbix/zabbix_template.xml