NewDefaultConfig returns a new default configuration for all monitoring services
()
| 22 | |
| 23 | // NewDefaultConfig returns a new default configuration for all monitoring services |
| 24 | func NewDefaultConfig() Config { |
| 25 | return Config{ |
| 26 | Prometheus: prometheus.NewDefaultConfig(), |
| 27 | NewRelic: newrelic.NewDefaultConfig(), |
| 28 | DataDog: datadog.NewDefaultConfig(), |
| 29 | OpenTelemetry: otel.NewDefaultConfig(), |
| 30 | CloudWatch: cloudwatch.NewDefaultConfig(), |
| 31 | } |
| 32 | } |
| 33 | |
| 34 | // LoadConfigFromEnv loads configuration for all monitoring services from environment variables |
| 35 | func LoadConfigFromEnv(c *Config) (*Config, error) { |