- cat /tmp/bob \
- | tail -n+2 \
- | awk '
- {
- # node
- split($6, z, "*");
- node=z[2];
- if ("" ~ node)
- node=z[1];
- x[$2, $3, $4, node]++
- }
- END {
- for (i in x) {
- split(i, y, SUBSEP);
- print "lsf,username="y[1]",status="y[2]",queue="y[3]",node="y[4]" value="x[y[1], y[2], y[3], y[4]]
- }
- }' \
- | while read i ; do echo "curl -i -X POST xxx --data-binary '$i `date +%s"000000000"`" ; done
- curl -i -XPOST 'http://localhost:8086/write?db=mydb' --data-binary 'cpu_load_short,host=server01,region=us-west value=0.64
Untitled
From Crippled Gibbon, 4 Years ago, written in Plain Text, viewed 375 times.
This paste will hop the perch in 1 Second.
URL https://paste.steamr.com/view/465c6fbd
Embed
Download Paste or View Raw
— Expand Paste to full width of browser