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.
手順
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.
Set up your monitoring toolkit to gather metrics.
For details, see Monitoring Tool Integrations.
Configure the recommended alerts.
For details, see Recommended Alerts for mongot.
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.
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.