prometheus

package
v0.26.0 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2026 License: MIT Imports: 12 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 Port = 80

Port is the port prometheus listens on.

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