Set Up Monitoring for New Deployment
For the complete MongoDB documentation index, see www.mongodb.com/docs/llms.txt
Set Up Monitoring for New Deployment
Follow these steps to set up monitoring for a new mongot deployment. Monitoring gives you visibility into the overall health of your mongot deployment and allows you to troubleshoot any issues that might come up.
Steps
- Enable the metrics endpoint.
The mongot configuration file included in the package download, config.default.yml, enables the metrics endpoint on localhost:9946. For production deployments, bind to an interface reachable from your Prometheus. For example, if you front Prometheus with a network policy or a specific NIC, you can use 0.0.0.0:9946. If your endpoint is exposed beyond loopback, protect it with TLS or a reverse proxy. For details, see [mongot Options.](https://www.mongodb.com/docs/manual/reference/configuration-options.md#std-label-mongot-configuration-options
- Set up your monitoring toolkit to gather metrics.
For details, see [Monitoring Tool Integrations.](https://www.mongodb.com/docs/search/self-managed/current/monitoring/tool-integrations.md#std-label-mongot-tool-integrations
- Configure the recommended alerts.
For details, see [Recommended Alerts for mongot.](https://www.mongodb.com/docs/search/self-managed/current/monitoring/recommended-alerts.md#std-label-mongot-recommended-alerts
- Forward the logs.
Centralize mongot logs into your existing log platform. Most failures are visible in logs before they appear in metrics. For details, see [mongot Logs and FTDC.](https://www.mongodb.com/docs/search/self-managed/current/monitoring/logs-ftdc.md#std-label-mongot-logs-ftdc
- Capture an FTDC baseline.
Capture an FTDC baseline so that you can provide MongoDB support with a comparison point if something goes wrong later. For details, see [mongot Logs and FTDC.](https://www.mongodb.com/docs/search/self-managed/current/monitoring/logs-ftdc.md#std-label-mongot-logs-ftdc
Learn More
-
[mongot Options](https://www.mongodb.com/docs/manual/reference/configuration-options.md#std-label-mongot-configuration-options
-
[Monitoring Tool Integrations](https://www.mongodb.com/docs/search/self-managed/current/monitoring/tool-integrations.md#std-label-mongot-tool-integrations
-
[Recommended Alerts](https://www.mongodb.com/docs/search/self-managed/current/monitoring/recommended-alerts.md#std-label-mongot-recommended-alerts
-
[Logs and FTDC](https://www.mongodb.com/docs/search/self-managed/current/monitoring/logs-ftdc.md#std-label-mongot-logs-ftdc
