Skip to content

Instantly share code, notes, and snippets.

@jserviceorg
Last active September 23, 2021 20:46
Show Gist options
  • Save jserviceorg/27f2e544fee08c081bd3694eeb34a02c to your computer and use it in GitHub Desktop.
Save jserviceorg/27f2e544fee08c081bd3694eeb34a02c to your computer and use it in GitHub Desktop.
statgrab to influx via telegraf/netcat
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