Rename config.yaml to example and add config.yaml to gitignore, make Metrics optional and configurable

This commit is contained in:
Pablu23
2025-10-15 13:15:56 +02:00
parent 28d9c58a66
commit f4ca559a26
5 changed files with 79 additions and 77 deletions

View File

@@ -43,4 +43,10 @@ type Config struct {
MaxBackups int `yamls:"maxBackups"`
} `yaml:"file"`
} `yaml:"logging"`
Metrics struct {
Enabled bool `yaml:"enabled"`
File string `yaml:"file"`
BufferSize int `yaml:"bufferSize"`
FlushInterval string `yaml:"flushInterval"`
} `yaml:"metrics"`
}