prometheus

package
v1.8.0-crc0 Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2025 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	SharedServer = &PromServer{}
)

Functions

This section is empty.

Types

type PromServer

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

func InitializePrometheus

func InitializePrometheus(settings *config.MetricsSettings) *PromServer

InitializePrometheus starts the global Prometheus server, used for operational metrics and prom-encode stages if they don't override the server settings

func StartServerAsync

func StartServerAsync(conn *api.PromConnectionInfo, regName string, registry prom.Gatherer) *PromServer

StartServerAsync listens for prometheus resource usage requests

func (*PromServer) Gather

func (ps *PromServer) Gather() ([]*dto.MetricFamily, error)

func (*PromServer) SetRegistry

func (ps *PromServer) SetRegistry(name string, registry prom.Gatherer)

func (*PromServer) Shutdown

func (ps *PromServer) Shutdown(ctx context.Context) error

Jump to

Keyboard shortcuts

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