Skip to content

Commit

Permalink
improve toolstack
Browse files Browse the repository at this point in the history
  • Loading branch information
svenwltr committed Jan 13, 2023
1 parent 6c87ec8 commit ac34cf6
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions pkg/instutil/toolstack.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package instutil

import (
"fmt"
"strings"

"github.com/prometheus/client_golang/prometheus"
Expand All @@ -14,19 +13,18 @@ func init() {
Name: "toolstack",
}, []string{
"toolstack",
"language",
"language_version",
"sdk",
"sdk_version",
"version",
})
prometheus.MustRegister(gauge)

major := strings.SplitN(cmdutil.SDKVersion, ".", 2)[0]

gauge.WithLabelValues(
fmt.Sprintf("golang.rebuy-go-sdk.%s", major),
"golang",
cmdutil.GoVersion,
).Set(1)

gauge.WithLabelValues(
"rebuy-go-sdk",
cmdutil.SDKVersion,
).Set(1)
Expand Down

0 comments on commit ac34cf6

Please sign in to comment.