aboutsummaryrefslogtreecommitdiff
path: root/internal/options
diff options
context:
space:
mode:
authorRasmus Dahlberg <rasmus@rgdd.se>2023-03-25 15:26:33 +0100
committerRasmus Dahlberg <rasmus@rgdd.se>2023-03-25 15:26:33 +0100
commitb0a9fe6d718947863058d2a3acb884cabd831381 (patch)
tree7221249d764f8a47abba145cc82eb65651b9b59d /internal/options
parentaf5be4fbd0c3824478b9cfc261b7a34e98a36e0f (diff)
Improve health and metrics
Diffstat (limited to 'internal/options')
-rw-r--r--internal/options/options.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/internal/options/options.go b/internal/options/options.go
index c988713..a567b0e 100644
--- a/internal/options/options.go
+++ b/internal/options/options.go
@@ -17,6 +17,8 @@ type Options struct {
MaxResponse int64
// Health and metrics
+ CheckerDomain string
+ CheckerInterval time.Duration
MetricsInterval time.Duration
}
@@ -29,6 +31,8 @@ func Parse() (opts Options) {
flag.DurationVar(&opts.Timeout, "t", 10*time.Second, "timeout for each website visit")
flag.Int64Var(&opts.MaxResponse, "r", 128, "max response body size to accept in MiB")
+ flag.StringVar(&opts.CheckerDomain, "c", "rgdd.se", "domain with onion location for setup santity-checks")
+ flag.DurationVar(&opts.CheckerInterval, "C", 10*time.Second, "how often to to run checker")
flag.DurationVar(&opts.MetricsInterval, "m", 5*time.Second, "how often to emit metrics")
flag.Parse()