default metrics service name

This commit is contained in:
Michael Quigley 2022-12-07 13:41:16 -05:00
parent 362b8c2b84
commit 7585691b07
No known key found for this signature in database
GPG Key ID: 9B60314A9DD20A62

View File

@ -59,7 +59,9 @@ type InfluxConfig struct {
}
func LoadConfig(path string) (*Config, error) {
cfg := &Config{}
cfg := &Config{
Metrics: &MetricsConfig{ServiceName: "metrics"},
}
if err := cf.BindYaml(cfg, path, cf.DefaultOptions()); err != nil {
return nil, errors.Wrapf(err, "error loading controller config '%v'", path)
}