Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save lucianolacurcia/530c766e9c30757dfe9f52525f438ae9 to your computer and use it in GitHub Desktop.

Select an option

Save lucianolacurcia/530c766e9c30757dfe9f52525f438ae9 to your computer and use it in GitHub Desktop.
Send multiple metrics at once to graphite
printf "foo.bar.baz;tag1=value1;tag2=value2 1500 `date +%s`\nfoo.bar.baz;tag1=value1;tag2=value2 2500 `date +%s -d "1 minute ago"`\nfoo.bar.baz;tag1=value1;tag2=value2 3500 `date +%s -d "2 minute ago"`" | nc -w 1 <graphite host> <graphite port>
@lucianolacurcia
Copy link
Author

This will send 3 metrics with tree minutes of difference between them to the graphite database. all at once

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment