You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Revert "Issue-358 | Replace --enable.COLLECTOR with --collector.COLLECTOR (#365)"
This reverts commit 537c995.
Reverted enable.COLLECTOR because it is a breaking change that needs
exahustive testing. By reverting it, we can make the release v0.20.9
without affecting the current behavior for PMM.
Copy file name to clipboardExpand all lines: main.go
+17-15Lines changed: 17 additions & 15 deletions
Original file line number
Diff line number
Diff line change
@@ -35,21 +35,23 @@ var (
35
35
36
36
// GlobalFlags has command line flags to configure the exporter.
37
37
typeGlobalFlagsstruct {
38
-
CollStatsCollectionsstring`name:"mongodb.collstats-colls" help:"List of comma separared databases.collections to get $collStats" placeholder:"db1.col1,db2.col2"`
39
-
IndexStatsCollectionsstring`name:"mongodb.indexstats-colls" help:"List of comma separared databases.collections to get $indexStats" placeholder:"db1.col1,db2.col2"`
GlobalConnPoolbool`name:"mongodb.global-conn-pool" help:"Use global connection pool instead of creating new pool for each http request."`
42
-
DirectConnectbool`name:"mongodb.direct-connect" help:"Whether or not a direct connect should be made. Direct connections are not valid if multiple hosts are specified or an SRV URI is used." default:"true"`
43
-
WebListenAddressstring`name:"web.listen-address" help:"Address to listen on for web interface and telemetry" default:":9216"`
LogLevelstring`name:"log.level" help:"Only log messages with the given severuty or above. Valid levels: [debug, info, warn, error, fatal]" enum:"debug,info,warn,error,fatal" default:"error"`
46
-
DisableDiagnosticDatabool`name:"no-collector.diagnosticdata" help:"Disable collecting metrics from getDiagnosticData"`
47
-
DisableReplicasetStatusbool`name:"no-collector.replicasetstatus" help:"Disable collecting metrics from replSetGetStatus"`
48
-
EnableDBStatsbool`name:"collector.dbstats" help:"Enable collecting metrics from dbStats"`
49
-
EnableTopbool`name:"enable.top" help:"Enable collecting metrics from top admin command"`
CompatibleModebool`name:"compatible-mode" help:"Enable old mongodb-exporter compatible metrics"`
52
-
Versionbool`name:"version" help:"Show version and exit"`
38
+
CollStatsCollectionsstring`name:"mongodb.collstats-colls" help:"List of comma separared databases.collections to get $collStats" placeholder:"db1.col1,db2.col2"`
39
+
IndexStatsCollectionsstring`name:"mongodb.indexstats-colls" help:"List of comma separared databases.collections to get $indexStats" placeholder:"db1.col1,db2.col2"`
GlobalConnPoolbool`name:"mongodb.global-conn-pool" help:"Use global connection pool instead of creating new pool for each http request."`
42
+
DirectConnectbool`name:"mongodb.direct-connect" help:"Whether or not a direct connect should be made. Direct connections are not valid if multiple hosts are specified or an SRV URI is used." default:"true"`
43
+
WebListenAddressstring`name:"web.listen-address" help:"Address to listen on for web interface and telemetry" default:":9216"`
LogLevelstring`name:"log.level" help:"Only log messages with the given severuty or above. Valid levels: [debug, info, warn, error, fatal]" enum:"debug,info,warn,error,fatal" default:"error"`
46
+
47
+
DisableDiagnosticDatabool`name:"disable.diagnosticdata" help:"Disable collecting metrics from getDiagnosticData"`
48
+
DisableReplicasetStatusbool`name:"disable.replicasetstatus" help:"Disable collecting metrics from replSetGetStatus"`
49
+
EnableDBStatsbool`name:"enable.dbstats" help:"Enable collecting metrics from dbStats"`
50
+
EnableTopbool`name:"enable.top" help:"Enable collecting metrics from top admin command"`
0 commit comments