Open
Description
Hello !
I'm using this provider to handle my Instana configuration, and I found that the instana_application_alert_config
does not behave as expected :
- It took 20+ minutes to create 6 alerts according to Terraform; I could see the alerts in Instana from the minute 5.
- Once the alerts are created, Terraform can no longer run plans; The plan is waiting for the
instana_application_alert_config
indefinitly, until it reaches its timeout.
I am using the v3.3.0 version of the provider.
The resource I am creating is this one :
resource "instana_application_alert_config" "production_errors" {
for_each = { for app, details in instana_application_config.applications : app => details if strcontains(app, "production") }
name = "${each.key} - Erroneous call rate is higher than normal"
description = "The erroneous call rate for the specified application is higher or equal than expected. This may mean that users are encountering issues using the application."
boundary_scope = "ALL"
severity = "warning"
include_internal = false
include_synthetic = false
alert_channel_ids = [
instana_alerting_config.infrastructure.id
]
granularity = 600000
evaluation_type = "PER_AP"
application {
application_id = each.value.id
inclusive = true
}
rule {
errors {
aggregation = "MEAN"
metric_name = "errors"
}
}
threshold {
historic_baseline {
operator = ">="
# baseline
deviation_factor = 3
seasonality = "WEEKLY"
}
}
time_threshold {
violations_in_sequence {
time_window = 600000
}
}
lifecycle {
ignore_changes = [
# the baseline is dynamic and will change over time, so we need to ignore it.
threshold[0].historic_baseline[0].baseline,
threshold[0].historic_baseline[0].last_updated,
]
}
}
The logs I can extract from these run only show that the plan is starting on this component, no updates after this.
�Terraform v1.7.5
on linux_amd64
Initializing plugins and modules...
{"@level":"info","@message":"Terraform 1.7.5","@module":"terraform.ui","@timestamp":"2025-04-09T11:21:00.644946Z","terraform":"1.7.5","type":"version","ui":"1.2"}
[....]
{"@level":"info","@message":"module.instana.instana_application_alert_config.production_errors[\"app-1\"]: Refreshing state... [id=REDACTED]","@module":"terraform.ui","@timestamp":"2025-04-09T11:32:08.023622Z","hook":{"resource":{"addr":"module.instana.instana_application_alert_config.production_errors[\"app-1\"]","module":"module.instana","resource":"instana_application_alert_config.production_errors[\"app-1\"]","implied_provider":"instana","resource_type":"instana_application_alert_config","resource_name":"production_errors","resource_key":"app-1"},"id_key":"id","id_value":"REDACTED"},"type":"refresh_start"}
{"@level":"info","@message":"module.instana.instana_application_alert_config.production_errors[\"app-2\"]: Refreshing state... [id=REDACTED]","@module":"terraform.ui","@timestamp":"2025-04-09T11:32:38.929062Z","hook":{"resource":{"addr":"module.instana.instana_application_alert_config.production_errors[\"app-2\"]","module":"module.instana","resource":"instana_application_alert_config.production_errors[\"app-2\"]","implied_provider":"instana","resource_type":"instana_application_alert_config","resource_name":"production_errors","resource_key":"app-2"},"id_key":"id","id_value":"REDACTED"},"type":"refresh_start"}
{"@level":"info","@message":"module.instana.instana_application_alert_config.production_errors[\"app-3\"]: Refreshing state... [id=REDACTED]","@module":"terraform.ui","@timestamp":"2025-04-09T11:32:46.727016Z","hook":{"resource":{"addr":"module.instana.instana_application_alert_config.production_errors[\"app-3\"]","module":"module.instana","resource":"instana_application_alert_config.production_errors[\"app-3\"]","implied_provider":"instana","resource_type":"instana_application_alert_config","resource_name":"production_errors","resource_key":"app-3"},"id_key":"id","id_value":"REDACTED"},"type":"refresh_start"}
{"@level":"info","@message":"module.instana.instana_application_alert_config.production_errors[\"app-4\"]: Refreshing state... [id=REDACTED]","@module":"terraform.ui","@timestamp":"2025-04-09T11:35:35.216591Z","hook":{"resource":{"addr":"module.instana.instana_application_alert_config.production_errors[\"app-4\"]","module":"module.instana","resource":"instana_application_alert_config.production_errors[\"app-4\"]","implied_provider":"instana","resource_type":"instana_application_alert_config","resource_name":"production_errors","resource_key":"app-4"},"id_key":"id","id_value":"REDACTED"},"type":"refresh_start"}
{"@level":"info","@message":"module.instana.instana_application_alert_config.production_errors[\"app-5\"]: Refreshing state... [id=REDACTED]","@module":"terraform.ui","@timestamp":"2025-04-09T11:36:39.720455Z","hook":{"resource":{"addr":"module.instana.instana_application_alert_config.production_errors[\"app-5\"]","module":"module.instana","resource":"instana_application_alert_config.production_errors[\"app-5\"]","implied_provider":"instana","resource_type":"instana_application_alert_config","resource_name":"production_errors","resource_key":"app-5"},"id_key":"id","id_value":"REDACTED"},"type":"refresh_start"}
{"@level":"info","@message":"module.instana.instana_application_alert_config.production_errors[\"app-6\"]: Refreshing state... [id=REDACTED]","@module":"terraform.ui","@timestamp":"2025-04-09T11:37:03.034956Z","hook":{"resource":{"addr":"module.instana.instana_application_alert_config.production_errors[\"app-6\"]","module":"module.instana","resource":"instana_application_alert_config.production_errors[\"app-6\"]","implied_provider":"instana","resource_type":"instana_application_alert_config","resource_name":"production_errors","resource_key":"app-6"},"id_key":"id","id_value":"REDACTED"},"type":"refresh_start"}
�[95m------------ System Message ------------
�[97m
ERROR: This plan has timed out and will now terminate!
A 1h30m0s maximum run time for this operation is enforced. Please review the
logs above to determine why the plan has exceeded its timeout. You can re-run
this operation by queueing a new plan.
�[95m----------------------------------------
�[0mOperation failed: failed running terraform plan (exit -1)�
Metadata
Metadata
Assignees
Labels
No labels