Skip to content

Instantly share code, notes, and snippets.

@warmans
Created February 7, 2014 23:16
Show Gist options
  • Save warmans/8873919 to your computer and use it in GitHub Desktop.
Save warmans/8873919 to your computer and use it in GitHub Desktop.
Generate KairosDB activity
#!/bin/bash
# Current time in milliseconds
metric=load_value_test
host=127.0.0.1
for i in {1..10000}
do
now=$(($(date +%s%N)/1000000))
echo "put $metric $now $i name=A" | nc -w 30 $host 4242
echo "OK"
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment