From 9f1f7b41b06bfe5d35c9486205aff96ff4bf67f8 Mon Sep 17 00:00:00 2001 From: godcong Date: Tue, 12 Nov 2024 22:09:24 +0800 Subject: [PATCH] Update go-metrics module to armon/go-metrics --- circonus/circonus.go | 2 ++ circonus/circonus_test.go | 2 ++ datadog/dogstatsd.go | 2 ++ datadog/dogstatsd_test.go | 2 ++ prometheus/prometheus.go | 2 ++ prometheus/prometheus_test.go | 2 ++ 6 files changed, 12 insertions(+) diff --git a/circonus/circonus.go b/circonus/circonus.go index 539c2e6..37f1616 100644 --- a/circonus/circonus.go +++ b/circonus/circonus.go @@ -9,6 +9,8 @@ import ( "strings" cgm "github.com/circonus-labs/circonus-gometrics" + + "github.com/armon/go-metrics" ) // CirconusSink provides an interface to forward metrics to Circonus with diff --git a/circonus/circonus_test.go b/circonus/circonus_test.go index 42abdf4..8be6490 100644 --- a/circonus/circonus_test.go +++ b/circonus/circonus_test.go @@ -11,6 +11,8 @@ import ( "net/http/httptest" "strings" "testing" + + "github.com/armon/go-metrics" ) func TestNewCirconusSink(t *testing.T) { diff --git a/datadog/dogstatsd.go b/datadog/dogstatsd.go index 7c65b77..03ad346 100644 --- a/datadog/dogstatsd.go +++ b/datadog/dogstatsd.go @@ -8,6 +8,8 @@ import ( "strings" "github.com/DataDog/datadog-go/statsd" + + "github.com/armon/go-metrics" ) // DogStatsdSink provides a MetricSink that can be used diff --git a/datadog/dogstatsd_test.go b/datadog/dogstatsd_test.go index e7d86a7..7416de7 100644 --- a/datadog/dogstatsd_test.go +++ b/datadog/dogstatsd_test.go @@ -7,6 +7,8 @@ import ( "net" "reflect" "testing" + + "github.com/armon/go-metrics" ) var EmptyTags []metrics.Label diff --git a/prometheus/prometheus.go b/prometheus/prometheus.go index 9e137d4..ffbe71a 100644 --- a/prometheus/prometheus.go +++ b/prometheus/prometheus.go @@ -15,6 +15,8 @@ import ( "github.com/prometheus/client_golang/prometheus" "github.com/prometheus/client_golang/prometheus/push" + + "github.com/armon/go-metrics" ) var ( diff --git a/prometheus/prometheus_test.go b/prometheus/prometheus_test.go index f823a8a..131d7d9 100644 --- a/prometheus/prometheus_test.go +++ b/prometheus/prometheus_test.go @@ -20,6 +20,8 @@ import ( "github.com/prometheus/client_golang/prometheus" "github.com/prometheus/common/expfmt" + + "github.com/armon/go-metrics" ) const (