prometheus

package
v4.1.3 Latest Latest
Warning

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

Go to latest
Published: May 9, 2023 License: AGPL-3.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetFileName

func GetFileName(serviceName string) string

func NewIndex added in v4.0.5

func NewIndex(c context.Context) http.Handler

func StopWatchingTargets

func StopWatchingTargets()

func WatchTargets

func WatchTargets(ctx context.Context, serviceName string) error

Types

type Handler

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

func NewHandler

func NewHandler(reporter prometheus.Reporter) *Handler

func (*Handler) HTTPHandler

func (h *Handler) HTTPHandler() http.Handler

type PromTargets

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

func ProcessesAsTargets

func ProcessesAsTargets(ctx context.Context, reg registry.Registry, includeCaddy bool, replaceHost string) *PromTargets

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