prometheus

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2026 License: MIT Imports: 11 Imported by: 0

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

type TargetConfig struct {
	Scheme  string
	Address string
}

TargetConfig configures target to scrape metrics from.

Jump to

Keyboard shortcuts

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