From 23b4862c1e6c7d42bcf94e5db9c46f92471cf236 Mon Sep 17 00:00:00 2001 From: godcong Date: Tue, 12 Nov 2024 21:55:06 +0800 Subject: [PATCH] Update go-metrics module to armon/go-metrics --- README.md | 2 +- circonus/circonus.go | 1 - circonus/circonus_test.go | 2 -- datadog/dogstatsd.go | 1 - datadog/dogstatsd_test.go | 2 -- go.mod | 2 +- prometheus/prometheus.go | 1 - prometheus/prometheus_test.go | 1 - 8 files changed, 2 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index 7639dab..7949a54 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ go-metrics This library provides a `metrics` package which can be used to instrument code, expose application metrics, and profile runtime performance in a flexible manner. -Current API: [![GoDoc](https://godoc.org/github.com/hashicorp/go-metrics?status.svg)](https://godoc.org/github.com/hashicorp/go-metrics) +Current API: [![GoDoc](https://godoc.org/github.com/armon/go-metrics?status.svg)](https://godoc.org/github.com/armon/go-metrics) Sinks ----- diff --git a/circonus/circonus.go b/circonus/circonus.go index dcc4b8d..539c2e6 100644 --- a/circonus/circonus.go +++ b/circonus/circonus.go @@ -9,7 +9,6 @@ import ( "strings" cgm "github.com/circonus-labs/circonus-gometrics" - "github.com/hashicorp/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 1d7742a..42abdf4 100644 --- a/circonus/circonus_test.go +++ b/circonus/circonus_test.go @@ -11,8 +11,6 @@ import ( "net/http/httptest" "strings" "testing" - - "github.com/hashicorp/go-metrics" ) func TestNewCirconusSink(t *testing.T) { diff --git a/datadog/dogstatsd.go b/datadog/dogstatsd.go index b6d39bb..7c65b77 100644 --- a/datadog/dogstatsd.go +++ b/datadog/dogstatsd.go @@ -8,7 +8,6 @@ import ( "strings" "github.com/DataDog/datadog-go/statsd" - "github.com/hashicorp/go-metrics" ) // DogStatsdSink provides a MetricSink that can be used diff --git a/datadog/dogstatsd_test.go b/datadog/dogstatsd_test.go index 95a38bc..e7d86a7 100644 --- a/datadog/dogstatsd_test.go +++ b/datadog/dogstatsd_test.go @@ -7,8 +7,6 @@ import ( "net" "reflect" "testing" - - "github.com/hashicorp/go-metrics" ) var EmptyTags []metrics.Label diff --git a/go.mod b/go.mod index 2537443..322a57f 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module github.com/hashicorp/go-metrics +module github.com/armon/go-metrics go 1.12 diff --git a/prometheus/prometheus.go b/prometheus/prometheus.go index 3aa45b1..9e137d4 100644 --- a/prometheus/prometheus.go +++ b/prometheus/prometheus.go @@ -13,7 +13,6 @@ import ( "sync" "time" - "github.com/hashicorp/go-metrics" "github.com/prometheus/client_golang/prometheus" "github.com/prometheus/client_golang/prometheus/push" ) diff --git a/prometheus/prometheus_test.go b/prometheus/prometheus_test.go index e8c495e..f823a8a 100644 --- a/prometheus/prometheus_test.go +++ b/prometheus/prometheus_test.go @@ -18,7 +18,6 @@ import ( "github.com/golang/protobuf/proto" dto "github.com/prometheus/client_model/go" - "github.com/hashicorp/go-metrics" "github.com/prometheus/client_golang/prometheus" "github.com/prometheus/common/expfmt" )