mongodbatlas_third_party_integrations
describes all Third-Party Integration Settings. This represents two Third-Party services PAGER_DUTY
and DATADOG
applied across the project.
-> NOTE: Groups and projects are synonymous terms. You may find groupId
in the official documentation.
resource "mongodbatlas_third_party_integration" "test_pager_duty" {
project_id = "<PROJECT-ID>"
type = "PAGER_DUTY"
service_key = "<PAGER-DUTY-SERVICE-KEY>"
}
resource "mongodbatlas_third_party_integration" "test_datadog" {
project_id = "<PROJECT-ID>"
type = "DATADOG"
api_key = "<API-KEY>"
region = "<REGION>"
}
data "mongodbatlas_third_party_integrations" "test" {
project_id = mongodbatlas_third_party_integration.test_pager_duty.project_id
}
project_id
- (Required) The unique ID for the project to get all Third-Party service integrations
In addition to all arguments above, the following attributes are exported:
id
- Autogenerated Unique ID for this data source.results
- A list where each represents a Third-Party service integration.
-
project_id
- ID of the Atlas project the Third-Party Service Integration belongs to. -
type
- Thirt-Party service integration type. -
id
- Unique identifier of the integration.- PAGER_DUTY
- DATADOG
- OPS_GENIE
- VICTOR_OPS
- WEBHOOK
- MICROSOFT_TEAMS
- PROMETHEUS
Additional values based on Type
PAGER_DUTY
service_key
- Your Service Key.
DATADOG
api_key
- Your API Key.region
- Two-letter code that indicates which API URL to use. See theregion
response field of MongoDB API Third-Party Service Integration documentation for more details. Datadog will use "US" by default.send_collection_latency_metrics
- Toggle sending collection latency metrics that includes database names and collection names and latency metrics on reads, writes, commands, and transactions.send_database_metrics
- Toggle sending database metrics that includes database names and metrics on the number of collections, storage size, and index size.
OPS_GENIE
api_key
- Your API Key.region
- Two-letter code that indicates which API URL to use. See theregion
response field of MongoDB API Third-Party Service Integration documentation for more details. Opsgenie will use US by default.
VICTOR_OPS
api_key
- Your API Key.routing_key
- An optional field for your Routing Key.
WEBHOOK
url
- Your webhook URL.secret
- An optional field for your webhook secret.
MICROSOFT_TEAMS
name
- Your Microsoft Teams incoming webhook name.microsoft_teams_webhook_url
- Your Microsoft Teams incoming webhook URL.
PROMETHEUS
user_name
- Your Prometheus username.service_discovery
- Indicates which service discovery method is used, either file or http.enabled
- Whether your cluster has Prometheus enabled.
See MongoDB Atlas API Documentation for more information.