eye

package
v0.27.1 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2026 License: MIT Imports: 23 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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