internet_speed

package
v1.20.2 Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2021 License: MIT Imports: 4 Imported by: 0

README

Internet Speed Monitor

The Internet Speed Monitor collects data about the internet speed on the system.

Configuration

# Monitors internet speed in the network
[[inputs.internet_speed]]
  ## Sets if runs file download test
  ## Default: false
  enable_file_download = false

Metrics

It collects latency, download speed and upload speed

Name filed name type Unit
Download Speed download float64 Mbps
Upload Speed upload float64 Mbps
Latency latency float64 ms

Example Output

internet_speed,host=Sanyam-Ubuntu download=41.791,latency=28.518,upload=59.798 1631031183000000000

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type InternetSpeed

type InternetSpeed struct {
	EnableFileDownload bool            `toml:"enable_file_download"`
	Log                telegraf.Logger `toml:"-"`
}

InternetSpeed is used to store configuration values.

func (*InternetSpeed) Description

func (is *InternetSpeed) Description() string

Description returns information about the plugin.

func (*InternetSpeed) Gather

func (is *InternetSpeed) Gather(acc telegraf.Accumulator) error

func (*InternetSpeed) SampleConfig

func (is *InternetSpeed) SampleConfig() string

SampleConfig displays configuration instructions.

Jump to

Keyboard shortcuts

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