Help us shape the future of Go! Take the 2026 Go Developer Survey

prometheus

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2025 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MetricNameGoMemstatsAllocBytes = "go_memstats_alloc_bytes"
	MetricNameGoGoroutines         = "go_goroutines"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type LabeledValue

type LabeledValue struct {
	Labels map[string]string
	Value  float64
}

type MetricsClient

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

func NewMetricsClient

func NewMetricsClient(url string) *MetricsClient

func (*MetricsClient) Fetch

func (m *MetricsClient) Fetch(ctx context.Context) error

func (*MetricsClient) GetCounterValues

func (m *MetricsClient) GetCounterValues(name string) []LabeledValue

func (*MetricsClient) GetGaugeValues

func (m *MetricsClient) GetGaugeValues(name string) []LabeledValue

func (*MetricsClient) WaitForReady

func (m *MetricsClient) WaitForReady(ctx context.Context, timeout time.Duration) error

Jump to

Keyboard shortcuts

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