Skip to content

Commit

Permalink
version: add version string to metrics
Browse files Browse the repository at this point in the history
Before this patch:
tetragon_build_info{commit="61b575c72b22aa8bb6d7ed8af2d3dbfee43f6307",go_version="go1.23.1",modified="true",time="2024-10-23T06:20:18Z"} 1

After:
tetragon_build_info{commit="61b575c72b22aa8bb6d7ed8af2d3dbfee43f6307",go_version="go1.23.1",modified="true",time="2024-10-23T06:20:18Z",version="v1.3.0-pre.0-216-g61b575c72"} 1

Signed-off-by: Kornilios Kourtis <[email protected]>
  • Loading branch information
kkourt committed Oct 23, 2024
1 parent 61b575c commit 4428023
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/version/metrics.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ func NewBuildInfoCollector() prometheus.Collector {
"Build information about tetragon",
nil,
prometheus.Labels{
"version": Version,
"go_version": buildInfo.GoVersion,
"commit": buildInfo.Commit,
"time": buildInfo.Time,
Expand Down

0 comments on commit 4428023

Please sign in to comment.