diff --git a/command/agent/agent.go b/command/agent/agent.go index 5a57aaf50..05f54f2df 100644 --- a/command/agent/agent.go +++ b/command/agent/agent.go @@ -198,7 +198,7 @@ func (c *cmd) run(args []string) int { c.logOutput = logOutput c.logger = log.New(logOutput, "", log.LstdFlags) - memSink, err := lib.StartupTelemetry(config.TelemetryConfig(false)) + memSink, err := lib.InitTelemetry(config.TelemetryConfig(false)) if err != nil { c.UI.Error(err.Error()) return 1 diff --git a/connect/proxy/proxy.go b/connect/proxy/proxy.go index 65a929b4a..cef9b7126 100644 --- a/connect/proxy/proxy.go +++ b/connect/proxy/proxy.go @@ -48,7 +48,7 @@ func (p *Proxy) Serve() error { // Setup telemetry if configured if len(newCfg.Telemetry) > 0 { p.logger.Printf("[DEBUG] got Telemetry confg: %v", newCfg.Telemetry) - _, err := lib.StartupTelemetry(newCfg.Telemetry) + _, err := lib.InitTelemetry(newCfg.Telemetry) if err != nil { p.logger.Printf("[ERR] proxy telemetry config error: %s", err) } diff --git a/lib/telemetry.go b/lib/telemetry.go index cea2333d0..843e6c73a 100644 --- a/lib/telemetry.go +++ b/lib/telemetry.go @@ -123,9 +123,9 @@ func cfgStrSliceVal(i interface{}) []string { return nil } -// StartupTelemetry configures go-metrics based on map of telemetry config +// InitTelemetry configures go-metrics based on map of telemetry config // values as returned by RuntimecfgStringVal(cfg["Config"])(). -func StartupTelemetry(cfg map[string]interface{}) (*metrics.InmemSink, error) { +func InitTelemetry(cfg map[string]interface{}) (*metrics.InmemSink, error) { // Setup telemetry // Aggregate on 10 second intervals for 1 minute. Expose the // metrics over stderr when there is a SIGUSR1 received.