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
add option --collector.dbstatsfreestorage to receive freeStorage stats from dbstats (#666)
* add option --collector.dbstatsfreestorage to receive freeStorage stats from dbstats #617
* do not add freeStorage option per default. not suppored at mongodb 4.4
---------
Co-authored-by: Alex Tymchuk <[email protected]>
Co-authored-by: Nurlan Moldomurov <[email protected]>
Copy file name to clipboardExpand all lines: main.go
+14-12Lines changed: 14 additions & 12 deletions
Original file line number
Diff line number
Diff line change
@@ -44,12 +44,13 @@ type GlobalFlags struct {
44
44
TLSConfigPathstring`name:"web.config" help:"Path to the file having Prometheus TLS config for basic auth"`
45
45
LogLevelstring`name:"log.level" help:"Only log messages with the given severity or above. Valid levels: [debug, info, warn, error, fatal]" enum:"debug,info,warn,error,fatal" default:"error"`
46
46
47
-
EnableDiagnosticDatabool`name:"collector.diagnosticdata" help:"Enable collecting metrics from getDiagnosticData"`
48
-
EnableReplicasetStatusbool`name:"collector.replicasetstatus" help:"Enable collecting metrics from replSetGetStatus"`
49
-
EnableDBStatsbool`name:"collector.dbstats" help:"Enable collecting metrics from dbStats"`
50
-
EnableTopMetricsbool`name:"collector.topmetrics" help:"Enable collecting metrics from top admin command"`
51
-
EnableIndexStatsbool`name:"collector.indexstats" help:"Enable collecting metrics from $indexStats"`
52
-
EnableCollStatsbool`name:"collector.collstats" help:"Enable collecting metrics from $collStats"`
47
+
EnableDiagnosticDatabool`name:"collector.diagnosticdata" help:"Enable collecting metrics from getDiagnosticData"`
48
+
EnableReplicasetStatusbool`name:"collector.replicasetstatus" help:"Enable collecting metrics from replSetGetStatus"`
49
+
EnableDBStatsbool`name:"collector.dbstats" help:"Enable collecting metrics from dbStats"`
50
+
EnableDBStatsFreeStoragebool`name:"collector.dbstatsfreestorage" help:"Enable collecting free space metrics from dbStats"`
51
+
EnableTopMetricsbool`name:"collector.topmetrics" help:"Enable collecting metrics from top admin command"`
52
+
EnableIndexStatsbool`name:"collector.indexstats" help:"Enable collecting metrics from $indexStats"`
53
+
EnableCollStatsbool`name:"collector.collstats" help:"Enable collecting metrics from $collStats"`
53
54
54
55
EnableOverrideDescendingIndexbool`name:"metrics.overridedescendingindex" help:"Enable descending index name override to replace -1 with _DESC"`
0 commit comments