projects
/
atop-influxdb
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
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
+++ 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