summaryrefslogtreecommitdiff
path: root/plugins/metrics
diff options
context:
space:
mode:
authorValery Piashchynski <[email protected]>2021-03-20 10:02:27 +0300
committerValery Piashchynski <[email protected]>2021-03-20 10:02:27 +0300
commitfdd1585b4f9423933b380aba0d0950ce7abfcb49 (patch)
treed33083d4be6b5608b209e084a3c2627c177ce3af /plugins/metrics
parentc8f3b79de529b85b4910157f2cafbc25349ad8de (diff)
- Fix CI in the PR
- Fix type in the metrics plugin Register method
Diffstat (limited to 'plugins/metrics')
-rw-r--r--plugins/metrics/plugin.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/plugins/metrics/plugin.go b/plugins/metrics/plugin.go
index 651a2475..efcbfc50 100644
--- a/plugins/metrics/plugin.go
+++ b/plugins/metrics/plugin.go
@@ -75,8 +75,7 @@ func (m *Plugin) Init(cfg config.Configurer, log logger.Logger) error {
}
// Register new prometheus collector.
-func (m *Plugin) Register(c
-) error {
+func (m *Plugin) Register(c prometheus.Collector) error {
return m.registry.Register(c)
}