netstat

package
v1.23.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 16, 2022 License: MIT Imports: 6 Imported by: 3 modules, 2 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

Netstat Input Plugin

This plugin collects TCP connections state and UDP socket counts by using lsof.

Configuration

# Read TCP metrics such as established, time wait and sockets counts.
[[inputs.netstat]]
  # no configuration

Metrics

Supported TCP Connection states are follows.

  • established
  • syn_sent
  • syn_recv
  • fin_wait1
  • fin_wait2
  • time_wait
  • close
  • close_wait
  • last_ack
  • listen
  • closing
  • none

TCP Connection State measurements

Meta:

  • units: counts

Measurement names:

  • tcp_established
  • tcp_syn_sent
  • tcp_syn_recv
  • tcp_fin_wait1
  • tcp_fin_wait2
  • tcp_time_wait
  • tcp_close
  • tcp_close_wait
  • tcp_last_ack
  • tcp_listen
  • tcp_closing
  • tcp_none

If there are no connection on the state, the metric is not counted.

UDP socket counts measurements

Meta:

  • units: counts

Measurement names:

  • udp_socket

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NetStats

type NetStats struct {
	PS system.PS
}

func (*NetStats) Gather

func (ns *NetStats) Gather(acc telegraf.Accumulator) error

func (*NetStats) SampleConfig

func (*NetStats) SampleConfig() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL