"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "vendor/github.com/grafana/xk6-output-prometheus-remote/pkg/remotewrite/prometheus.go" between
k6-0.45.0.tar.gz and k6-0.45.1.tar.gz

About: k6 is a load and performance testing tool that provides a clean, approachable scripting API, local and cloud execution, and flexible configuration.

prometheus.go  (k6-0.45.0):prometheus.go  (k6-0.45.1)
package remotewrite package remotewrite
import ( import (
"sort" "sort"
prompb "buf.build/gen/go/prometheus/prometheus/protocolbuffers/go"
"github.com/mstoykov/atlas" "github.com/mstoykov/atlas"
prompb "go.buf.build/grpc/go/prometheus/prometheus"
"go.k6.io/k6/metrics" "go.k6.io/k6/metrics"
) )
const namelbl = "__name__" const namelbl = "__name__"
// MapTagSet converts a k6 tag set into // MapTagSet converts a k6 tag set into
// the equivalent set of Labels as expected from the // the equivalent set of Labels as expected from the
// Prometheus' data model. // Prometheus' data model.
func MapTagSet(t *metrics.TagSet) []*prompb.Label { func MapTagSet(t *metrics.TagSet) []*prompb.Label {
n := (*atlas.Node)(t) n := (*atlas.Node)(t)
 End of changes. 2 change blocks. 
1 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)