MongoDB

MongoDB

This section describes the MongoDB alerts.


MongoDBServiceDown

Severity

Minor

Summary

The MongoDB service on the {{ $labels.host }} node is down for 1 minute.

Raise condition

mongodb_up == 0

Description

Raises when the MongoDB process is in the DOWN state on a host. The host label in the raised alert contains the host name of the affected node.

Troubleshooting

Inspect the MongoDB logs using journalctl -u mongodb on the affected node or in /var/log.

Tuning

Not required

MongoDBServiceOutage

Severity

Critical

Summary

All MongoDB services are down for 1 minute.

Raise condition

count(mongodb_up == 0) == count(mongodb_up)

Description

Raises when the MongoDB processes are in the DOWN state on all nodes.

Troubleshooting

  • Inspect the MongoDBServiceDown alert for the affected node.

  • Inspect the MongoDB logs using journalctl -u mongodb on the affected node or in /var/log.

Tuning

Not required

MongoDBNoPrimaryMember

Severity

Critical

Summary

MongoDB cluster has no primary member for 1 minute.

Raise condition

absent(mongodb_state == 1)

Description

Raises when the MongoDB cluster has no primary member.

Troubleshooting

Inspect the MongoDB logs using journalctl -u mongodb on a node with MongoDB or in /var/log.

Tuning

Not required