Skip to content

Commit abaa632

Browse files
v1.42.0
1 parent 3d7f500 commit abaa632

File tree

9 files changed

+103
-5
lines changed

9 files changed

+103
-5
lines changed

docs/guides/environment-migration.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,12 @@ Most resources do not allow configuration with the same name, but there is a sma
5555
* `DYNATRACE_DUPLICATE_REJECT=ALL` - Duplicates will not overwrite existing configuration
5656
* `DYNATRACE_DUPLICATE_HIJACK=ALL` - Duplicates will overwrite existing configuration
5757

58+
A common approach with the configuration migration is to do an apply prior to the OneAgent migration and then a reapply after to deploy any configuration that depend on entities existing. An underlying dependency which has entity verification could have cascading effects where a data source could be driven to `null` and the plan/apply prevents execution.
59+
60+
Example: You may have a request attribute which has an entity filter, a calculated service metric that depends on this request attribute, and a dashboard that is using the calculated service metric.
61+
62+
In order to have a successful execution, the environment variable `MIGRATION=true` can be set which will replace `null` data source references with a name prefixed with `TFMIGRATIONID-`. This feature is currently available for calculated service metric and SLO data sources. When enabling this feature, a log file will be produced which will contain all resources that are incomplete due to missing underlying dependencies. Reapplying the configuration once the underlying resource dependency exists will automatically repair any resources.
63+
5864
For an iterative migration, utilize the `-migrate -datasources` flags. This will create all of the necessary files with dependencies via data sources and hardcoded entity IDs.
5965

6066
Windows: `terraform-provider-dynatrace.exe -export -migrate -datasources <resourcename>`

