Propagate DCOverrides

This commit is contained in:
9seconds
2026-02-16 14:58:41 +01:00
parent 0a5a45b32d
commit 836a481026
9 changed files with 164 additions and 6 deletions
+5 -1
View File
@@ -5,7 +5,7 @@ import (
"encoding/json"
"fmt"
"github.com/pelletier/go-toml"
"github.com/pelletier/go-toml/v2"
)
type tomlConfig struct {
@@ -59,6 +59,10 @@ type tomlConfig struct {
MetricPrefix string `toml:"metric-prefix" json:"metricPrefix,omitempty"`
} `toml:"prometheus" json:"prometheus,omitempty"`
} `toml:"stats" json:"stats,omitempty"`
DCOverrides []struct {
DC int `toml:"dc" json:"dc"`
IPs []string `toml:"ips" json:"ips"`
}
}
func Parse(rawData []byte) (*Config, error) {