change import path
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
This commit is contained in:
parent
d783709a53
commit
6aa41f4081
@ -2,7 +2,7 @@ package metrics_test
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"github.com/VictoriaMetrics/metrics"
|
||||
"go.unistack.org/metrics"
|
||||
)
|
||||
|
||||
func ExampleCounter() {
|
||||
|
@ -2,7 +2,7 @@ package metrics_test
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"github.com/VictoriaMetrics/metrics"
|
||||
"go.unistack.org/metrics"
|
||||
)
|
||||
|
||||
func ExampleFloatCounter() {
|
||||
|
@ -4,7 +4,7 @@ import (
|
||||
"fmt"
|
||||
"runtime"
|
||||
|
||||
"github.com/VictoriaMetrics/metrics"
|
||||
"go.unistack.org/metrics"
|
||||
)
|
||||
|
||||
func ExampleGauge() {
|
||||
|
2
go.mod
2
go.mod
@ -1,4 +1,4 @@
|
||||
module github.com/VictoriaMetrics/metrics
|
||||
module go.unistack.org/metrics
|
||||
|
||||
require (
|
||||
github.com/valyala/histogram v1.2.0
|
||||
|
@ -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
|
||||
|
@ -4,7 +4,7 @@ import (
|
||||
"fmt"
|
||||
"time"
|
||||
|
||||
"github.com/VictoriaMetrics/metrics"
|
||||
"go.unistack.org/metrics"
|
||||
)
|
||||
|
||||
func ExampleHistogram() {
|
||||
|
@ -3,7 +3,7 @@ package metrics_test
|
||||
import (
|
||||
"net/http"
|
||||
|
||||
"github.com/VictoriaMetrics/metrics"
|
||||
"go.unistack.org/metrics"
|
||||
)
|
||||
|
||||
func ExampleWritePrometheus() {
|
||||
|
@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -3,7 +3,7 @@ package metrics_test
|
||||
import (
|
||||
"bytes"
|
||||
"fmt"
|
||||
"github.com/VictoriaMetrics/metrics"
|
||||
"go.unistack.org/metrics"
|
||||
)
|
||||
|
||||
func ExampleSet() {
|
||||
|
@ -4,7 +4,7 @@ import (
|
||||
"fmt"
|
||||
"time"
|
||||
|
||||
"github.com/VictoriaMetrics/metrics"
|
||||
"go.unistack.org/metrics"
|
||||
)
|
||||
|
||||
func ExampleSummary() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user