docs/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ Use the links to the left to learn about the available resources, data sources,
1818
terraform {
1919
required_providers {
2020
dynatrace = {
21-
version = "1.41.0"
21+
version = "1.42.0"
2222
source = "dynatrace-oss/dynatrace"
2323
}
2424
}

docs/resources/calculated_synthetic_metric.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ resource "dynatrace_calculated_synthetic_metric" "#name#" {
3030
enabled = true
3131
metric = "ResourceCount"
3232
metric_key = "calc:synthetic.browser.#name#"
33-
monitor_identifier = "SYNTHETIC_TEST-74EEC98A3855C3DD"
33+
monitor_identifier = "SYNTHETIC_TEST-147CFF44DDB25C05"
3434
}
3535
```
3636

docs/resources/log_timestamp.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ resource "dynatrace_log_timestamp" "#name#" {
5353

5454
### Optional
5555

56+
- `date_search_limit` (Number) (v1.275) Defines the number of characters in every log line (starting from the first character in the line) where the timestamp is searched.
5657
- `matchers` (Block List, Max: 1) no documentation available (see [below for nested schema](#nestedblock--matchers))
5758
- `scope` (String) The scope of this setting (HOST, HOST_GROUP). Omit this property if you want to cover the whole environment.
5859

docs/resources/slo_v2.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,6 @@ resource "dynatrace_slo_v2" "#name#" {
5353
- `evaluation_window` (String) Define the timeframe during which the SLO is to be evaluated. For the timeframe you can enter expressions like -1h (last hour), -1w (last week) or complex expressions like -2d to now (last two days), -1d/d to now/d (beginning of yesterday to beginning of today).
5454
- `filter` (String) Set a filter parameter (entitySelector) on any GET call to evaluate this SLO against specific services only (for example, type("SERVICE")). For details, see the [Entity Selector documentation](https://dt-url.net/entityselector).
5555
- `metric_expression` (String) For details, see the [Metrics page](/ui/metrics "Metrics page").
56-
- `metric_name` (String) Metric name
5756
- `name` (String) SLO name
5857
- `target_success` (Number) Set the target value of the SLO. A percentage below this value indicates a failure.
5958
- `target_warning` (Number) Set the warning value of the SLO. At the warning state the SLO is fulfilled. However, it is getting close to a failure.
@@ -62,6 +61,7 @@ resource "dynatrace_slo_v2" "#name#" {
6261

6362
- `custom_description` (String) The description of the SLO
6463
- `legacy_id` (String) The ID of this setting when referred to by the Config REST API V1
64+
- `metric_name` (String) Metric name
6565

6666
### Read-Only
6767

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
---
2+
layout: ""
3+
page_title: dynatrace_unified_services_metrics Resource - terraform-provider-dynatrace"
4+
subcategory: "Service Detection"
5+
description: |-
6+
The resource `dynatrace_unified_services_metrics` allows to enable/disable endpoint metrics for Unified services
7+
---
8+
9+
# dynatrace_unified_services_metrics (Resource)
10+
11+
-> This resource requires the API token scopes **Read settings** (`settings.read`) and **Write settings** (`settings.write`)
12+
13+
## Dynatrace Documentation
14+
15+
- Unified service - https://www.dynatrace.com/support/help/platform-modules/applications-and-microservices/services/service-detection-and-naming/service-types/unified-service
16+
17+
- Settings API - https://www.dynatrace.com/support/help/dynatrace-api/environment-api/settings (schemaId: `builtin:unified-services-endpoint-metrics`)
18+
19+
## Export Example Usage
20+
21+
- `terraform-provider-dynatrace -export dynatrace_unified_services_metrics` downloads existing unified services endpoint metrics configuration
22+
23+
The full documentation of the export feature is available [here](https://registry.terraform.io/providers/dynatrace-oss/dynatrace/latest/docs/guides/export-v2).
24+
25+
## Resource Example Usage
26+
27+
```terraform
28+
resource "dynatrace_unified_services_metrics" "#name#" {
29+
enable_endpoint_metrics = true
30+
service_id = "environment"
31+
}
32+
```
33+
34+
<!-- schema generated by tfplugindocs -->
35+
## Schema
36+
37+
### Required
38+
39+
- `enable_endpoint_metrics` (Boolean) Should metrics be written for endpoints? Please be aware that this setting has billing implications. Check out this [documentation](https://dt-url.net/td23cgh) for further details.
40+
41+
### Optional
42+
43+
- `service_id` (String) The scope of this settings. If the settings should cover the whole environment, just don't specify any scope.
44+
45+
### Read-Only
46+
47+
- `id` (String) The ID of this resource.
48+
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
---
2+
layout: ""
3+
page_title: dynatrace_unified_services_opentel Resource - terraform-provider-dynatrace"
4+
subcategory: "Service Detection"
5+
description: |-
6+
The resource `dynatrace_unified_services_opentel` allows to enable/disable unified services for OpenTelemetry
7+
---
8+
9+
# dynatrace_unified_services_opentel (Resource)
10+
11+
-> This resource requires the API token scopes **Read settings** (`settings.read`) and **Write settings** (`settings.write`)
12+
13+
## Dynatrace Documentation
14+
15+
- Unified service - https://www.dynatrace.com/support/help/platform-modules/applications-and-microservices/services/service-detection-and-naming/service-types/unified-service
16+
17+
- Settings API - https://www.dynatrace.com/support/help/dynatrace-api/environment-api/settings (schemaId: `builtin:unified-services-enablement`)
18+
19+
## Export Example Usage
20+
21+
- `terraform-provider-dynatrace -export dynatrace_unified_services_opentel` downloads existing unified services OpenTelemetry configuration
22+
23+
The full documentation of the export feature is available [here](https://registry.terraform.io/providers/dynatrace-oss/dynatrace/latest/docs/guides/export-v2).
24+
25+
## Resource Example Usage
26+
27+
```terraform
28+
resource "dynatrace_unified_services_opentel" "#name#" {
29+
enabled = true
30+
}
31+
```
32+
33+
<!-- schema generated by tfplugindocs -->
34+
## Schema
35+
36+
### Required
37+
38+
- `enabled` (Boolean) This setting is enabled (`true`) or disabled (`false`)
39+
40+
### Read-Only
41+
42+
- `id` (String) The ID of this resource.
43+

provider/version/version.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,4 @@
1717

1818
package version
1919

20-
const Current = "1.41.0"
20+
const Current = "1.42.0"

templates/index.md.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ Use the links to the left to learn about the available resources, data sources,
1818
terraform {
1919
required_providers {
2020
dynatrace = {
21-
version = "1.41.0"
21+
version = "1.42.0"
2222
source = "dynatrace-oss/dynatrace"
2323
}
2424
}

0 commit comments

Comments
 (0)