Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Counter ¶
type Counter[V Value] struct { // contains filtered or unexported fields }
func NewCounter ¶
func NewCounter[V Value](name string, cfg CounterConfig) (_ *Counter[V])
NewCounter creates a new counter metric, without any labels. Use NewCounterGroup for metrics with labels.
type CounterConfig ¶
type CounterConfig struct {
// contains filtered or unexported fields
}
CounterConfig configures a counter. It's currently a placeholder as there is not yet any additional configuration.
type CounterGroup ¶
func NewCounterGroup ¶
func NewCounterGroup[L Labels, V Value](name string, cfg CounterConfig) (_ *CounterGroup[L, V])
NewCounterGroup creates a new counter group with a set of labels, where each unique combination of labels becomes its own counter.
The Labels type must be a named struct, where each field corresponds to a single label. Each field must be of type string.
func (*CounterGroup[L, V]) With ¶
func (*CounterGroup[L, V]) With(labels L) (_ *Counter[V])
type Gauge ¶
type Gauge[V Value] struct { // contains filtered or unexported fields }
type GaugeConfig ¶
type GaugeConfig struct {
// contains filtered or unexported fields
}
GaugeConfig configures a gauge. It's currently a placeholder as there is not yet any additional configuration.
type GaugeGroup ¶
func NewGaugeGroup ¶
func NewGaugeGroup[L Labels, V Value](name string, cfg GaugeConfig) (_ *GaugeGroup[L, V])
NewGaugeGroup creates a new gauge group with a set of labels, where each unique combination of labels becomes its own gauge.
The Labels type must be a named struct, where each field corresponds to a single label. Each field must be of type string.
func (*GaugeGroup[L, V]) With ¶
func (*GaugeGroup[L, V]) With(labels L) (_ *Gauge[V])
type Labels ¶
type Labels interface { comparable }