Skip to content

Instantly share code, notes, and snippets.

@zsol
Created October 9, 2012 20:32
Show Gist options
  • Save zsol/3861231 to your computer and use it in GitHub Desktop.
Save zsol/3861231 to your computer and use it in GitHub Desktop.
carbon with 1s resolution
while true; do
echo "hlogster.test.count $i $(date +%s)" | /opt/graphite/bin/carbon-client.py localhost:2003:a;
echo $i
i=$((i+1))
i=$((i%10))
sleep 1
done
[hlogster]
pattern = ^hlogster\.
retentions = 1s:10s,10s:3d,1m:7d,5m:180d,15m:5y
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment