Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AppStorageConfig ¶
AppStorageConfig contains app storage configuration
type Config ¶
type Config struct {
Server ServerConfig `yaml:"server"`
OTLP OTLPConfig `yaml:"otlp"`
Storage StorageConfig `yaml:"storage"`
Retention RetentionConfig `yaml:"retention"`
Rollups RollupsConfig `yaml:"rollups"`
Logging LoggingConfig `yaml:"logging"`
Worker WorkerConfig `yaml:"worker"`
}
Config represents the application configuration
func LoadConfig ¶
LoadConfig loads configuration from a YAML file
type LoggingConfig ¶
LoggingConfig contains logging configuration
type OTLPConfig ¶
type OTLPConfig struct {
GRPCEndpoint string `yaml:"grpc_endpoint"`
HTTPEndpoint string `yaml:"http_endpoint"`
AgentGRPCEndpoint string `yaml:"agent_grpc_endpoint"` // Endpoint to offer to agents (if different from grpc_endpoint)
AgentHTTPEndpoint string `yaml:"agent_http_endpoint"` // Endpoint to offer to agents (if different from http_endpoint)
}
OTLPConfig contains OTLP receiver configuration
type RetentionConfig ¶
type RetentionConfig struct {
RawMetrics string `yaml:"raw_metrics"`
RawLogs string `yaml:"raw_logs"`
Rollups1m string `yaml:"rollups_1m"`
Rollups5m string `yaml:"rollups_5m"`
}
RetentionConfig contains data retention configuration
type RollupsConfig ¶
type RollupsConfig struct {
Enabled bool `yaml:"enabled"`
Interval1m string `yaml:"interval_1m"`
Interval5m string `yaml:"interval_5m"`
}
RollupsConfig contains rollup configuration
type ServerConfig ¶
ServerConfig contains server configuration
type StorageConfig ¶
type StorageConfig struct {
App AppStorageConfig `yaml:"app"`
Telemetry TelemetryStorageConfig `yaml:"telemetry"`
}
StorageConfig contains storage configuration
type TelemetryStorageConfig ¶
TelemetryStorageConfig contains telemetry storage configuration
type WorkerConfig ¶ added in v0.1.2
type WorkerConfig struct {
QueueSize int `yaml:"queue_size"`
Workers int `yaml:"workers"`
Timeout string `yaml:"timeout"` // Duration string like "5s", "1m"
}
WorkerConfig contains worker pool configuration
Click to show internal directories.
Click to hide internal directories.