Feat: Token auth for metrics

This commit is contained in:
DullJZ
2025-12-21 14:37:06 +08:00
parent eecda55eb3
commit 322d41fbb2
6 changed files with 19 additions and 8 deletions

View File

@@ -63,6 +63,7 @@ type BalancerConfig struct {
type MetricsConfig struct {
Enabled bool `yaml:"enabled"`
Path string `yaml:"path"`
Token string `yaml:"token"` // 可选Token保护Prometheus端点
// Port int `yaml:"port"` // 目前未使用,与主服务共享端口
}