net

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: 8 Imported by: 0

README

net

网络流量监控插件,比如各个网卡的流量、包量、错包情况等

Configuration

通常可以维持默认配置,不过有的时候,我们有些网卡不想采集,只想采集指定的网卡,可以通过 interfaces 这个配置来指定。

监控大盘

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NetIOStats

type NetIOStats struct {
	config.PluginConfig
	CollectProtocolStats bool     `toml:"collect_protocol_stats"`
	Interfaces           []string `toml:"interfaces"`
	// contains filtered or unexported fields
}

func (*NetIOStats) Clone

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

func (*NetIOStats) Gather

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

func (*NetIOStats) Init

func (s *NetIOStats) Init() error

func (*NetIOStats) Name

func (s *NetIOStats) Name() string

Jump to

Keyboard shortcuts

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