eye

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2026 License: MIT Imports: 23 Imported by: 0

Documentation

Index

Constants

View Source
const MetricPort = 9000

MetricPort is the port metric server listens on.

Variables

Dashboard is the dashboard providing host parameters.

Functions

func MetricsServer added in v0.2.0

func MetricsServer(configurators ...Configurator) host.Configurator

MetricsServer exposes http server presenting metrics in prometheus format.

func RemoteLogging

func RemoteLogging(lokiURL string) host.Configurator

RemoteLogging configures remote logging.

func SystemMonitor

func SystemMonitor() host.Configurator

SystemMonitor returns new service collecting system metrics.

Types

type Config added in v0.2.0

type Config struct {
	Addresses []net.IP
}

Config is the configuration of metric server.

type Configurator added in v0.2.0

type Configurator func(c *Config)

Configurator is the function configuring metric server.

func Addresses added in v0.2.0

func Addresses(ips ...string) Configurator

Addresses adds IPs to query for metrics.

Directories

Path Synopsis
cpu

Jump to

Keyboard shortcuts

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