prometheus

package
v2.0.0-rc8 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package prometheus defines shared elements for Prometheus.

Index

Constants

This section is empty.

Variables

View Source
var ErrPrefixContainsSpace = errors.New("prefix contains one or more spaces")

Functions

This section is empty.

Types

type Registry

type Registry interface {
	prometheus.Registerer
}

type Settings

type Settings struct {
	// Prefix, aka Subsystem, is the prefix string in front
	// of all metric names.
	Prefix string
	// Registry is the Prometheus registry to use for the metrics.
	// It defaults to prometheus.DefaultRegisterer if left unset.
	Registry Registry
}

func (*Settings) SetDefaults

func (s *Settings) SetDefaults()

func (Settings) Validate

func (s Settings) Validate() (err error)

Jump to

Keyboard shortcuts

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