mirror of
https://github.com/prometheus-community/windows_exporter.git
synced 2026-10-19 19:19:04 +02:00
cmd: add --scrape.stdout one-shot mode (#2705)
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
This commit is contained in:
@@ -158,7 +158,9 @@ func TestNewConfigFileResolverFlags(t *testing.T) {
|
||||
// selects the configuration file itself
|
||||
flag.Name == "config.file",
|
||||
// prints the available sub-collectors and exits
|
||||
flag.Name == "collector.exchange.list":
|
||||
flag.Name == "collector.exchange.list",
|
||||
// CLI-only diagnostic mode; not valid in a config file
|
||||
flag.Name == "scrape.stdout":
|
||||
continue
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user