File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11package utils
22
33const (
4- Version = "2018-11-04 16:22:35 +0800 @de1ad026e329561c22e2a3035fbfe89dc7fef764 @3.2.2-12-gde1ad026"
5- Compile = "2023-02-23 11:25:09 +0800 by go version go1.19.6 linux/amd64"
4+ Version = "3.5.4"
5+ Gitsha = "5c5d89d5478138d64bd071840beab30a64105075"
6+ Compile = "2025-03-26 11:30:14 CST"
7+ GoVersion = "go1.23.4 darwin/amd64"
68)
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ cat << EOF | gofmt > version.go
1717package main
1818
1919const (
20-
20+ PikaExporterVersion = " $( PIKA_EXPORTER_MAJOR ) . $( PIKA_EXPORTER_MINOR ) . $( PIKA_EXPORTER_PATCH ) "
2121 BuildVersion = "$(BRANCH ) "
2222 BuildCommitSha = "$(GITREV ) "
2323 BuildDate = "$(BUILDTIME ) "
Original file line number Diff line number Diff line change @@ -56,6 +56,7 @@ func main() {
5656 flag .Parse ()
5757
5858 log .Println ("Pika Metrics Exporter" )
59+ log .Println ("Pika Exporter Version: " , PikaExporterVersion )
5960 log .Println ("Build Date: " , BuildDate )
6061 log .Println ("Commit SHA: " , BuildCommitSha )
6162 log .Println ("Go Version: " , GoVersion )
You can’t perform that action at this time.
0 commit comments