MongoDB
Setup
The Percona MongoDB Exporter is recommended to export MongoDB metrics in Prometheus format.
The docker version of the exporter can be started as follows:
The MONGODB_USER
and MONGODB_PASSWORD
can be used to pass credentials. Alternatively, you can use the MongoDB exporter Prometheus community helm chart.
For details on the various options in the exporter, please take a look at the usage guide.
Metrics
Request and Errors
Metric | Key Performance Indicator |
---|---|
Request Rate
| |
Request Rate
| |
Latency Average |
Resource Metrics
Metric | Key Performance Indicator |
---|---|
Connection Counts | Connection Usage |
Alerts
KPI | Alert |
---|---|
Request Rate | RequestRateAnomaly |
Latency Average | LatencyAverageAnomaly, LatencyAverageBreach |
Connection Usage | Saturation with a severity level of critical when utilization exceeds 90% |
Failure Alerts
Alert | Description |
---|---|
MongodbDown | Fires when Mongo DB is down |
MongodbReplicaMemberUnhealthy | Fires when a replica in a replication set is unhealthy |
MongodbReplicationLag | Fires when the replication lag of a secondary is more than a configured time duration. Severity is set to warning when lag > 60s and critical when lag > 240s. |
MongodbReplicationHeadroom | Fires when the replication lag of a secondary is more than a configured time duration. Severity is set to warning when lag > 60s and critical when lag > 240s. |
MongodbTooManyCursorsOpen | Fires when the number of open cursors is above a given threshold. By default, the threshold is set to 10000. Severity is set to warning. |
MongodbTooManyCursorTimeouts | Fires if the rate of cursor timeout is above a certain threshold. By default, the threshold is set to 100. Severity is set to warning. |
MongodbInternalErrors | Fires when the count of internal errors keeps growing for 5m. Severity is set to warning |
MongodbUserErrors | Fires when the count of user errors keeps growing for 5m. Severity is set to warning. |
ReadRequestsQueueingUp | If the read queue keeps growing for 5m. Severity is set to warning. |
WriteRequestsQueueingUp | If the write queue keeps growing for 5m. Severity is set to warning. |
Dashboard
Last updated