speedtest-go-prometheus

command module
v0.0.0-...-fd80d22 Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2021 License: MIT Imports: 7 Imported by: 0

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

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

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