Video Transcript (English)
Third-party monitoring services are another tool we can use when monitoring our deployments in Atlas.
In this video, you’ll learn about Atlas integrations.
MongoDB Atlas allows you to integrate with third-party monitoring services to receive Atlas alerts and to view and analyze performance metrics that Atlas collects about your cluster.
Atlas integrations are useful when transitioning from an on-prem setup to MongoDB Atlas or to support hybrid environments.
These integrations include but are not limited to: Prometheus, Datadog, Pager Duty, Sumo Logic, Splunk On-Call, OpsGenie, and custom webhooks.
Most of these integrations are available at all cluster tiers but Prometheus and Data Dog are only available on M10 and above clusters.
To see these integration capabilities in action, let’s integrate with Prometheus, an open-source monitoring and alerting platform that collects metrics from configured targets at given intervals and can trigger alerts when it observes specific conditions.
We’ll also set up a tool called Grafana, an open-source web application for interactive visualization and analysis. We can use Grafana to visualize data collected by Prometheus and display it on customizable charts for easy analysis.
Before we can configure the Atlas integration, we must have a working Prometheus instance, so let’s begin by installing Prometheus on Ubuntu Linux.
First we update APT package lists.
Then we install the prometheus APT package.
Next, let’s confirm that the prometheus system service is running, and check that the Prometheus server is ready to serve traffic.
Great!
Now we’ll configure the Atlas Prometheus integration.
To view third-party integration settings in Atlas, you must have Organization Owner or Project Owner access to the project.
To configure the integration, we start from the database dashboard in the Atlas UI.
Click here to access the drop-down menu and select Integrations.
On the Atlas Project Integrations page, click the Prometheus integration’s Configure button.
Next, we will complete the Prometheus integration configuration form.
Here, we will use the provided username,
And provide or autogenerate a password.
Then we select the HTTP SD option under Service Discovery Method to automatically generate the scrape config part of your configuration file in the next step,
And click the Generate Scrape Configurations button.
Next, we need to add the public IP of the Prometheus host to the Atlas IP Access List.
To do so, we can click here, which opens the Network Access Page in a new browser tab. Then we click the Add IP Address button.
Here, we add the IP address of the Prometheus host and click Confirm.
Now we can return to the browser window to finish configuring the Prometheus integration.
Select Public Internet Target as the discovery API target type and copy the scrape configuration snippet.