Skip to content

Latest commit

 

History

History
82 lines (63 loc) · 3.48 KB

third_party_integrations.md

File metadata and controls

82 lines (63 loc) · 3.48 KB

Data Source: mongodbatlas_third_party_integrations

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.

Example Usage

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
}

Argument Reference

  • project_id - (Required) The unique ID for the project to get all Third-Party service integrations

Attributes Reference

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.

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 the region 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
  • 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.