2022-06-14 14:20:13 +07:00
|
|
|
package schema
|
|
|
|
|
|
|
|
import (
|
|
|
|
"net"
|
|
|
|
)
|
|
|
|
|
|
|
|
// TelemetryConfig represents the telemetry config.
|
|
|
|
type TelemetryConfig struct {
|
|
|
|
Metrics TelemetryMetricsConfig `koanf:"metrics"`
|
|
|
|
}
|
|
|
|
|
|
|
|
// TelemetryMetricsConfig represents the telemetry metrics config.
|
|
|
|
type TelemetryMetricsConfig struct {
|
2022-07-05 11:43:12 +07:00
|
|
|
Enabled bool `koanf:"enabled"`
|
|
|
|
Address *Address `koanf:"address"`
|
2022-06-14 14:20:13 +07:00
|
|
|
}
|
|
|
|
|
|
|
|
// DefaultTelemetryConfig is the default telemetry configuration.
|
|
|
|
var DefaultTelemetryConfig = TelemetryConfig{
|
|
|
|
Metrics: TelemetryMetricsConfig{
|
2022-07-05 11:43:12 +07:00
|
|
|
Address: &Address{true, "tcp", net.ParseIP("0.0.0.0"), 9959},
|
2022-06-14 14:20:13 +07:00
|
|
|
},
|
|
|
|
}
|