MetricsService
Prometheus metrics access.
Methods
| Method | Description |
|---|---|
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.