diff --git a/cmd/thor/main.go b/cmd/thor/main.go index 0f6a7f58a..360e640b1 100644 --- a/cmd/thor/main.go +++ b/cmd/thor/main.go @@ -241,7 +241,7 @@ func defaultAction(ctx *cli.Context) error { } defer func() { log.Info("stopping API server..."); srvCloser() }() - printStartupMessage2(gene, apiURL, p2pCommunicator.Enode(),metricsURL) + printStartupMessage2(gene, apiURL, p2pCommunicator.Enode(), metricsURL) if err := p2pCommunicator.Start(); err != nil { return err diff --git a/metrics/telemetry.go b/metrics/telemetry.go index 26dbc1aec..97e1c74c6 100644 --- a/metrics/telemetry.go +++ b/metrics/telemetry.go @@ -70,7 +70,7 @@ func CounterVec(name string, labels []string) CountVecMeter { return metrics.GetOrCreateCountVecMeter(name, labels) } -// GaugeMeter ... +// GaugeMeter is a metric that represents a single numeric value, which can arbitrarily go up and down. type GaugeMeter interface { Add(int64) } @@ -79,7 +79,8 @@ func Gauge(name string) GaugeMeter { return metrics.GetOrCreateGaugeMeter(name) } -// GaugeVecMeter ... +// GaugeVecMeter is a metric that represents a single numeric value, which can arbitrarily go up and down +// with multiple labels. type GaugeVecMeter interface { GaugeWithLabel(int64, map[string]string) }