prometheus

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: May 23, 2026 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Recorder

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

func NewRecorder

func NewRecorder() *Recorder

func (*Recorder) Handler

func (r *Recorder) Handler() http.Handler

func (*Recorder) IncCounter

func (r *Recorder) IncCounter(_ context.Context, name observability.MetricName, attrs ...observability.Attribute)

func (*Recorder) ObserveHistogram

func (r *Recorder) ObserveHistogram(_ context.Context, name observability.MetricName, value float64, attrs ...observability.Attribute)

func (*Recorder) RecordQueueMetrics

func (r *Recorder) RecordQueueMetrics(ctx context.Context, queue async.Queue) error

RecordQueueMetrics updates queue depth gauges from a queue that implements JobAdmin.

func (*Recorder) SetGauge

func (r *Recorder) SetGauge(_ context.Context, name observability.MetricName, value float64, attrs ...observability.Attribute)

Jump to

Keyboard shortcuts

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