feat 接入Prometheus

This commit is contained in:
2025-12-17 21:05:12 +08:00
parent efa9f50d3e
commit da91cff056
24 changed files with 289 additions and 60 deletions

View File

@@ -12,6 +12,13 @@ type LogConfig struct {
Level string `yaml:"level"`
}
type MonitorConfig struct {
Prometheus *struct {
Address string `yaml:"address"`
Port int `yaml:"port"`
} `yaml:"prometheus"`
}
type DBConfig struct {
Etcd *struct {
Address []string `yaml:"address"`