Skip to content

Commit 39998b0

Browse files
committed
docs
1 parent 1cf7a62 commit 39998b0

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

docs/resources/fleet_agent_policy.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,15 @@ resource "elasticstack_fleet_agent_policy" "test_policy" {
2424
sys_monitoring = true
2525
monitor_logs = true
2626
monitor_metrics = true
27+
28+
global_data_tags = {
29+
first_tag = {
30+
string_value = "tag_value"
31+
},
32+
second_tag = {
33+
number_value = 1.2
34+
}
35+
}
2736
}
2837
```
2938

@@ -41,7 +50,7 @@ resource "elasticstack_fleet_agent_policy" "test_policy" {
4150
- `description` (String) The description of the agent policy.
4251
- `download_source_id` (String) The identifier for the Elastic Agent binary download server.
4352
- `fleet_server_host_id` (String) The identifier for the Fleet server host.
44-
- `global_data_tags` (Attributes Map) User-defined data tags to apply to all inputs. Values can be strings (string_value) or numbers (number_value) but not both. (see [below for nested schema](#nestedatt--global_data_tags))
53+
- `global_data_tags` (Attributes Map) User-defined data tags to apply to all inputs. Values can be strings (string_value) or numbers (number_value) but not both. Example -- key1 = {string_value = value1}, key2 = {number_value = 42} (see [below for nested schema](#nestedatt--global_data_tags))
4554
- `monitor_logs` (Boolean) Enable collection of agent logs.
4655
- `monitor_metrics` (Boolean) Enable collection of agent metrics.
4756
- `monitoring_output_id` (String) The identifier for monitoring output.

0 commit comments

Comments
 (0)