frontend

package
v0.19.0 Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config added in v0.17.1

type Config struct {
	Version       string
	MetricsPath   string
	ListenAddress string
}

Config is a fronend config

type Frontend

type Frontend struct {
	// contains filtered or unexported fields
}

Frontend represents an HTTP prometheus interface

func New

func New(cfg *Config, proberReg ProberRegistry) *Frontend

New creates a new HTTP frontend

func (*Frontend) Start

func (fe *Frontend) Start()

Start starts the frontend

type ProberRegistry added in v0.17.1

type ProberRegistry interface {
	GetCollectors() []prometheus.Collector
}

ProberRegistry is the interface to a prober registry

Jump to

Keyboard shortcuts

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