mongodb_exporter job from prometheus/31.0.0
Github source:
c2d6d4c or
master branch
Properties¶
mongodb_exporter¶
collect-all¶Enable all collectors. Same as specifying all –collector.
collector¶
collstats¶Enable collecting metrics from $collStats
collstats-enable-details¶Enable collecting index details and wired tiger metrics from $collStats, defaults to false
collstats-limit¶Disable collstats, dbstats, topmetrics and indexstats collector if there are more than collections. 0=No limit, defaults to 0
currentopmetrics¶Enable collecting metrics currentop admin command
currentopmetrics-slow-time¶Set minimum time for registration queries, defaults to 1m
dbstats¶Enable collecting metrics from dbStats
dbstatsfreestorage¶Enable collecting free space metrics from dbStats
diagnosticdata¶Enable collecting metrics from getDiagnosticData
exporter-metrics¶Enable collecting metrics about the exporter itself (process*, go*), defaults to true
fcv¶Enable Feature Compatibility Version collector
indexstats¶Enable collecting metrics from $indexStats
pbm¶Enable collecting metrics from Percona Backup for MongoDB
profile¶Enable collecting metrics from profile
profile-time-ts¶Set time for scrape slow queries, defaults to 30s
replicasetconfig¶Enable collecting metrics from replSetGetConfig
replicasetstatus¶Enable collecting metrics from replSetGetStatus
shards¶Enable collecting metrics from sharded Mongo clusters about chunks
topmetrics¶Enable collecting metrics from top admin command
compatible-mode¶Enable old mongodb-exporter compatible metrics
discovering-mode¶Enable autodiscover collections
log¶
level¶Only log messages with the given severity or above. Valid levels: [debug, info, warn, error, fatal]. defaults to error
metrics¶
overridedescendingindex¶Enable descending index name override to replace -1 with _DESC
mongodb¶
collstats-colls¶List of comma separated databases.collections to get $collStats
connect-timeout-ms¶Connection timeout in milliseconds, defaults to 5000
direct-connect¶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.
global-conn-pool¶Use global connection pool instead of creating new pool for each http request.
indexstats-colls¶List of comma separated databases.collections to get $indexStats
password¶monitor user password
uri¶Mongodb URI, format: [mongodb://][user:pass@]host1[:port1][,host2[:port2],…][/database][?options]
user¶monitor user, need clusterMonitor role in admin db and read role in local db
split-cluster¶Treat each node in cluster as a separate target
version¶Show version and exit
web¶
listen-address¶Address to listen on for web interface and telemetry, defaults to 9216
telemetry-path¶Metrics expose path, defaults to /metrics
timeout-offset¶Offset to subtract from the request timeout in seconds, defaults to 1
tls_cert¶TLS certificate for the HTTPS server (PEM format)
tls_client_auth_type¶Server policy for client authentication. Maps to ClientAuth Policies. Possible values: NoClientCert, RequestClientCert, RequireAnyClientCert, VerifyClientCertIfGiven, RequireAndVerifyClientCert
- Default
RequireAndVerifyClientCert
tls_client_ca¶TLS CA certificate for client verification (PEM format)
tls_private_key¶TLS private key for the HTTPS server (PEM format)
Templates¶
Templates are rendered and placed onto corresponding
instances during the deployment process. This job's templates
will be placed into /var/vcap/jobs/mongodb_exporter/ directory
(learn more).
bin/mongodb_exporter_ctl(frombin/mongodb_exporter_ctl)config/web.config.yml(fromconfig/web.config.yml)config/web_tls_cert.pem(fromconfig/web_tls_cert.pem)config/web_tls_client_ca.pem(fromconfig/web_tls_client_ca.pem)config/web_tls_key.pem(fromconfig/web_tls_key.pem)
Packages¶
Packages are compiled and placed onto corresponding
instances during the deployment process. Packages will be
placed into /var/vcap/packages/ directory.