From b0a9fe6d718947863058d2a3acb884cabd831381 Mon Sep 17 00:00:00 2001 From: Rasmus Dahlberg Date: Sat, 25 Mar 2023 15:26:33 +0100 Subject: Improve health and metrics --- internal/options/options.go | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'internal/options') 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() -- cgit v1.2.3