You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: flags/flags.go
+9Lines changed: 9 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,7 @@
1
1
package flags
2
2
3
3
import (
4
+
"fmt"
4
5
"os"
5
6
"strings"
6
7
@@ -39,6 +40,9 @@ var (
39
40
40
41
ScrapeInterval=kingpin.Flag("scrape-interval", "How often to gather metrics from the agent").Default("15s").Envar("SCRAPE_INTERVAL").Duration()
41
42
WalDir=kingpin.Flag("wal-dir", "Path to where the agent stores data (e.g. the metrics Write-Ahead Log)").Default("/tmp/coroot-node-agent").Envar("WAL_DIR").String()
43
+
44
+
agentVersion=kingpin.Flag("version", "Print version and exit").Default("false").Bool()
0 commit comments