*: replace --collectors.[name].* with --collector.[name].* flags (click PR number for more information) (#1659)

This commit is contained in:
Jan-Otto Kröpke
2024-10-02 13:24:58 +02:00
committed by GitHub
parent 2155d34779
commit 0a78909cf6
5 changed files with 7 additions and 7 deletions

View File

@@ -106,12 +106,12 @@ func NewWithFlags(app *kingpin.Application) *Collector {
var collectorsEnabled string
app.Flag(
"collectors.exchange.list",
"collector.exchange.list",
"List the collectors along with their perflib object name/ids",
).BoolVar(&listAllCollectors)
app.Flag(
"collectors.exchange.enabled",
"collector.exchange.enabled",
"Comma-separated list of collectors to use. Defaults to all, if not specified.",
).Default(strings.Join(ConfigDefaults.CollectorsEnabled, ",")).StringVar(&collectorsEnabled)