exporter

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultDishAddress = "192.168.100.1:9200"

Variables

This section is empty.

Functions

This section is empty.

Types

type Exporter

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

Exporter is a Starlink Dishy metrics exporter.

func NewExporter

func NewExporter(address string) (*Exporter, error)

NewExporter returns a new exporter that connects to the Starlink Dishy at the given address.

func (*Exporter) Close

func (e *Exporter) Close()

Close closes the gRPC connection.

func (*Exporter) Collect

func (e *Exporter) Collect(ch chan<- prometheus.Metric)

func (*Exporter) ConnState

func (e *Exporter) ConnState() connectivity.State

ConnState returns the gRPC connection state.

func (*Exporter) Describe

func (e *Exporter) Describe(ch chan<- *prometheus.Desc)

Jump to

Keyboard shortcuts

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