Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MILLION_RPU unit isn't supported by provider #854

Closed
tcarrondo opened this issue Sep 22, 2022 · 4 comments
Closed

MILLION_RPU unit isn't supported by provider #854

tcarrondo opened this issue Sep 22, 2022 · 4 comments

Comments

@tcarrondo
Copy link

Terraform CLI and Terraform MongoDB Atlas Provider Version

$ terraform version
Terraform v1.3.0
on linux_amd64
+ provider registry.terraform.io/mongodb/mongodbatlas v1.4.6

Terraform Configuration File

resource "mongodbatlas_alert_configuration" "with_thresholds" {

  project_id = data.mongodbatlas_project.main.id
  event_type = "OUTSIDE_SERVERLESS_METRIC_THRESHOLD"
  enabled    = true

  notification {
    type_name    = "TEAM"
    interval_min = 5
    delay_min    = 120
    team_id      = data.mongodbatlas_teams.main.team_id
  }

  metric_threshold_config {
    metric_name = "SERVERLESS_TOTAL_READ_UNITS"
    operator    = "GREATER_THAN"
    threshold   = 1
    units       = "MILLION_RPU"
    mode        = "AVERAGE"
  }
}

Steps to Reproduce

  1. terraform init
  2. terraform apply

Expected Behavior

Resource should be created

Actual Behavior

Error: expected metric_threshold_config.0.units to be one of [RAW BITS BYTES KILOBITS KILOBYTES MEGABITS MEGABYTES GIGABITS GIGABYTES TERABYTES PETABYTES MILLISECONDS SECONDS MINUTES HOURS DAYS], got MILLION_RPU
@martinstibbe
Copy link
Contributor

@tcarrondo Current API Docs and codebase reflect this list as supported values Atlas portal does show this setting as an available value will verify with engineering in case we are missing other available values

  • threshold - Threshold value outside of which an alert will be triggered.
  • units - The units for the threshold value. Depends on the type of metric.
    Accepted values are:
    - RAW
    - BITS
    - BYTES
    - KILOBITS
    - KILOBYTES
    - MEGABITS
    - MEGABYTES
    - GIGABITS
    - GIGABYTES
    - TERABYTES
    - PETABYTES
    - MILLISECONDS
    - SECONDS
    - MINUTES
    - HOURS
    - DAYS

@martinstibbe
Copy link
Contributor

Internal Engineering tracking ticket INTMDB-406

@akierstein-insider
Copy link

+1

@martinstibbe martinstibbe added the not_stale Not stale issue or PR label Oct 26, 2022
@Zuhairahmed
Copy link
Collaborator

@tcarrondo @akierstein-insider we have just released v1.5.0, can you let us know if this resolves issue?

@Zuhairahmed Zuhairahmed removed the not_stale Not stale issue or PR label Nov 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants