Created
July 11, 2022 18:15
-
-
Save lucianolacurcia/530c766e9c30757dfe9f52525f438ae9 to your computer and use it in GitHub Desktop.
Send multiple metrics at once to graphite
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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> |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This will send 3 metrics with tree minutes of difference between them to the graphite database. all at once