adapter

package
v0.16.0 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2023 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrMetricNotFound = errors.New("metric not found")

Functions

This section is empty.

Types

type PrometheusAdapter

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

func NewMetricsPrometheusAdapter

func NewMetricsPrometheusAdapter() *PrometheusAdapter

func (*PrometheusAdapter) ConfigureContainer

func (a *PrometheusAdapter) ConfigureContainer(uuid uuid.UUID) error

func (*PrometheusAdapter) Dec

func (a *PrometheusAdapter) Dec(metricID string, labels ...string)

func (*PrometheusAdapter) Inc

func (a *PrometheusAdapter) Inc(metricID string, labels ...string)

func (*PrometheusAdapter) RegisterMetrics

func (a *PrometheusAdapter) RegisterMetrics(metrics []metricstypes.Metric)

func (*PrometheusAdapter) Set

func (a *PrometheusAdapter) Set(metricID string, value interface{}, labels ...string)

Jump to

Keyboard shortcuts

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