mirror of
https://github.com/openziti/zrok.git
synced 2024-11-22 16:13:47 +01:00
default metrics service name
This commit is contained in:
parent
362b8c2b84
commit
7585691b07
@ -59,7 +59,9 @@ type InfluxConfig struct {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func LoadConfig(path string) (*Config, error) {
|
func LoadConfig(path string) (*Config, error) {
|
||||||
cfg := &Config{}
|
cfg := &Config{
|
||||||
|
Metrics: &MetricsConfig{ServiceName: "metrics"},
|
||||||
|
}
|
||||||
if err := cf.BindYaml(cfg, path, cf.DefaultOptions()); err != nil {
|
if err := cf.BindYaml(cfg, path, cf.DefaultOptions()); err != nil {
|
||||||
return nil, errors.Wrapf(err, "error loading controller config '%v'", path)
|
return nil, errors.Wrapf(err, "error loading controller config '%v'", path)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user