change: replace uuid lib

This commit is contained in:
debugtalk
2022-10-24 10:52:57 +08:00
parent b205e99ffb
commit e3912f219d
4 changed files with 7 additions and 9 deletions
+2 -3
View File
@@ -9,12 +9,12 @@ import (
"sync"
"time"
"github.com/google/uuid"
"github.com/olekukonko/tablewriter"
"github.com/pkg/errors"
"github.com/prometheus/client_golang/prometheus"
"github.com/prometheus/client_golang/prometheus/push"
"github.com/rs/zerolog/log"
uuid "github.com/satori/go.uuid"
"github.com/httprunner/httprunner/v4/hrp/internal/json"
)
@@ -461,10 +461,9 @@ var (
// NewPrometheusPusherOutput returns a PrometheusPusherOutput.
func NewPrometheusPusherOutput(gatewayURL, jobName string, mode string) *PrometheusPusherOutput {
nodeUUID, _ := uuid.NewUUID()
return &PrometheusPusherOutput{
pusher: push.New(gatewayURL, jobName).
Grouping("instance", nodeUUID.String()).
Grouping("instance", uuid.NewV1().String()).
Grouping("mode", mode),
}
}