Documentation
¶
Index ¶
Constants ¶
View Source
const MetricPort = 9000
MetricPort is the port metric server listens on.
Variables ¶
View Source
var Dashboard grafanatypes.Dashboard
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 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.
Click to show internal directories.
Click to hide internal directories.