import helper scripts
[atop-influxdb] / import-files.sh
diff --git a/import-files.sh b/import-files.sh
new file mode 100755 (executable)
index 0000000..256c30c
--- /dev/null
@@ -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