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>
data['[{0},wr_ops]'.format(pool['name'])] = pool['stats']['wr']
data['[{0},bytes_used]'.format(pool['name'])] = pool['stats']['bytes_used']
data['[{0},stored_raw]'.format(pool['name'])] = pool['stats']['stored_raw']
- data['[{0},percent_used]'.format(pool['name'])] = pool['stats']['percent_used']
+ data['[{0},percent_used]'.format(pool['name'])] = pool['stats']['percent_used'] * 100
data['wr_ops'] = wr_ops
data['rd_ops'] = rd_ops
<history>90</history>
<trends>365</trends>
<status>0</status>
- <value_type>3</value_type>
+ <value_type>0</value_type>
<allowed_hosts/>
<units>%</units>
<delta>0</delta>