Documentation ¶
Index ¶
Constants ¶
View Source
const (
AppName = "metric"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type METRIC_PROVIDER ¶ added in v2.0.3
type METRIC_PROVIDER string
const (
METRIC_PROVIDER_PROMETHEUS METRIC_PROVIDER = "prometheus"
)
type Metric ¶
type Metric struct { Enable bool `json:"enable" yaml:"enable" toml:"enable" env:"METRIC_ENABLE"` Provider METRIC_PROVIDER `toml:"provider" json:"provider" yaml:"provider" env:"METRIC_PROVIDER"` Endpoint string `toml:"endpoint" json:"endpoint" yaml:"endpoint" env:"METRIC_ENDPOINT"` }
func NewDefaultMetric ¶ added in v2.0.3
func NewDefaultMetric() *Metric
Click to show internal directories.
Click to hide internal directories.