summaryrefslogtreecommitdiff
path: root/service/metrics/config.go
diff options
context:
space:
mode:
authorWolfy-J <[email protected]>2019-06-27 13:35:16 +0300
committerWolfy-J <[email protected]>2019-06-27 13:35:16 +0300
commit1ba7781dd4bb9767759fa596d3d7209497aaf37f (patch)
treefc047874eb51d6014120eb695e932ef47436e485 /service/metrics/config.go
parent11870a2df3ccd8f79f131354ba106e557c248b48 (diff)
more tests, isolated prometheus instance
Diffstat (limited to 'service/metrics/config.go')
-rw-r--r--service/metrics/config.go4
1 files changed, 0 insertions, 4 deletions
diff --git a/service/metrics/config.go b/service/metrics/config.go
index b9b21ea9..343e31d1 100644
--- a/service/metrics/config.go
+++ b/service/metrics/config.go
@@ -108,10 +108,6 @@ func (c *Config) initCollectors() (map[string]prometheus.Collector, error) {
return nil, fmt.Errorf("invalid metric type `%s` for `%s`", m.Type, name)
}
- if err := prometheus.Register(collector); err != nil {
- return nil, err
- }
-
collectors[name] = collector
}