You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We used to have alerts configured for disk metrics (DISK_PARTITION_SPACE_USED_DATA) and it seems either they are not supported anymore or they have changed names.
This docs shows:
DISK_PARTITION_SPACE_USED_DATA
DISK_PARTITION_SPACE_USED_INDEX
DISK_PARTITION_SPACE_USED_JOURNAL
DISK_PARTITION_UTILIZATION_DATA
DISK_PARTITION_UTILIZATION_INDEX
DISK_PARTITION_UTILIZATION_JOURNAL
This is my terraform script, that worked before: resource "mongodbatlas_alert_configuration" "disk-space" { project_id = var.project_id event_type = "OUTSIDE_METRIC_THRESHOLD" enabled = true
Error: error getting Alert Configuration information: PUT https://cloud.mongodb.com/api/atlas/v1.0/groups/602428316c23fa47a1739058/alertConfigs/602428316c23fa47a173905f: 400 (request "METRIC_TYPE_UNSUPPORTED") The metric type DISK_PARTITION_UTILIZATION_DATA is not supported. on mongodb.tf line 580, in resource "mongodbatlas_alert_configuration" "disk-space": 580: resource "mongodbatlas_alert_configuration" "disk-space"
The text was updated successfully, but these errors were encountered:
Thanks for opening this issue! Please make sure you've followed our guidelines when opening the issue. In short, to help us reproduce the issue we need:
Terraform configuration file used to reproduce the issue
Terraform log files from the run where the issue occurred
Terraform Atlas provider version used to reproduce the issue
Terraform version used to reproduce the issue
Confirmation if Terraform OSS, Terraform Cloud, or Terraform Enterprise deployment
The ticket CLOUDP-216234 was created for internal tracking.
Hello @NicBelley
Thanks for opening the issue. Your terraform configuration file contains metric_name = "DISK_PARTITION_SPACE_USED_DATA" but then the error says (request "METRIC_TYPE_UNSUPPORTED") The metric type DISK_PARTITION_UTILIZATION_DATA is not supported.
Is the provided tf configuration the correct one? Could you also share the Atlas provider version and the Terraform version used to reproduce the issue? Thanks
We just update our version to terraformVersion: '0.15.5' and the provider "registry.terraform.io/mongodb/mongodbatlas" to version "1.13.1" and now it works!
We used to have alerts configured for disk metrics (DISK_PARTITION_SPACE_USED_DATA) and it seems either they are not supported anymore or they have changed names.
According to the documentation, they are still available:
https://www.mongodb.com/docs/mongocli/v1.16/reference/atlas/alerts-list/
This docs shows:
DISK_PARTITION_SPACE_USED_DATA
DISK_PARTITION_SPACE_USED_INDEX
DISK_PARTITION_SPACE_USED_JOURNAL
DISK_PARTITION_UTILIZATION_DATA
DISK_PARTITION_UTILIZATION_INDEX
DISK_PARTITION_UTILIZATION_JOURNAL
This is my terraform script, that worked before:
resource "mongodbatlas_alert_configuration" "disk-space" {
project_id = var.project_id
event_type = "OUTSIDE_METRIC_THRESHOLD"
enabled = true
metric_threshold_config {
metric_name = "DISK_PARTITION_SPACE_USED_DATA"
mode = "AVERAGE"
operator = "GREATER_THAN"
threshold = 90
units = "RAW"
}
notification {
type_name = "PAGER_DUTY"
delay_min = 10
service_key = var.alerts.resources_usage_service_key
}
}
The error in the pipeline is:
Error: error getting Alert Configuration information: PUT https://cloud.mongodb.com/api/atlas/v1.0/groups/602428316c23fa47a1739058/alertConfigs/602428316c23fa47a173905f: 400 (request "METRIC_TYPE_UNSUPPORTED") The metric type DISK_PARTITION_UTILIZATION_DATA is not supported. on mongodb.tf line 580, in resource "mongodbatlas_alert_configuration" "disk-space": 580: resource "mongodbatlas_alert_configuration" "disk-space"
The text was updated successfully, but these errors were encountered: