X-Git-Url: http://git.rot13.org/?p=atop-influxdb;a=blobdiff_plain;f=import-files.sh;fp=import-files.sh;h=256c30c78df8dbac4eeb98a5ac6fc8df8c5c1deb;hp=0000000000000000000000000000000000000000;hb=b1e6bb4fe4f1f24781d873b02eabb71598090ee9;hpb=d6d37f23835b9e6061295c55b5d20133e8a243c7 diff --git a/import-files.sh b/import-files.sh new file mode 100755 index 0000000..256c30c --- /dev/null +++ b/import-files.sh @@ -0,0 +1,6 @@ +#!/bin/sh -x +while [ ! -z "$1" ] ; do + echo "# $1"; + atopsar -A -r $1 | ./atop2influx.pl | curl -i -X POST http://localhost:8086/write?db=atop --data-binary '@-' + shift; +done