---
name: "prometheus-mongodb-exporter"
section: "1"
platform: "linux"
package: "prometheus-mongodb-exporter"
version: "1.0.0+git20180522.e755a44-5+b3"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/prometheus-mongodb-exporter"
---

# prometheus-mongodb-exporter(1)

Prometheus exporter for MongoDB

## NAME

prometheus-mongodb-exporter - Prometheus exporter for MongoDB

## DESCRIPTION

### Usage of prometheus-mongodb-exporter:

**-alsologtostderr**

-

  log to standard error as well as files

**-auth**.pass string

-

  Password for basic auth.

**-auth**.user string

-

  Username for basic auth.

**-groups**.enabled string

-

  Comma-separated list of groups to use, for more info see: docs.mongodb.org/manual/reference/command/serverStatus/

**-log\_backtrace\_at** value

-

  when logging hits line file:N, emit a stack trace

**-log\_dir** string

-

  If non-empty, write log files in this directory

**-logtostderr**

-

  log to standard error instead of files

**-mongodb**.collect.collection

-

  Collect MongoDB collection metrics

**-mongodb**.collect.connpoolstats

-

  Collect MongoDB connpoolstats

**-mongodb**.collect.database

-

  collect MongoDB database metrics

**-mongodb**.collect.oplog

-

  collect Mongodb Oplog status (default true)

**-mongodb**.collect.profile

-

  Collect MongoDB profile metrics

**-mongodb**.collect.replset

-

  collect Mongodb replica set status (default true)

**-mongodb**.collect.top

-

  collect Mongodb Top metrics

**-mongodb**.mechanism string

-

  auth mechanism to connect to Mongodb (ie: MONGODB-X509)

**-mongodb**.tls-ca string

-

  Path to PEM file that contains the CAs that are trused for server connections.

-

  If provided: MongoDB servers connecting to should present a certificate signed by one of this CAs. If not provided: System default CAs are used.

**-mongodb**.tls-cert string

-

  Path to PEM file that contains the certificate (and optionally also the private key in PEM format).

-

  This should include the whole certificate chain. If provided: The connection will be opened via TLS to the MongoDB server.

**-mongodb**.tls-disable-hostname-validation

-

  Do hostname validation for server connection.

**-mongodb**.tls-private-key string

-

  Path to PEM file that contains the private key (if not contained in mongodb.tls-cert file).

**-mongodb**.uri string

-

  Mongodb URI, format: \[mongodb://\] \[user:pass@\] host1\[:port1\] \[,host2\[:port2\],...\] \[/database\] \[?options\]  Note: default "mongodb://localhost:27017"

**-mongodb**.username string

-

  Username to connect to Mongodb

**-stderrthreshold** value

-

  logs at or above this threshold go to stderr

**-v** value

-

  log level for V logs

**-version**

-

  Print mongodb\_exporter version

**-vmodule** value

-

  comma-separated list of pattern=N settings for file-filtered logging

**-web**.listen-address string

-

  Address on which to expose metrics and web interface. (default ":9001")

**-web**.metrics-path string

-

  Path under which to expose metrics. (default "/metrics")

**-web**.tls-cert string

-

  Path to PEM file that contains the certificate (and optionally also the private key in PEM format).

-

  This should include the whole certificate chain. If provided: The web socket will be a HTTPS socket. If not provided: Only HTTP.

**-web**.tls-client-ca string

-

  Path to PEM file that contains the CAs that are trused for client connections.

-

  If provided: Connecting clients should present a certificate signed by one of this CAs. If not provided: Every client will be accepted.

**-web**.tls-private-key string

-

  Path to PEM file that contains the private key (if not contained in web.tls-cert file).

## AUTHOR

 This manpage was written by Nilesh Patra for the Debian distribution and\
  can be used for any other usage of the program.
