cmd: add --scrape.stdout one-shot mode (#2705)

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
This commit is contained in:
Marc-André Lureau
2026-10-13 16:44:34 +02:00
committed by GitHub
parent 8f118226f7
commit 5d6cf525bf
4 changed files with 102 additions and 5 deletions
+3 -1
View File
@@ -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
}