2022-06-08 05:37:08 +08:00
|
|
|
# Internet Speed Monitor Input Plugin
|
2021-09-15 05:26:49 +08:00
|
|
|
|
2022-06-08 05:37:08 +08:00
|
|
|
The `Internet Speed Monitor` collects data about the internet speed on the
|
|
|
|
|
system.
|
2021-09-15 05:26:49 +08:00
|
|
|
|
2022-09-26 21:24:20 +08:00
|
|
|
On some systems, the default settings may cause speed tests to fail; if this
|
|
|
|
|
affects you then try enabling `memory_saving_mode`. This reduces the memory
|
|
|
|
|
requirements for the test, and may reduce the runtime of the test. However,
|
|
|
|
|
please be aware that this may also reduce the accuracy of the test for fast
|
|
|
|
|
(>30Mb/s) connections. This setting enables the upstream
|
|
|
|
|
[Memory Saving Mode](https://github.com/showwin/speedtest-go#memory-saving-mode)
|
|
|
|
|
|
2021-09-15 05:26:49 +08:00
|
|
|
## Configuration
|
|
|
|
|
|
2022-05-24 21:49:47 +08:00
|
|
|
```toml @sample.conf
|
2022-04-08 06:01:21 +08:00
|
|
|
# Monitors internet speed using speedtest.net service
|
2021-09-15 05:26:49 +08:00
|
|
|
[[inputs.internet_speed]]
|
2022-05-20 01:31:33 +08:00
|
|
|
## This plugin downloads many MB of data each time it is run. As such
|
|
|
|
|
## consider setting a higher interval for this plugin to reduce the
|
|
|
|
|
## demand on your internet connection.
|
|
|
|
|
# interval = "60m"
|
|
|
|
|
|
2022-09-26 21:24:20 +08:00
|
|
|
## Enable to reduce memory usage
|
|
|
|
|
# memory_saving_mode = false
|
2022-02-02 06:12:24 +08:00
|
|
|
|
|
|
|
|
## Caches the closest server location
|
|
|
|
|
# cache = false
|
2021-09-15 05:26:49 +08:00
|
|
|
```
|
|
|
|
|
|
|
|
|
|
## 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
|
|
|
|
|
|
|
|
|
|
```sh
|
|
|
|
|
internet_speed,host=Sanyam-Ubuntu download=41.791,latency=28.518,upload=59.798 1631031183000000000
|
2021-11-25 03:18:53 +08:00
|
|
|
```
|