Skip to content
Snippets Groups Projects

Update telegraf config to parse /proc/net/softnet_stat details

Merged Kerri Wait requested to merge ft-telegraf-networking into master
Files
2
#! /usr/bin/awk -f
{
printf("softnet,host=%s,cpu=%d sd_processed=%di,sd_dropped=%di,sd_time_squeeze=%di\n",
hostname,
NR-1,
strtonum("0x"$1),
strtonum("0x"$2),
strtonum("0x"$3)
)
}
\ No newline at end of file
{ printf("softnet,cpu=%d sd_processed=%di,sd_dropped=%di,sd_time_squeeze=%di\n", NR-1, strtonum("0x"$1), strtonum("0x"$2), strtonum("0x"$3)) }
\ No newline at end of file
Loading