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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Alarm Definitions: Support to add dimensions in the terraform script for the alarm defintions #2081

Open
sindhura2509 opened this issue Apr 2, 2024 · 2 comments
Labels
awaiting-affected-resources Please Provide the affected resource name in description. ex. Affected resource - oci_core_instance bug

Comments

@sindhura2509
Copy link

sindhura2509 commented Apr 2, 2024

Community Note

  • Please vote on this issue by adding a 馃憤 reaction to the original issue to help the community and maintainers prioritize this request
  • Please do not leave "+1" or "me too" comments, they generate extra noise for issue followers and do not help prioritize the request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment

Terraform Version and Provider Version

Terraform v1.6.2
Provider Version 5.27.0

Affected Resource(s)

oci_monitoring_alarm

Terraform Configuration Files

Code snippet:
resource "oci_monitoring_alarm" "oic_bmc" {
#Required
compartment_id = var.compartment_id
destinations = [var.notification_topic_id]
display_name = var.oic_bmc_display_name
is_enabled = var.alarm_is_enabled
metric_compartment_id = var.compartment_id
namespace = var.alarm_namespace_oic
query = "BilledMessageCount[1m]{resourceDisplayName =~ ''}.sum() > 4000"
severity = var.alarm_severity_critical
resolution = var.alarm_resolution
message_format = var.alarm_message_format
depends_on = [oci_integration_integration_instance.oic_instance]
}

Debug Output

Terraform doesn't accept providing dimension details in the query while provisioning Alarm definitions.
Throws an error while providing metrics or resourceId details. Please advise.

Panic Output

NA

Expected Behavior

Terraform to support MQL for adding dimensions to the alarm definitions.

Actual Behavior

Unsupported query errors

@tf-oci-pub
Copy link
Member

Thank you for reporting the issue. We observed the affected resources are not provided in the description or it's incorrect. We request you to add it in issue description as mentioned in below format.
Example: affected_resources = oci_core_instance , oci_core_instances

If it's not related to any particular resource then mention affected resource as terraform.
Example: affected_resources = terraform

As this works through automation, request you to follow exact syntax.

@tf-oci-pub tf-oci-pub added the awaiting-affected-resources Please Provide the affected resource name in description. ex. Affected resource - oci_core_instance label Apr 3, 2024
@sindhura2509
Copy link
Author

Added the affected resources.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
awaiting-affected-resources Please Provide the affected resource name in description. ex. Affected resource - oci_core_instance bug
Projects
None yet
Development

No branches or pull requests

2 participants