Skip to content

Commit

Permalink
Fix metrics
Browse files Browse the repository at this point in the history
  • Loading branch information
gagliardetto committed May 6, 2024
1 parent a5524b9 commit 07a546d
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions metrics.go
Original file line number Diff line number Diff line change
Expand Up @@ -92,9 +92,17 @@ var metrics_version = prometheus.NewGaugeVec(
func init() {
// Add an entry to the metric with the version information.
labeledValues := map[string]string{
"started_at": StartedAt.Format(time.RFC3339),
"tag": GitTag,
"commit": GitCommit,
"started_at": StartedAt.Format(time.RFC3339),
"tag": GitTag,
"commit": GitCommit,
"compiler": "",
"goarch": "",
"goos": "",
"goamd64": "",
"vcs": "",
"vcs_revision": "",
"vcs_time": "",
"vcs_modified": "",
}
if info, ok := debug.ReadBuildInfo(); ok {
for _, setting := range info.Settings {
Expand Down

0 comments on commit 07a546d

Please sign in to comment.