Documentation ¶
Overview ¶
Package prometheus offers a New function to return a Prometheus HTTP server together with all the metrics registered.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func New ¶
func New(settings config.Prometheus, gatherer Gatherer, logger Logger, ) (server *httpserver.Server, err error)
Types ¶
type Gatherer ¶
type Gatherer interface {
Gather() ([]*dto.MetricFamily, error)
}
Click to show internal directories.
Click to hide internal directories.