metrics

package
v0.0.0-...-f65cf3b Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2024 License: AGPL-3.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewMetrics

func NewMetrics(config types.MonitoringConfig, source string) (repository.MetricsRepository, error)

func NewOpenMeterMetricsRepository

func NewOpenMeterMetricsRepository(omConfig types.OpenMeterConfig) repository.MetricsRepository

func NewPrometheusMetricsRepository

func NewPrometheusMetricsRepository(promConfig types.PrometheusConfig) repository.MetricsRepository

Types

type MetricsSource

type MetricsSource string
var (
	MetricsSourceGateway MetricsSource = "gateway"
	MetricsSourceWorker  MetricsSource = "worker"
)

type OpenMeterMetricsRepository

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

func (*OpenMeterMetricsRepository) IncrementCounter

func (o *OpenMeterMetricsRepository) IncrementCounter(name string, data map[string]interface{}, value float64) error

func (*OpenMeterMetricsRepository) Init

func (o *OpenMeterMetricsRepository) Init(source string) error

func (*OpenMeterMetricsRepository) SetGauge

func (o *OpenMeterMetricsRepository) SetGauge(name string, data map[string]interface{}, value float64) error

type PrometheusMetricsRepository

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

func (*PrometheusMetricsRepository) IncrementCounter

func (pr *PrometheusMetricsRepository) IncrementCounter(name string, metadata map[string]interface{}, value float64) error

func (*PrometheusMetricsRepository) Init

func (r *PrometheusMetricsRepository) Init(source string) error

func (*PrometheusMetricsRepository) SetGauge

func (pr *PrometheusMetricsRepository) SetGauge(name string, metadata map[string]interface{}, value float64) error

Jump to

Keyboard shortcuts

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