Skip to content

Commit a960dcd

Browse files
v1.80.0
1 parent 1818ae7 commit a960dcd

10 files changed

+570
-2
lines changed

docs/data-sources/dql.md

Lines changed: 26 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ description: |-
77

88
# dynatrace_dql (Data Source)
99

10+
The `dynatrace_dql` data source requires authentication via OAuth Client (`DT_CLIENT` and `DT_CLIENT_SECRET`).
11+
It depends on the query you want to execute what permissions are required in details. For more information look into [https://docs.dynatrace.com/docs/discover-dynatrace/platform/grail/data-model/assign-permissions-in-grail#grail-permissions-table](Permissions in Grail — Dynatrace Docs).
12+
1013
The only required attribute is the `query` attribute - holding the DQL query.
1114
You may or may not utilize the additional attributes in order to narrow down the results. But most of that can also get achieved with in the DQL query itself.
1215

@@ -53,4 +56,26 @@ EOT
5356
}
5457
```
5558

56-
{{ .SchemaMarkdown | trimspace }}
59+
<!-- schema generated by tfplugindocs -->
60+
## Schema
61+
62+
### Required
63+
64+
- `query` (String) example: fetch events | filter event.type == "davis" AND davis.status != "CLOSED" | fields timestamp, davis.title, davis.underMaintenance, davis.status | sort timestamp | limit 10
65+
66+
### Optional
67+
68+
- `default_sampling_ratio` (Number) In case not specified in the DQL string, the sampling ratio defined here is applied. Note that this is only applicable to log queries
69+
- `default_scan_limit_gbytes` (Number) Limit in gigabytes for the amount data that will be scanned during read
70+
- `default_timeframe_end` (String) The query timeframe 'end' timestamp in ISO-8601 or RFC3339 format. If the timeframe 'start' parameter is missing, the whole timeframe is ignored. Note that if a timeframe is specified within the query string (query) then it has precedence over this query request parameter
71+
- `default_timeframe_start` (String) The query timeframe 'start' timestamp in ISO-8601 or RFC3339 format. If the timeframe 'end' parameter is missing, the whole timeframe is ignored. Note that if a timeframe is specified within the query string (query) then it has precedence over this query request parameter
72+
- `fetch_timeout_seconds` (Number) The query will stop reading data after reaching the fetch-timeout. The query execution will continue, providing a partial result based on the read data
73+
- `locale` (String) The query locale. If none specified, then a language/country neutral locale is chosen. The input values take the ISO-639 Language code with an optional ISO-3166 country code appended to it with an underscore. For instance, both values are valid 'en' or 'en_US'
74+
- `max_result_bytes` (Number) The maximum number of result bytes that this query will return
75+
- `max_result_records` (Number) The maximum number of result records that this query will return
76+
- `timezone` (String) The query timezone. If none is specified, UTC is used as fallback. The list of valid input values matches that of the IANA Time Zone Database (TZDB). It accepts values in their canonical names like 'Europe/Paris', the abbreviated version like CET or the UTC offset format like '+01:00'
77+
78+
### Read-Only
79+
80+
- `id` (String) The ID of this resource.
81+
- `records` (String)

docs/resources/builtin_process_monitoring.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,31 +55,40 @@ resource "dynatrace_builtin_process_monitoring" "#name#" {
5555
- `exe_adapter` (Boolean) Rule id: 7 - Do monitor processes if EXE name equals 'adapter'
5656
- `exe_agentlistener` (Boolean) Rule id: 63 - Do not monitor processes if EXE name contains 'Agent.Listener'
5757
- `exe_agentworker` (Boolean) Rule id: 61 - Do not monitor processes if EXE name contains 'Agent.Worker'
58+
- `exe_ansible` (Boolean) Rule id: 79 - Do not monitor processes if EXE name equals 'ansible'
5859
- `exe_auctioneer` (Boolean) Rule id: 8 - Do monitor processes if EXE name equals 'auctioneer'
5960
- `exe_auditbeat` (Boolean) Rule id: 52 - Do not monitor processes if EXE name equals 'auditbeat'
61+
- `exe_aws` (Boolean) Rule id: 81 - Do not monitor processes if EXE name equals 'aws'
62+
- `exe_az` (Boolean) Rule id: 82 - Do not monitor processes if EXE name equals 'az'
6063
- `exe_bbs` (Boolean) Rule id: 9 - Do monitor processes if EXE name equals 'bbs'
6164
- `exe_caddy` (Boolean) Rule id: 5 - Do monitor processes if EXE name equals 'caddy'
6265
- `exe_caliconode` (Boolean) Rule id: 58 - Do not monitor processes if EXE name equals 'calico-node'
6366
- `exe_casclient` (Boolean) Rule id: 59 - Do not monitor processes if EXE name equals 'casclient.exe'
6467
- `exe_ccuploader` (Boolean) Rule id: 10 - Do monitor processes if EXE name equals 'cc-uploader'
68+
- `exe_conda` (Boolean) Rule id: 78 - Do not monitor processes if EXE name equals 'conda'
6569
- `exe_doppler` (Boolean) Rule id: 11 - Do monitor processes if EXE name equals 'doppler'
6670
- `exe_filebeat` (Boolean) Rule id: 49 - Do not monitor processes if EXE name equals 'filebeat'
6771
- `exe_flexnetjobexecutorservice` (Boolean) Rule id: 65 - Do not monitor processes if EXE name equals 'FlexNetJobExecutorService'
6872
- `exe_flexnetmaintenanceremotingservice` (Boolean) Rule id: 66 - Do not monitor processes if EXE name equals 'FlexNetMaintenanceRemotingService'
6973
- `exe_functionbeat` (Boolean) Rule id: 54 - Do not monitor processes if EXE name equals 'functionbeat'
74+
- `exe_gcloud` (Boolean) Rule id: 83 - Do not monitor processes if EXE name equals 'gcloud'
7075
- `exe_gorouter` (Boolean) Rule id: 12 - Do monitor processes if EXE name equals 'gorouter'
7176
- `exe_grootfs` (Boolean) Rule id: 55 - Do not monitor processes if EXE name equals 'grootfs'
77+
- `exe_hatch` (Boolean) Rule id: 74 - Do not monitor processes if EXE name equals 'hatch'
7278
- `exe_heartbeat` (Boolean) Rule id: 53 - Do not monitor processes if EXE name equals 'heartbeat'
7379
- `exe_influxd` (Boolean) Rule id: 6 - Do monitor processes if EXE name equals 'influxd'
80+
- `exe_jupyter` (Boolean) Rule id: 77 - Do not monitor processes if EXE name equals 'jupyter'
7481
- `exe_locket` (Boolean) Rule id: 13 - Do monitor processes if EXE name equals 'locket'
7582
- `exe_metricbeat` (Boolean) Rule id: 50 - Do not monitor processes if EXE name equals 'metricbeat'
7683
- `exe_metron` (Boolean) Rule id: 14 - Do monitor processes if EXE name equals 'metron'
7784
- `exe_mqsi` (Boolean) Rule id: 48 - Do not monitor processes if EXE name begins with 'mqsi'
7885
- `exe_oc` (Boolean) Rule id: 44 - Do not monitor processes if EXE name equals 'oc'
7986
- `exe_openhandlecollector` (Boolean) Rule id: 71 - Do not monitor processes if EXE name equals 'openhandlecollector.exe'
87+
- `exe_openstack` (Boolean) Rule id: 80 - Do not monitor processes if EXE name equals 'openstack'
8088
- `exe_optcnibinhostlocal` (Boolean) Rule id: 46 - Do not monitor processes if EXE path equals '/opt/cni/bin/host-local'
8189
- `exe_packetbeat` (Boolean) Rule id: 51 - Do not monitor processes if EXE name equals 'packetbeat'
8290
- `exe_phpcgi` (Boolean) Rule id: 2 - Do not monitor processes if EXE name equals 'php-cgi'
91+
- `exe_pip` (Boolean) Rule id: 73 - Do not monitor processes if EXE name equals 'pip'
8392
- `exe_rep` (Boolean) Rule id: 16 - Do monitor processes if EXE name equals 'rep'
8493
- `exe_routeemitter` (Boolean) Rule id: 17 - Do monitor processes if EXE name equals 'route-emitter'
8594
- `exe_routeregistrar` (Boolean) Rule id: 18 - Do monitor processes if EXE name equals 'route-registrar'
@@ -95,7 +104,9 @@ resource "dynatrace_builtin_process_monitoring" "#name#" {
95104
- `exe_uipath` (Boolean) Rule id: 70 - Do not monitor processes if EXE name contains 'UiPath'
96105
- `exe_userbinpiper` (Boolean) Rule id: 67 - Do not monitor processes if EXE path equals '/usr/bin/piper'
97106
- `exe_w3wp` (Boolean) Rule id: 4 - Do monitor processes if EXE name equals 'w3wp.exe'
107+
- `exe_wheel` (Boolean) Rule id: 75 - Do not monitor processes if EXE name equals 'wheel'
98108
- `exe_yq` (Boolean) Rule id: 72 - Do not monitor processes if EXE name equals 'yq'
109+
- `exe_yum` (Boolean) Rule id: 76 - Do not monitor processes if EXE name equals 'yum'
99110
- `go_static` (Boolean) Rule id: 47 - Do not monitor processes if Go Binary Linkage equals 'static'
100111
- `host_group_id` (String) The scope of this settings. If the settings should cover the whole environment, just don't specify any scope.
101112
- `jar_dtibmmqconnector` (Boolean) Rule id: 60 - Do not monitor processes if JAR file name equals 'dynatrace_ibm_mq_connector.jar'
Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
---
2+
layout: ""
3+
page_title: Resource - terraform-provider-dynatrace"
4+
subcategory: "Service Detection"
5+
description: |-
6+
The resource `dynatrace_service_detection_rules` covers configuration for service detection rules
7+
---
8+
9+
# dynatrace_service_detection_rules (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+
- Services - https://docs.dynatrace.com/docs/observe/applications-and-microservices/services
16+
17+
- Settings API - https://www.dynatrace.com/support/help/dynatrace-api/environment-api/settings (schemaId: `builtin:service-detection-rules`)
18+
19+
## Resource Example Usage
20+
21+
```terraform
22+
resource "dynatrace_service_detection_rules" "#name#" {
23+
enabled = false
24+
scope = "environment"
25+
rule {
26+
description = "Example description"
27+
additional_required_attributes = [ "attribute-1", "attribute-2" ]
28+
condition = "matchesValue(k8s.cluster.name,\"terraform\")"
29+
rule_name = "#name#"
30+
service_name_template = "{k8s.workload.name}"
31+
}
32+
}
33+
```
34+
35+
<!-- schema generated by tfplugindocs -->
36+
## Schema
37+
38+
### Required
39+
40+
- `enabled` (Boolean) This setting is enabled (`true`) or disabled (`false`)
41+
- `rule` (Block List, Min: 1, Max: 1) Rule (see [below for nested schema](#nestedblock--rule))
42+
43+
### Optional
44+
45+
- `insert_after` (String) Because this resource allows for ordering you may specify the ID of the resource instance that comes before this instance regarding order. If not specified when creating the setting will be added to the end of the list. If not specified during update the order will remain untouched
46+
- `scope` (String) The scope of this setting (CLOUD_APPLICATION_NAMESPACE, KUBERNETES_CLUSTER, HOST_GROUP). Omit this property if you want to cover the whole environment.
47+
48+
### Read-Only
49+
50+
- `id` (String) The ID of this resource.
51+
52+
<a id="nestedblock--rule"></a>
53+
### Nested Schema for `rule`
54+
55+
Required:
56+
57+
- `rule_name` (String) Rule name
58+
- `service_name_template` (String) Specify resource attribute placeholders in curly braces, e.g. {service.name} or {k8s.workload.name}.. All attributes used in the placeholder are required for the rule to apply. If any of them is missing, the rule will not be applied and ruleset evaluation continues.
59+
60+
All resolved attribute values contribute to the final service ID.
61+
62+
Optional:
63+
64+
- `additional_required_attributes` (Set of String) Define resource attributes that should not be part of the name but are required to detect the service, e.g. service.namespace or k8s.workload.kind.. Attributes specified here are required to apply the rule. If any of them is missing, the rule will not be applied and ruleset evaluation continues.
65+
66+
All attribute values contribute to the final service ID.
67+
- `condition` (String) Limits the scope of the service detection rule using [DQL matcher](https://dt-url.net/l603wby) conditions on resource attributes.. A rule is applied only if the condition matches, otherwise the ruleset evaluation continues.
68+
69+
If empty, the condition will always match.
70+
- `description` (String) no documentation available
Lines changed: 88 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,88 @@
1+
---
2+
layout: ""
3+
page_title: Resource - terraform-provider-dynatrace"
4+
subcategory: "Service Detection"
5+
description: |-
6+
The resource `dynatrace_service_splitting` covers configuration for service splitting
7+
---
8+
9+
# dynatrace_service_splitting (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+
- Services - https://docs.dynatrace.com/docs/observe/applications-and-microservices/services
16+
17+
- Settings API - https://www.dynatrace.com/support/help/dynatrace-api/environment-api/settings (schemaId: `builtin:service-splitting-rules`)
18+
19+
## Resource Example Usage
20+
21+
```terraform
22+
resource "dynatrace_service_splitting" "#name#" {
23+
enabled = false
24+
scope = "environment"
25+
rule {
26+
description = "Example description"
27+
condition = "matchesValue(k8s.cluster.name, \"terraform\")"
28+
rule_name = "#name#"
29+
service_splitting_attributes {
30+
service_splitting_attribute {
31+
key = "Attribute-1"
32+
}
33+
service_splitting_attribute {
34+
key = "Attribute-2"
35+
}
36+
service_splitting_attribute {
37+
key = "Attribute-3"
38+
}
39+
}
40+
}
41+
}
42+
```
43+
44+
<!-- schema generated by tfplugindocs -->
45+
## Schema
46+
47+
### Required
48+
49+
- `enabled` (Boolean) This setting is enabled (`true`) or disabled (`false`)
50+
- `rule` (Block List, Min: 1, Max: 1) Rule (see [below for nested schema](#nestedblock--rule))
51+
52+
### Optional
53+
54+
- `insert_after` (String) Because this resource allows for ordering you may specify the ID of the resource instance that comes before this instance regarding order. If not specified when creating the setting will be added to the end of the list. If not specified during update the order will remain untouched
55+
- `scope` (String) The scope of this setting (CLOUD_APPLICATION_NAMESPACE, KUBERNETES_CLUSTER, HOST_GROUP). Omit this property if you want to cover the whole environment.
56+
57+
### Read-Only
58+
59+
- `id` (String) The ID of this resource.
60+
61+
<a id="nestedblock--rule"></a>
62+
### Nested Schema for `rule`
63+
64+
Required:
65+
66+
- `rule_name` (String) Rule name
67+
68+
Optional:
69+
70+
- `condition` (String) Limits the scope of the service splitting rule using [DQL matcher](https://dt-url.net/l603wby) conditions on resource attributes.. A rule is applied only if the condition matches, otherwise the ruleset evaluation continues.
71+
72+
If empty, the condition will always match.
73+
- `description` (String) no documentation available
74+
- `service_splitting_attributes` (Block List, Max: 1) Define the entire set of resource attributes that should split your services in the matching scope.. Each attribute that exists will contribute to the final service ID. (see [below for nested schema](#nestedblock--rule--service_splitting_attributes))
75+
76+
<a id="nestedblock--rule--service_splitting_attributes"></a>
77+
### Nested Schema for `rule.service_splitting_attributes`
78+
79+
Required:
80+
81+
- `service_splitting_attribute` (Block Set, Min: 1) (see [below for nested schema](#nestedblock--rule--service_splitting_attributes--service_splitting_attribute))
82+
83+
<a id="nestedblock--rule--service_splitting_attributes--service_splitting_attribute"></a>
84+
### Nested Schema for `rule.service_splitting_attributes.service_splitting_attribute`
85+
86+
Required:
87+
88+
- `key` (String) Attribute key

docs/resources/site_reliability_guardian.md

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,7 @@ Optional:
100100
- `display_unit` (Block List, Max: 1) Display Unit (see [below for nested schema](#nestedblock--objectives--objective--display_unit))
101101
- `dql_query` (String) DQL query
102102
- `reference_slo` (String) Please enter the metric key of your desired SLO. SLO metric keys have to start with 'func:slo.'
103+
- `segments` (Block List, Max: 1) no documentation available (see [below for nested schema](#nestedblock--objectives--objective--segments))
103104
- `target` (Number) no documentation available
104105
- `warning` (Number) no documentation available
105106

@@ -113,6 +114,46 @@ Required:
113114
- `display` (String) display as unit
114115

115116

117+
<a id="nestedblock--objectives--objective--segments"></a>
118+
### Nested Schema for `objectives.objective.segments`
119+
120+
Required:
121+
122+
- `segment` (Block List, Min: 1) (see [below for nested schema](#nestedblock--objectives--objective--segments--segment))
123+
124+
<a id="nestedblock--objectives--objective--segments--segment"></a>
125+
### Nested Schema for `objectives.objective.segments.segment`
126+
127+
Required:
128+
129+
- `id` (String) Segment ID
130+
131+
Optional:
132+
133+
- `variables` (Block List, Max: 1) Segment Variables (see [below for nested schema](#nestedblock--objectives--objective--segments--segment--variables))
134+
135+
<a id="nestedblock--objectives--objective--segments--segment--variables"></a>
136+
### Nested Schema for `objectives.objective.segments.segment.variables`
137+
138+
Required:
139+
140+
- `variable` (Block List, Min: 1) (see [below for nested schema](#nestedblock--objectives--objective--segments--segment--variables--variable))
141+
142+
<a id="nestedblock--objectives--objective--segments--segment--variables--variable"></a>
143+
### Nested Schema for `objectives.objective.segments.segment.variables.variable`
144+
145+
Required:
146+
147+
- `name` (String) Variable Name
148+
149+
Optional:
150+
151+
- `values` (List of String) Variable Values
152+
153+
154+
155+
156+
116157

117158

118159
<a id="nestedblock--variables"></a>

0 commit comments

Comments
 (0)