Documentation
¶
Index ¶
Constants ¶
View Source
const (
// Port is the port prometheus listens on.
Port = 80
)
Variables ¶
This section is empty.
Functions ¶
func Container ¶
func Container(appName string, configurators ...Configurator) host.Configurator
Container runs prometheus container.
Types ¶
type Config ¶ added in v0.2.0
type Config struct {
Targets []TargetConfig
}
Config is the config of prometheus.
type Configurator ¶ added in v0.2.0
type Configurator func(c *Config)
Configurator is the function configuring the prometheus.
func Targets ¶ added in v0.2.0
func Targets(targets ...string) Configurator
Targets adds targets to scrape.
type TargetConfig ¶ added in v0.2.0
TargetConfig configures target to scrape metrics from.
Click to show internal directories.
Click to hide internal directories.