prometheus

package
v1.2.5 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewPromClient

func NewPromClient(
	config Config,
) (domain.MetricsService, error)

Types

type Config

type Config struct {
	Endpoint string         `mapstructure:"endpoint" yaml:"endpoint"`
	Queries  []*QueryConfig `mapstructure:"queries" yaml:"queries"`
}

type QueryConfig

type QueryConfig struct {
	Name     string `mapstructure:"name" yaml:"name"`
	Template string `mapstructure:"template" yaml:"template"`
}

func DefaultQueriesConfig

func DefaultQueriesConfig() []*QueryConfig

Jump to

Keyboard shortcuts

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