mirror of
https://github.com/DullJZ/s3-balance.git
synced 2026-09-05 07:46:42 +08:00
remove metrics.port
This commit is contained in:
@@ -125,7 +125,6 @@ balancer:
|
|||||||
metrics:
|
metrics:
|
||||||
enabled: true
|
enabled: true
|
||||||
path: "/metrics"
|
path: "/metrics"
|
||||||
port: 9090
|
|
||||||
|
|
||||||
# S3兼容API配置
|
# S3兼容API配置
|
||||||
s3api:
|
s3api:
|
||||||
|
|||||||
@@ -52,7 +52,6 @@ balancer:
|
|||||||
metrics:
|
metrics:
|
||||||
enabled: true
|
enabled: true
|
||||||
path: "/metrics"
|
path: "/metrics"
|
||||||
port: 9090
|
|
||||||
|
|
||||||
s3api:
|
s3api:
|
||||||
access_key: "AKIAIOSFODNN7EXAMPLE"
|
access_key: "AKIAIOSFODNN7EXAMPLE"
|
||||||
|
|||||||
@@ -83,10 +83,10 @@ config:
|
|||||||
health_check_period: 30s
|
health_check_period: 30s
|
||||||
update_stats_period: 60s
|
update_stats_period: 60s
|
||||||
|
|
||||||
|
# 监控指标配置(与主服务共享端口)
|
||||||
metrics:
|
metrics:
|
||||||
enabled: true
|
enabled: true
|
||||||
path: "/metrics"
|
path: "/metrics"
|
||||||
port: 8080
|
|
||||||
|
|
||||||
s3api:
|
s3api:
|
||||||
access_key: "your-access-key"
|
access_key: "your-access-key"
|
||||||
|
|||||||
@@ -121,10 +121,10 @@ config:
|
|||||||
health_check_period: 30s
|
health_check_period: 30s
|
||||||
update_stats_period: 60s
|
update_stats_period: 60s
|
||||||
|
|
||||||
|
# 监控指标配置(与主服务共享端口)
|
||||||
metrics:
|
metrics:
|
||||||
enabled: true
|
enabled: true
|
||||||
path: "/metrics"
|
path: "/metrics"
|
||||||
port: 8080
|
|
||||||
|
|
||||||
s3api:
|
s3api:
|
||||||
access_key: "AKIAIOSFODNN7EXAMPLE"
|
access_key: "AKIAIOSFODNN7EXAMPLE"
|
||||||
|
|||||||
@@ -43,10 +43,10 @@ data:
|
|||||||
health_check_period: 30s
|
health_check_period: 30s
|
||||||
update_stats_period: 60s
|
update_stats_period: 60s
|
||||||
|
|
||||||
|
# 监控指标配置(与主服务共享端口)
|
||||||
metrics:
|
metrics:
|
||||||
enabled: true
|
enabled: true
|
||||||
path: "/metrics"
|
path: "/metrics"
|
||||||
port: 8080
|
|
||||||
|
|
||||||
s3api:
|
s3api:
|
||||||
access_key: "AKIAIOSFODNN7EXAMPLE"
|
access_key: "AKIAIOSFODNN7EXAMPLE"
|
||||||
|
|||||||
@@ -56,7 +56,7 @@ type BalancerConfig struct {
|
|||||||
type MetricsConfig struct {
|
type MetricsConfig struct {
|
||||||
Enabled bool `yaml:"enabled"`
|
Enabled bool `yaml:"enabled"`
|
||||||
Path string `yaml:"path"`
|
Path string `yaml:"path"`
|
||||||
Port int `yaml:"port"`
|
// Port int `yaml:"port"` // 目前未使用,与主服务共享端口
|
||||||
}
|
}
|
||||||
|
|
||||||
// S3APIConfig S3兼容API配置
|
// S3APIConfig S3兼容API配置
|
||||||
@@ -144,9 +144,6 @@ func (c *Config) SetDefaults() {
|
|||||||
if c.Metrics.Path == "" {
|
if c.Metrics.Path == "" {
|
||||||
c.Metrics.Path = "/metrics"
|
c.Metrics.Path = "/metrics"
|
||||||
}
|
}
|
||||||
if c.Metrics.Port == 0 {
|
|
||||||
c.Metrics.Port = 9090
|
|
||||||
}
|
|
||||||
|
|
||||||
// 数据库默认值
|
// 数据库默认值
|
||||||
if c.Database.Type == "" {
|
if c.Database.Type == "" {
|
||||||
|
|||||||
Reference in New Issue
Block a user