We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 74023b4 commit 478d7e0Copy full SHA for 478d7e0
cmd/main.go
@@ -18,14 +18,21 @@ var (
18
CommitID = "(unset)"
19
)
20
21
+func init() {
22
+ metrics.UpdateDefaultVersions(Version, CommitID)
23
+}
24
+
25
func main() {
26
log := zap.New(zap.UseDevMode(true))
27
log.Info("Initializing smbmetrics",
28
"ProgramName", os.Args[0],
- "Version", Version,
- "CommitID", CommitID,
29
"GoVersion", goruntime.Version())
30
31
+ vers, _ := metrics.ResolveVersions(nil)
32
+ log.Info("Versions", "Versions", vers)
33
34
+ log.Info("Self", "PodID", metrics.GetSelfPodID())
35
36
loc, err := metrics.LocateSmbStatus()
37
if err != nil {
38
log.Error(err, "Failed to locate smbstatus")
0 commit comments