From b22c8ebb7c23eccffcb93af1abeb07cd00433ed4 Mon Sep 17 00:00:00 2001 From: Rene Zbinden Date: Tue, 20 Apr 2021 13:52:56 +0200 Subject: [PATCH] fix: use '-e' as short flag for `--filter-scrape-url` flag --- internal/cmd/target.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/cmd/target.go b/internal/cmd/target.go index 3c2a36a..2d6ae05 100644 --- a/internal/cmd/target.go +++ b/internal/cmd/target.go @@ -61,7 +61,7 @@ func (t targetCmd) Run(g *Globals, l *zap.SugaredLogger, app *kong.Context) erro type targetFilter struct { Name string `short:"N" help:"Filter targets by job name (regular expression)."` Server string `short:"S" help:"Filter targets by promehteus server name (regular expression)."` - ScrapeURL string `short:"u" help:"Filter targets by scrape url (regular expression)."` + ScrapeURL string `short:"e" help:"Filter targets by scrape endpoint url (regular expression)."` Health v1.HealthStatus `short:"H" help:"Filter targets by health (up|down)" enum:"up,down,unknown,"` Selector string `short:"s" help:"Filter services by (k8s style) selector."` }