prober

package
v0.0.0-...-dd72184 Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2023 License: MIT Imports: 11 Imported by: 0

README

Simple Prometheus prober for Icecast streams.

It will continuously attempt to connect and download a specified stream, exporting metrics on bandwidth and connection failures.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Prober

type Prober struct {
	// contains filtered or unexported fields
}

Prober continuously listens to a stream and exports some metrics related to connectivity and audio quality. If the connection fails, it will try to reconnect forever, without a timeout.

func New

func New(streamURL string) (*Prober, error)

New returns a new unstarted Prober.

func (*Prober) Run

func (p *Prober) Run()

Run the Prober forever.

Jump to

Keyboard shortcuts

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