]> git.proxmox.com Git - pve-manager.git/commit
fix #1683: do not send non-numeric values to graphite
authorDominik Csapak <d.csapak@proxmox.com>
Mon, 5 Mar 2018 08:58:40 +0000 (09:58 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Mon, 5 Mar 2018 13:21:50 +0000 (14:21 +0100)
commit5a5aed73e22e15076439e832a054cf7c60e1cb2b
treec7f34d4794a2dd4b3597e9200407d8f3acbc396b
parent03e12c545bfbb803301629f482a5fdb626ce2341
fix #1683: do not send non-numeric values to graphite

the graphite daemons which accept the data (carbon), only
accepts numeric values, and logs all invalid lines

since that were about 5 values per vm/ct this generated lot of noise
in the carbon log

so we check with a regex if a value is numeric, and
additionally we have a blacklist of keys which seem to be numeric but
are either boolean (e.g. template) or a state (e.g. pid)

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
PVE/Status/Graphite.pm