Last active
September 23, 2021 20:46
-
-
Save jserviceorg/27f2e544fee08c081bd3694eeb34a02c to your computer and use it in GitHub Desktop.
statgrab to influx via telegraf/netcat
This file contains 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
statgrab -b | grep -E '[0-9]+' | tr -s ": " ":" | tr -s "." "_" | awk '{print $0"|c"}' |awk '/[0-9]/' |nc -C -w 1 -u localhost 8125 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment