|
| 1 | +--- |
| 2 | +layout: "" |
| 3 | +page_title: "dynatrace_cloudapp_workloaddetection Resource - terraform-provider-dynatrace" |
| 4 | +description: |- |
| 5 | + The resource `dynatrace_cloudapp_workloaddetection` merges processes of similar workloads into process groups, and consequently, services. Please note that fine-grained process detection rules will still be applied, while ignoring container or platform specific properties. |
| 6 | +--- |
| 7 | + |
| 8 | +# dynatrace_cloudapp_workloaddetection (Resource) |
| 9 | + |
| 10 | + |
| 11 | +## Dynatrace Documentation |
| 12 | + |
| 13 | +- Cloud application and workload detection - https://www.dynatrace.com/support/help/platform-modules/infrastructure-monitoring/process-groups/configuration/cloud-app-and-workload-detection |
| 14 | + |
| 15 | +- Settings API - https://www.dynatrace.com/support/help/dynatrace-api/environment-api/settings (schemaId: `builtin:process-group.cloud-application-workload-detection`) |
| 16 | + |
| 17 | +## Export Example Usage |
| 18 | + |
| 19 | +- `terraform-provider-dynatrace -export dynatrace_cloudapp_workloaddetection` downloads all existing muted requests configuration |
| 20 | + |
| 21 | +The full documentation of the export feature is available [here](https://registry.terraform.io/providers/dynatrace-oss/dynatrace/latest/docs/guides/export-v2). |
| 22 | + |
| 23 | +## Resource Example Usage |
| 24 | + |
| 25 | +```terraform |
| 26 | +# ID vu9U3hXa3q0AAAABADpidWlsdGluOnByb2Nlc3MtZ3JvdXAuY2xvdWQtYXBwbGljYXRpb24td29ya2xvYWQtZGV0ZWN0aW9uAAZ0ZW5hbnQABnRlbmFudAAkYjcwNmY4NWYtNWFkNC0zY2ZmLWJhYzMtZDg4YzFmNTkzMjgwvu9U3hXa3q0 |
| 27 | +resource "dynatrace_cloudapp_workloaddetection" "cloud_app_workload_detection" { |
| 28 | + cloud_foundry { |
| 29 | + enabled = false |
| 30 | + } |
| 31 | + docker { |
| 32 | + enabled = true |
| 33 | + } |
| 34 | + kubernetes { |
| 35 | + enabled = true |
| 36 | + filters { |
| 37 | + filter { |
| 38 | + enabled = false |
| 39 | + inclusion_toggles { |
| 40 | + inc_basepod = false |
| 41 | + inc_container = true |
| 42 | + inc_namespace = true |
| 43 | + inc_product = true |
| 44 | + inc_stage = true |
| 45 | + } |
| 46 | + match_filter { |
| 47 | + match_operator = "EXISTS" |
| 48 | + } |
| 49 | + } |
| 50 | + } |
| 51 | + } |
| 52 | +} |
| 53 | +``` |
| 54 | + |
| 55 | +<!-- schema generated by tfplugindocs --> |
| 56 | +## Schema |
| 57 | + |
| 58 | +### Required |
| 59 | + |
| 60 | +- `cloud_foundry` (Block List, Min: 1, Max: 1) Enable this setting to get |
| 61 | + * Processes of Cloud Foundry application instances merged into process groups by Cloud Foundry application. |
| 62 | + * Container resource metrics (Container group instance entities) and [related screens](https://www.dynatrace.com/support/help/shortlink/container-groups). (see [below for nested schema](#nestedblock--cloud_foundry)) |
| 63 | +- `docker` (Block List, Min: 1, Max: 1) Enable this setting for plain Docker environments to get |
| 64 | + * Container resource metrics (Container group instance entities) and [related screens](https://www.dynatrace.com/support/help/shortlink/container-groups). (see [below for nested schema](#nestedblock--docker)) |
| 65 | +- `kubernetes` (Block List, Min: 1, Max: 1) Enable this setting to get |
| 66 | + * Insights into your Kubernetes namespaces, workloads and pods (cloud application namespace, cloud application and cloud application instance and entities). |
| 67 | + * Container resource metrics (container group instance entities) and [related screens](https://www.dynatrace.com/support/help/shortlink/container-groups). |
| 68 | + * Similar workloads merged into process groups based on defined rules (see below). |
| 69 | + * Version detection for services that run in Kubernetes workloads. (see [below for nested schema](#nestedblock--kubernetes)) |
| 70 | + |
| 71 | +### Read-Only |
| 72 | + |
| 73 | +- `id` (String) The ID of this resource. |
| 74 | + |
| 75 | +<a id="nestedblock--cloud_foundry"></a> |
| 76 | +### Nested Schema for `cloud_foundry` |
| 77 | + |
| 78 | +Required: |
| 79 | + |
| 80 | +- `enabled` (Boolean) This setting is enabled (`true`) or disabled (`false`) |
| 81 | + |
| 82 | + |
| 83 | +<a id="nestedblock--docker"></a> |
| 84 | +### Nested Schema for `docker` |
| 85 | + |
| 86 | +Required: |
| 87 | + |
| 88 | +- `enabled` (Boolean) This setting is enabled (`true`) or disabled (`false`) |
| 89 | + |
| 90 | + |
| 91 | +<a id="nestedblock--kubernetes"></a> |
| 92 | +### Nested Schema for `kubernetes` |
| 93 | + |
| 94 | +Required: |
| 95 | + |
| 96 | +- `enabled` (Boolean) This setting is enabled (`true`) or disabled (`false`) |
| 97 | +- `filters` (Block List, Min: 1, Max: 1) Define rules to merge similar Kubernetes workloads into process groups. |
| 98 | + |
| 99 | + You can use workload properties like namespace name, base pod name or container name as well as the [environment variables DT_RELEASE_STAGE and DT_RELEASE_PRODUCT](https://dt-url.net/sb02v2a) for grouping processes of similar workloads. The first applicable rule will be applied. If no rule matches, “Namespace name” + “Base pod name” + “Container name” is used as fallback. (see [below for nested schema](#nestedblock--kubernetes--filters)) |
| 100 | + |
| 101 | +<a id="nestedblock--kubernetes--filters"></a> |
| 102 | +### Nested Schema for `kubernetes.filters` |
| 103 | + |
| 104 | +Required: |
| 105 | + |
| 106 | +- `filter` (Block List, Min: 1) (see [below for nested schema](#nestedblock--kubernetes--filters--filter)) |
| 107 | + |
| 108 | +<a id="nestedblock--kubernetes--filters--filter"></a> |
| 109 | +### Nested Schema for `kubernetes.filters.filter` |
| 110 | + |
| 111 | +Required: |
| 112 | + |
| 113 | +- `enabled` (Boolean) This setting is enabled (`true`) or disabled (`false`) |
| 114 | +- `inclusion_toggles` (Block List, Min: 1, Max: 1) ID calculation based on (see [below for nested schema](#nestedblock--kubernetes--filters--filter--inclusion_toggles)) |
| 115 | +- `match_filter` (Block List, Min: 1, Max: 1) When namespace (see [below for nested schema](#nestedblock--kubernetes--filters--filter--match_filter)) |
| 116 | + |
| 117 | +<a id="nestedblock--kubernetes--filters--filter--inclusion_toggles"></a> |
| 118 | +### Nested Schema for `kubernetes.filters.filter.inclusion_toggles` |
| 119 | + |
| 120 | +Required: |
| 121 | + |
| 122 | +- `inc_basepod` (Boolean) E.g. "cloud-credential-operator-" for "cloud-credential-operator-5ff6dbff57-gszgq" |
| 123 | +- `inc_container` (Boolean) Container name |
| 124 | +- `inc_namespace` (Boolean) Namespace name |
| 125 | +- `inc_product` (Boolean) If Product is enabled and has no value, it defaults to Base pod name |
| 126 | +- `inc_stage` (Boolean) Stage |
| 127 | + |
| 128 | + |
| 129 | +<a id="nestedblock--kubernetes--filters--filter--match_filter"></a> |
| 130 | +### Nested Schema for `kubernetes.filters.filter.match_filter` |
| 131 | + |
| 132 | +Required: |
| 133 | + |
| 134 | +- `match_operator` (String) Possible Values: `CONTAINS`, `ENDS`, `EQUALS`, `EXISTS`, `NOT_CONTAINS`, `NOT_ENDS`, `NOT_EQUALS`, `NOT_STARTS`, `STARTS` |
| 135 | + |
| 136 | +Optional: |
| 137 | + |
| 138 | +- `namespace` (String) Namespace name |
| 139 | + |
0 commit comments