prometheus

package
v5.0.0-...-b98a0e9 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2024 License: AGPL-3.0 Imports: 23 Imported by: 0

Documentation

Overview

Package prometheus provides a Prometheus collector and the required cells HTTP services to expose metrics.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewIndex

func NewIndex(c context.Context) http.Handler

NewIndex creates an http.Handler to server index page

Types

type Opener

type Opener struct{}

func (*Opener) OpenURL

func (o *Opener) OpenURL(ctx context.Context, u *url.URL) (metrics.ReaderProvider, error)

type PromTargets

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

PromTargets is a serialization of Target Groups

func (*PromTargets) ToJson

func (p *PromTargets) ToJson() ([]byte, error)

Jump to

Keyboard shortcuts

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