projects
/
atop-influxdb
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
specify DB using enviroment variable
[atop-influxdb]
/
import-files.sh
1
#!/bin/sh -x
2
while [ ! -z "$1" ] ; do
3
echo "# $1";
4
atopsar -A -r $1 | ./atop2influx.pl | curl -i -X POST http://localhost:8086/write?db=atop --data-binary '@-'
5
shift;
6
done