summaryrefslogtreecommitdiff
path: root/plugins/metrics/config.go
diff options
context:
space:
mode:
authorValery Piashchynski <[email protected]>2021-01-21 13:25:36 +0300
committerValery Piashchynski <[email protected]>2021-01-21 13:25:36 +0300
commit7da6c78449776e1f3c6716250bca0b712a0423a4 (patch)
treef3512de66aca2bba408485a0ea2fc936c0e4fb9b /plugins/metrics/config.go
parent0ff05b2732b4fd0783f959c94c54d7e39169f979 (diff)
Uniform all configs
Add debug server Check nil's for all plugin intialization
Diffstat (limited to 'plugins/metrics/config.go')
-rw-r--r--plugins/metrics/config.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/plugins/metrics/config.go b/plugins/metrics/config.go
index 9459bc9b..dd36005e 100644
--- a/plugins/metrics/config.go
+++ b/plugins/metrics/config.go
@@ -134,5 +134,7 @@ func (c *Config) getCollectors() (map[string]prometheus.Collector, error) {
}
func (c *Config) InitDefaults() {
-
+ if c.Address == "" {
+ c.Address = "localhost:2112"
+ }
}