Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetupMetrics ¶
func SetupMetrics(cfg config.MetricsConf) (metrics.Provider, error)
SetupMetrics inicializa o provedor correto baseado no YAML.
Types ¶
type DatadogProvider ¶
type DatadogProvider struct {
// contains filtered or unexported fields
}
DatadogProvider adapta a lib oficial do Datadog para nossa interface.
func (*DatadogProvider) Count ¶
func (d *DatadogProvider) Count(name string, value float64, tags []string) error
type NoopProvider ¶
type NoopProvider struct{}
NoopProvider é um placeholder para quando métricas estão desabilitadas.
func (*NoopProvider) Count ¶
func (n *NoopProvider) Count(name string, value float64, tags []string) error
Click to show internal directories.
Click to hide internal directories.