summaryrefslogtreecommitdiff
path: root/plugins/metrics/plugin.go
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/metrics/plugin.go')
-rw-r--r--plugins/metrics/plugin.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/plugins/metrics/plugin.go b/plugins/metrics/plugin.go
index 3fd42ee4..c115826b 100644
--- a/plugins/metrics/plugin.go
+++ b/plugins/metrics/plugin.go
@@ -18,8 +18,8 @@ import (
)
const (
- // ID declares public service name.
- ServiceName = "metrics"
+ // PluginName declares plugin name.
+ PluginName = "metrics"
// maxHeaderSize declares max header size for prometheus server
maxHeaderSize = 1024 * 1024 * 100 // 104MB
)
@@ -42,7 +42,7 @@ type Plugin struct {
// Init service.
func (m *Plugin) Init(cfg config.Configurer, log log.Logger) error {
const op = errors.Op("Metrics Init")
- err := cfg.UnmarshalKey(ServiceName, &m.cfg)
+ err := cfg.UnmarshalKey(PluginName, &m.cfg)
if err != nil {
return err
}
@@ -218,7 +218,7 @@ func (m *Plugin) AddStatProvider(name endure.Named, stat metrics.StatProvider) e
// RPC interface satisfaction
func (m *Plugin) Name() string {
- return ServiceName
+ return PluginName
}
// RPC interface satisfaction