remove metrics.port

This commit is contained in:
DullJZ
2025-09-13 22:41:00 +08:00
parent f214b003fd
commit cfc0a734bf
6 changed files with 4 additions and 9 deletions
+1 -4
View File
@@ -56,7 +56,7 @@ type BalancerConfig struct {
type MetricsConfig struct {
Enabled bool `yaml:"enabled"`
Path string `yaml:"path"`
Port int `yaml:"port"`
// Port int `yaml:"port"` // 目前未使用,与主服务共享端口
}
// S3APIConfig S3兼容API配置
@@ -144,9 +144,6 @@ func (c *Config) SetDefaults() {
if c.Metrics.Path == "" {
c.Metrics.Path = "/metrics"
}
if c.Metrics.Port == 0 {
c.Metrics.Port = 9090
}
// 数据库默认值
if c.Database.Type == "" {