diff --git a/daemon/algod/server.go b/daemon/algod/server.go index 12cbf3e968..13432957c3 100644 --- a/daemon/algod/server.go +++ b/daemon/algod/server.go @@ -28,6 +28,7 @@ import ( "os" "os/signal" "path/filepath" + "runtime" "strings" "syscall" "time" @@ -230,6 +231,16 @@ func (s *Server) Initialize(cfg config.Local, phonebookAddresses []string, genes NodeExporterPath: cfg.NodeExporterPath, }) + var currentVersion = config.GetCurrentVersion() + var algodBuildInfoGauge = metrics.MakeGauge(metrics.MetricName{Name: "algod_build_info", Description: "Algod build info"}) + algodBuildInfoGauge.SetLabels(1, map[string]string{ + "version": currentVersion.String(), + "goarch": runtime.GOARCH, + "goos": runtime.GOOS, + "commit": currentVersion.CommitHash, + "channel": currentVersion.Channel, + }) + var serverNode ServerNode if cfg.EnableFollowMode { var followerNode *node.AlgorandFollowerNode