Lelik13a / Zabbix-GluserFS

Monitor GlusterFS via gluster tool
9 stars 5 forks source link

Incorrect volume size #5

Open NdK73 opened 3 years ago

NdK73 commented 3 years ago

Seems "Gluster volume size" metric is just "Total bricks size / replica count". That's incorrect when you have a "replica 3 arbiter 1" volume. Arbiters should be subtracted from replica count. IIUC the prototype for the item should be changed from last(//gluster.bricks.size[{#NAME}]) / last(//gluster.volume.replicaCount[{#NAME}]) to account for the arbiters, but I can't find a way to do it (excepr fixing it with a "-1", but in that case it will be wrong when there are no arbiters...).

Lelik13a commented 3 years ago

I think in this case you can use macros for volume multiplayer. Or think about jscript processing.