From 627d268d0b379e3476a55302ab1218f1d558da60 Mon Sep 17 00:00:00 2001 From: Thomas Roehl Date: Thu, 18 Mar 2021 17:30:08 +0100 Subject: [PATCH] Line protocol wants field keys --- collectors/memavg/read_memavg.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/collectors/memavg/read_memavg.sh b/collectors/memavg/read_memavg.sh index 12732a7..d2f3db1 100755 --- a/collectors/memavg/read_memavg.sh +++ b/collectors/memavg/read_memavg.sh @@ -7,6 +7,6 @@ FREE=$(grep "MemFree" /proc/meminfo | awk '{print $2}') HOST=$(hostname -s) -echo "mem_total,host=$HOST $TOTAL" -echo "mem_avail,host=$HOST $AVAIL" -echo "mem_free,host=$HOST $FREE" +echo "mem_total,host=$HOST value=$TOTAL" +echo "mem_avail,host=$HOST value=$AVAIL" +echo "mem_free,host=$HOST value=$FREE"