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 (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"github.com/VictoriaMetrics/metrics"
|
"go.unistack.org/metrics"
|
||||||
)
|
)
|
||||||
|
|
||||||
func ExampleCounter() {
|
func ExampleCounter() {
|
||||||
|
@ -2,7 +2,7 @@ package metrics_test
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"github.com/VictoriaMetrics/metrics"
|
"go.unistack.org/metrics"
|
||||||
)
|
)
|
||||||
|
|
||||||
func ExampleFloatCounter() {
|
func ExampleFloatCounter() {
|
||||||
|
@ -4,7 +4,7 @@ import (
|
|||||||
"fmt"
|
"fmt"
|
||||||
"runtime"
|
"runtime"
|
||||||
|
|
||||||
"github.com/VictoriaMetrics/metrics"
|
"go.unistack.org/metrics"
|
||||||
)
|
)
|
||||||
|
|
||||||
func ExampleGauge() {
|
func ExampleGauge() {
|
||||||
|
2
go.mod
2
go.mod
@ -1,4 +1,4 @@
|
|||||||
module github.com/VictoriaMetrics/metrics
|
module go.unistack.org/metrics
|
||||||
|
|
||||||
require (
|
require (
|
||||||
github.com/valyala/histogram v1.2.0
|
github.com/valyala/histogram v1.2.0
|
||||||
|
@ -36,7 +36,7 @@ func initSupportedRuntimeMetrics(rms [][2]string) [][2]string {
|
|||||||
if _, ok := exposedMetrics[metricName]; ok {
|
if _, ok := exposedMetrics[metricName]; ok {
|
||||||
supportedMetrics = append(supportedMetrics, rm)
|
supportedMetrics = append(supportedMetrics, rm)
|
||||||
} else {
|
} 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
|
return supportedMetrics
|
||||||
|
@ -4,7 +4,7 @@ import (
|
|||||||
"fmt"
|
"fmt"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/VictoriaMetrics/metrics"
|
"go.unistack.org/metrics"
|
||||||
)
|
)
|
||||||
|
|
||||||
func ExampleHistogram() {
|
func ExampleHistogram() {
|
||||||
|
@ -3,7 +3,7 @@ package metrics_test
|
|||||||
import (
|
import (
|
||||||
"net/http"
|
"net/http"
|
||||||
|
|
||||||
"github.com/VictoriaMetrics/metrics"
|
"go.unistack.org/metrics"
|
||||||
)
|
)
|
||||||
|
|
||||||
func ExampleWritePrometheus() {
|
func ExampleWritePrometheus() {
|
||||||
|
@ -99,10 +99,10 @@ func writeIOMetrics(w io.Writer) {
|
|||||||
data, err := ioutil.ReadFile(ioFilepath)
|
data, err := ioutil.ReadFile(ioFilepath)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
// Do not spam the logs with errors - this error cannot be fixed without process restart.
|
// 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) {
|
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; "+
|
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 (
|
import (
|
||||||
"bytes"
|
"bytes"
|
||||||
"fmt"
|
"fmt"
|
||||||
"github.com/VictoriaMetrics/metrics"
|
"go.unistack.org/metrics"
|
||||||
)
|
)
|
||||||
|
|
||||||
func ExampleSet() {
|
func ExampleSet() {
|
||||||
|
@ -4,7 +4,7 @@ import (
|
|||||||
"fmt"
|
"fmt"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/VictoriaMetrics/metrics"
|
"go.unistack.org/metrics"
|
||||||
)
|
)
|
||||||
|
|
||||||
func ExampleSummary() {
|
func ExampleSummary() {
|
||||||
|
Loading…
Reference in New Issue
Block a user