Untitled

From Crippled Gibbon, 4 Years ago, written in Plain Text, viewed 232 times. This paste will check out in 1 Second.
URL https://paste.steamr.com/view/465c6fbd Embed
Download Paste or View Raw
  1.  
  2. cat /tmp/bob \
  3.   | tail -n+2 \
  4.   | awk '
  5. {
  6.  # node
  7.  split($6, z, "*");
  8.  node=z[2];
  9.  if ("" ~ node)
  10.    node=z[1];
  11.  
  12.   x[$2, $3, $4, node]++
  13. }
  14. END {
  15.   for (i in x) {
  16.     split(i, y, SUBSEP);
  17.     print "lsf,username="y[1]",status="y[2]",queue="y[3]",node="y[4]" value="x[y[1], y[2], y[3], y[4]]
  18.   }
  19. }' \
  20.   | while read i ; do echo "curl -i -X POST xxx --data-binary '$i `date +%s"000000000"`" ; done
  21.  
  22.  
  23.  
  24. curl -i -XPOST 'http://localhost:8086/write?db=mydb' --data-binary 'cpu_load_short,host=server01,region=us-west value=0.64
  25.  
  26.  

Replies to Untitled rss

Title Name Language When
cluster monitor to influxdb Hot Armadillo text 4 Years ago.

Reply to "Untitled"

Here you can reply to the paste above