netstat

package
v0.0.0-...-5655933 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2023 License: MIT Imports: 18 Imported by: 0

README

netstat

该插件采集网络连接情况,比如有多少 time_wait 连接,多少 established 连接

监控大盘

该插件没有单独的监控大盘,OS 的监控大盘统一放到 system 下面了

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FS

type FS string

FS represents a pseudo-filesystem, normally /proc or /sys, which provides an interface to kernel data structures.

func (FS) Path

func (fs FS) Path(p ...string) string

Path appends the given path elements to the filesystem path, adding separators as necessary.

type NetStats

type NetStats struct {
	config.PluginConfig

	DisableSummaryStats    bool `toml:"disable_summary_stats"`
	DisableConnectionStats bool `toml:"disable_connection_stats"`
	TcpExt                 bool `toml:"tcp_ext"`
	IpExt                  bool `toml:"ip_ext"`
	// contains filtered or unexported fields
}

func (*NetStats) Clone

func (s *NetStats) Clone() inputs.Input

func (*NetStats) Gather

func (s *NetStats) Gather(slist *types.SampleList)

func (*NetStats) Name

func (s *NetStats) Name() string

type Proc

type Proc struct {
	// The process ID.
	PID int
	// contains filtered or unexported fields
}

Proc provides information about a running process.

func (Proc) Netstat

func (p Proc) Netstat() (*ProcNetstat, error)

type ProcNetstat

type ProcNetstat struct {
	// The process ID.
	PID    int
	TcpExt map[string]interface{}
	IpExt  map[string]interface{}
}

ProcNetstat models the content of /proc/<pid>/net/netstat.

Jump to

Keyboard shortcuts

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