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()
Click to show internal directories.
Click to hide internal directories.