Skip to main content

MetricsService

Prometheus metrics access.

Methods

MethodDescription
Get(ctx)Fetch raw Prometheus metrics text

Usage

text, err := client.Metrics.Get(ctx)
fmt.Print(text)

Example

See examples/sdk/client/metrics.go for a complete working example.

Permissions

Unauthenticated. The /metrics endpoint is open.