prometheus

package
v2.0.0-rc5 Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2024 License: MIT Imports: 5 Imported by: 0

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)
}

type Logger

type Logger interface {
	Info(s string)
	Error(s string)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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