change import path

Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
This commit is contained in:
Василий Толстов 2024-11-09 19:32:37 +03:00
parent d783709a53
commit 6aa41f4081
10 changed files with 11 additions and 11 deletions

View File

@ -2,7 +2,7 @@ package metrics_test
import (
"fmt"
"github.com/VictoriaMetrics/metrics"
"go.unistack.org/metrics"
)
func ExampleCounter() {

View File

@ -2,7 +2,7 @@ package metrics_test
import (
"fmt"
"github.com/VictoriaMetrics/metrics"
"go.unistack.org/metrics"
)
func ExampleFloatCounter() {

View File

@ -4,7 +4,7 @@ import (
"fmt"
"runtime"
"github.com/VictoriaMetrics/metrics"
"go.unistack.org/metrics"
)
func ExampleGauge() {

2
go.mod
View File

@ -1,4 +1,4 @@
module github.com/VictoriaMetrics/metrics
module go.unistack.org/metrics
require (
github.com/valyala/histogram v1.2.0

View File

@ -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

View File

@ -4,7 +4,7 @@ import (
"fmt"
"time"
"github.com/VictoriaMetrics/metrics"
"go.unistack.org/metrics"
)
func ExampleHistogram() {

View File

@ -3,7 +3,7 @@ package metrics_test
import (
"net/http"
"github.com/VictoriaMetrics/metrics"
"go.unistack.org/metrics"
)
func ExampleWritePrometheus() {

View File

@ -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)
}
}

View File

@ -3,7 +3,7 @@ package metrics_test
import (
"bytes"
"fmt"
"github.com/VictoriaMetrics/metrics"
"go.unistack.org/metrics"
)
func ExampleSet() {

View File

@ -4,7 +4,7 @@ import (
"fmt"
"time"
"github.com/VictoriaMetrics/metrics"
"go.unistack.org/metrics"
)
func ExampleSummary() {