Netstat Telegraf Input Plugin
Powerful performance with an easy integration, powered by Telegraf, the open source data connector built by InfluxData.
5B+
Telegraf downloads
#1
Time series database
Source: DB Engines
1B+
Downloads of InfluxDB
2,800+
Contributors
Table of Contents
Powerful Performance, Limitless Scale
Collect, organize, and act on massive volumes of high-velocity data. Any data is more valuable when you think of it as time series data. with InfluxDB, the #1 time series platform built to scale with Telegraf.
See Ways to Get Started
Netstat is a command line tool for gathering TCP network statistics like the number of network connections, routing tables, interface statistics, masquerade connections, and more. Netstat is a cross-platform tool with support for macOS, BSD, Linux, and Windows operating systems.
Why use a Telegraf plugin for Netstat?
The Telegraf plugin for Netstat allows users to easily collect, display, and store the data streaming from Netstat into InfluxDB for long-term storage and analysis. This data can then be used to search for potential trends or other insights that might have been missed otherwise.
How to monitor Netstat using the Telegraf plugin
Configuring Netstat for use with Telegraf is very easy. Simply go to the Telegraf configuration file and add:
[[inputs.netstat]]
Only a single line of text in your configuration file is needed to begin ingesting Netstat data into InfluxDB.
Key Netstat metrics to use for monitoring
Some of the key metrics from Netstat that you should monitor include:
- TCP connection state - Netstat provides 12 different states for TCP connections. Those are
established
,syn_sent
,syn_recv
,fin_wait1
,fin_wait2
,time_wait
,close
,close_wait
,last_ack
,listen
,closing
,none
. - Unit counts for measurements - For each of the 12 states the Netstate Telegraf plugin will provide the number count of each current connection type.
- UDP socket connection counts - Netstat also provides the number of active UDP connections.
Powerful Performance, Limitless Scale
Collect, organize, and act on massive volumes of high-velocity data. Any data is more valuable when you think of it as time series data. with InfluxDB, the #1 time series platform built to scale with Telegraf.
See Ways to Get Started