Integrate with Third-Party Services
On this page
You can use Atlas Kubernetes Operator to integrate Atlas with third-party services to:
Receive Atlas alerts in various third-party services.
View and analyze performance metrics that Atlas collects about your cluster.
To learn more, see Integrate with Third-Party Services.
Note
Currently, Serverless instance metrics don't support any third-party services (for example, Datadog).
Prerequisites
You need the following public API key, private API key, and the organization ID information to configure Atlas Kubernetes Operator access to Atlas.
If you want Atlas Kubernetes Operator to create a new Atlas project, Grant Programmatic Access to an Organization. If your organization requires an IP access list for the Atlas Administration API, you must also configure the API access list.
Important
You must assign the API key the Organization Project Creator organization role or higher.
If you want to work with an existing Atlas project, Add Project Access from a Project. If your organization requires an IP access list for the Atlas Administration API, you must also configure the API access list.
Important
You must assign the API key the Project Owner project role.
To learn more, see Configure Access to Atlas.
Procedure
To integrate Atlas with a third-party service, configure the
AtlasProject
Custom Resource.
Example:
cat <<EOF | kubectl apply -f - apiVersion: atlas.mongodb.com/v1 kind: AtlasProject metadata: name: my-project spec: name: TestDatadogIntegration connectionSecretRef: name: my-atlas-key projectIpAccessList: - cidrBlock: "0.0.0.0/1" comment: "Everyone has access. For test purposes only." - cidrBlock: "128.0.0.0/1" comment: "Everyone has access. For test purposes only." integrations: - type: "DATADOG" apiKeyRef: name: key-name namespace: key-namespace region: "US" EOF
The parameters that you must specify in the
AtlasProject
Custom Resource depend on the third-party service
that you want to configure:
Service | Settings |
---|---|
All | |
Datadog | |
Microsoft Teams | |
Opsgenie | |
PagerDuty | |
Prometheus | |
Slack | |
VictorOps | |
Webhook Settings |
For another example, see Prometheus Example.
Note
Atlas Kubernetes Operator offers a sample Grafana dashboard that you can import into Grafana.
To learn more about the configuration parameters available from the API, see the Atlas Third-Party Integration Settings.