Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
MetricsEnabled bool `json:"enabled" toml:"enabled"`
MeterName string `json:"meter_name" toml:"meter_name"`
ServiceName string `json:"service_name" toml:"service_name" comment:"in Prometheus this is transformed into the label 'exported_job'"`
ServiceInstanceID string `` /* 268-byte string literal not displayed */
ExporterEndpoint string `` /* 131-byte string literal not displayed */
}
Config is the configuration struct for the tm2 telemetry package
func DefaultTelemetryConfig ¶
func DefaultTelemetryConfig() *Config
DefaultTelemetryConfig is the default configuration used for the node
func (*Config) ValidateBasic ¶
ValidateBasic performs basic telemetry config validation and returns an error if any check fails
Click to show internal directories.
Click to hide internal directories.