Skip to content

Commit d0d9c19

Browse files
committed
test: add unique identifier for dynatrace_log_metrics metric key
The metric key for `dynatrace_log_metrics` has to be unique. When running tests in parallel or encountering an error during destroy/cleanup, the metric key may already exist. So, adding `#name#` to the key makes it unique.
1 parent 8c35b33 commit d0d9c19

File tree

1 file changed

+2
-2
lines changed
  • dynatrace/api/builtin/logmonitoring/schemalesslogmetric/testdata/terraform

1 file changed

+2
-2
lines changed
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
resource "dynatrace_log_metrics" "#name#" {
22
enabled = true
33
dimensions = ["dt.os.type", "dt.entity.process_group"]
4-
key = "log.terraformexample3"
4+
key = "log.#name#"
55
measure = "ATTRIBUTE"
66
measure_attribute = "dt.entity.host"
77
query = "matchesPhrase(content, \"terratest\")"
8-
}
8+
}

0 commit comments

Comments
 (0)