]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mgr/zabbix: format ceph.[{#POOL},percent_used as float 39236/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:55:37 +0000 (02:55 +0700)
commit1cd9183216aff27022f683c0c2597bbe6ef792dd
treeefa0c8a58fc0d20fc86c5f56f51b3fa132d321c4
parent74275226ac79999bfd40e683dc9a1309e76033bf
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