Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AlertingConfig ¶ added in v0.9.0
type AlertingConfig struct {
// WebhookSecret is a shared secret used to authenticate incoming alerting webhooks.
// This value must match the secret appended to the webhook URL configured in
// observability backends (e.g., OpenSearch, Prometheus).
WebhookSecret string `koanf:"webhook.secret"`
// RCAServiceURL is the base URL for the AI RCA (Root Cause Analysis) service.
// Used for health checks and triggering RCA analysis.
RCAServiceURL string `koanf:"rca.service.url"`
}
AlertingConfig holds configuration related to alerting features
type AuthConfig ¶
type AuthConfig struct {
JWTSecret string `koanf:"jwt.secret"`
EnableAuth bool `koanf:"enable.auth"`
RequiredRole string `koanf:"required.role"`
}
AuthConfig holds authentication configuration
type Config ¶
type Config struct {
Server ServerConfig `koanf:"server"`
OpenSearch OpenSearchConfig `koanf:"opensearch"`
Prometheus PrometheusConfig `koanf:"prometheus"`
Auth AuthConfig `koanf:"auth"`
Logging LoggingConfig `koanf:"logging"`
Alerting AlertingConfig `koanf:"alerting"`
LogLevel string `koanf:"loglevel"`
}
Config holds all configuration for the logging service
type LoggingConfig ¶
type LoggingConfig struct {
MaxLogLimit int `koanf:"max.log.limit"`
DefaultLogLimit int `koanf:"default.log.limit"`
DefaultBuildLogLimit int `koanf:"default.build.log.limit"`
MaxLogLinesPerFile int `koanf:"max.log.lines.per.file"`
}
LoggingConfig holds application logging configuration
type OpenSearchConfig ¶
type OpenSearchConfig struct {
Address string `koanf:"address"`
Username string `koanf:"username"`
Password string `koanf:"password"`
Timeout time.Duration `koanf:"timeout"`
MaxRetries int `koanf:"max.retries"`
IndexPrefix string `koanf:"index.prefix"`
IndexPattern string `koanf:"index.pattern"`
LegacyPattern string `koanf:"legacy.pattern"`
}
OpenSearchConfig holds OpenSearch connection configuration
type PrometheusConfig ¶ added in v0.4.0
type PrometheusConfig struct {
Address string `koanf:"address"`
Timeout time.Duration `koanf:"timeout"`
}
PrometheusConfig holds Prometheus connection configuration
Click to show internal directories.
Click to hide internal directories.