command
module
Version:
v0.0.0-...-fd80d22
Opens a new window with list of versions in this module.
Published: Jul 10, 2021
License: MIT
Opens a new window with license information.
Imports: 7
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
speedtest-go-prometheus
A simple utility that runs internet test using speedtest.net and reports the results with prometheus endpoint.
I used:
Inspired by
Usage
Consider this line:
sgp -b :8080 -i 60
sgp
is a compiled binary of this project
-b
is for "bind", the address which will be passed to ListenAndServe, default is :8080
-i
is for "interval", the time between measurement in seconds, default is 60
The server will start and will report metrics over /metrics
.
The metrics for speed test have a prefix speedtest
. Following metrics are available:
speedtest_latency
- a gauge, ms
speedtest_download
- a gauge, MB/s
speedtest_upload
- a gauge, MB/s
Documentation
¶
There is no documentation for this package.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.