Skip to content
Snippets Groups Projects

Fix/remove unused influx db

Merged Karim Ahmed requested to merge fix/remove_unused_influx_db into master
1 unresolved thread
6 files
+ 1
158
Compare changes
  • Side-by-side
  • Inline
Files
6
+ 0
9
#!/bin/bash
notebook=$1
detector=$2
caltype=$3
host_name=`hostname`
while true; do
curl -i -XPOST 'http://exflqr18318:8086/write?db=calstats' --data-binary "characterize_load,host=$host_name,detector=$detector,cal_type=$caltype cpu=`cat /proc/loadavg | cut -f1 -d' '`,mem_used=`free | tail -2 | head -1 | tr -s ' ' | cut -d' ' -f3`,mem_free=`free | tail -2 | head -1 | tr -s ' ' | cut -d' ' -f4`"
sleep 10
done
Loading