From 6aa41f4081d45f8d900cba9682b0c272d66db9e1 Mon Sep 17 00:00:00 2001 From: Vasiliy Tolstov Date: Sat, 9 Nov 2024 19:32:37 +0300 Subject: [PATCH] change import path Signed-off-by: Vasiliy Tolstov --- counter_example_test.go | 2 +- floatcounter_example_test.go | 2 +- gauge_example_test.go | 2 +- go.mod | 2 +- go_metrics.go | 2 +- histogram_example_test.go | 2 +- metrics_example_test.go | 2 +- process_metrics_linux.go | 4 ++-- set_example_test.go | 2 +- summary_example_test.go | 2 +- 10 files changed, 11 insertions(+), 11 deletions(-) diff --git a/counter_example_test.go b/counter_example_test.go index c485df6..8b80b5a 100644 --- a/counter_example_test.go +++ b/counter_example_test.go @@ -2,7 +2,7 @@ package metrics_test import ( "fmt" - "github.com/VictoriaMetrics/metrics" + "go.unistack.org/metrics" ) func ExampleCounter() { diff --git a/floatcounter_example_test.go b/floatcounter_example_test.go index 3f32770..c21777a 100644 --- a/floatcounter_example_test.go +++ b/floatcounter_example_test.go @@ -2,7 +2,7 @@ package metrics_test import ( "fmt" - "github.com/VictoriaMetrics/metrics" + "go.unistack.org/metrics" ) func ExampleFloatCounter() { diff --git a/gauge_example_test.go b/gauge_example_test.go index 0f0e440..81852d1 100644 --- a/gauge_example_test.go +++ b/gauge_example_test.go @@ -4,7 +4,7 @@ import ( "fmt" "runtime" - "github.com/VictoriaMetrics/metrics" + "go.unistack.org/metrics" ) func ExampleGauge() { diff --git a/go.mod b/go.mod index 6498324..68ce170 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module github.com/VictoriaMetrics/metrics +module go.unistack.org/metrics require ( github.com/valyala/histogram v1.2.0 diff --git a/go_metrics.go b/go_metrics.go index d8b949d..4fdc13a 100644 --- a/go_metrics.go +++ b/go_metrics.go @@ -36,7 +36,7 @@ func initSupportedRuntimeMetrics(rms [][2]string) [][2]string { if _, ok := exposedMetrics[metricName]; ok { supportedMetrics = append(supportedMetrics, rm) } else { - log.Printf("github.com/VictoriaMetrics/metrics: do not expose %s metric, since the corresponding metric %s isn't supported in the current Go runtime", rm[1], metricName) + log.Printf("go.unistack.org/metrics: do not expose %s metric, since the corresponding metric %s isn't supported in the current Go runtime", rm[1], metricName) } } return supportedMetrics diff --git a/histogram_example_test.go b/histogram_example_test.go index 358050e..cabb9c9 100644 --- a/histogram_example_test.go +++ b/histogram_example_test.go @@ -4,7 +4,7 @@ import ( "fmt" "time" - "github.com/VictoriaMetrics/metrics" + "go.unistack.org/metrics" ) func ExampleHistogram() { diff --git a/metrics_example_test.go b/metrics_example_test.go index 0ac08ae..81b5026 100644 --- a/metrics_example_test.go +++ b/metrics_example_test.go @@ -3,7 +3,7 @@ package metrics_test import ( "net/http" - "github.com/VictoriaMetrics/metrics" + "go.unistack.org/metrics" ) func ExampleWritePrometheus() { diff --git a/process_metrics_linux.go b/process_metrics_linux.go index e4587b7..7fea828 100644 --- a/process_metrics_linux.go +++ b/process_metrics_linux.go @@ -99,10 +99,10 @@ func writeIOMetrics(w io.Writer) { data, err := ioutil.ReadFile(ioFilepath) if err != nil { // Do not spam the logs with errors - this error cannot be fixed without process restart. - // See https://github.com/VictoriaMetrics/metrics/issues/42 + // See https://go.unistack.org/metrics/issues/42 if atomic.CompareAndSwapUint32(&procSelfIOErrLogged, 0, 1) { log.Printf("ERROR: metrics: cannot read process_io_* metrics from %q, so these metrics won't be updated until the error is fixed; "+ - "see https://github.com/VictoriaMetrics/metrics/issues/42 ; The error: %s", ioFilepath, err) + "see https://go.unistack.org/metrics/issues/42 ; The error: %s", ioFilepath, err) } } diff --git a/set_example_test.go b/set_example_test.go index 17c1b36..f16d2c7 100644 --- a/set_example_test.go +++ b/set_example_test.go @@ -3,7 +3,7 @@ package metrics_test import ( "bytes" "fmt" - "github.com/VictoriaMetrics/metrics" + "go.unistack.org/metrics" ) func ExampleSet() { diff --git a/summary_example_test.go b/summary_example_test.go index 09dc57f..4da3bc8 100644 --- a/summary_example_test.go +++ b/summary_example_test.go @@ -4,7 +4,7 @@ import ( "fmt" "time" - "github.com/VictoriaMetrics/metrics" + "go.unistack.org/metrics" ) func ExampleSummary() {