Skip to content

Commit 8018668

Browse files
authored
fix: updated metrics_router_settings description to include more info on required format (#312)
1 parent be39509 commit 8018668

File tree

2 files changed

+79
-47
lines changed

2 files changed

+79
-47
lines changed

solutions/instances/DA-types.md

Lines changed: 78 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -5,23 +5,23 @@ Several optional input variables in the IBM Cloud [Observability instances deplo
55
* Cloud Logs Event Notification Instances (`cloud_logs_existing_en_instances`)
66
* Cloud Logs policies (`cloud_logs_policies`)
77
* Metrics Router Routes (`metrics_router_routes`)
8+
* Metrics Router Settings(`metrics_router_settings`)
89
* Activity Tracker Event Routing COS bucket retention policy (`at_cos_bucket_retention_policy`)
910
* Cloud Logs data bucket retention policy(`cloud_log_data_bucket_retention_policy`)
1011

11-
1212
## Cloud Logs Event Notification Instances <a name="cloud_logs_existing_en_instances"></a>
1313

1414
The `cloud_logs_existing_en_instances` input variable allows you to provide a list of existing Event Notification (EN) instances that will be integrated with the Cloud Logging service. For each EN instance, you need to specify its CRN (Cloud Resource Name). You can also optionally configure a integration name and control whether to skip the creation of an authentication policy for the instance.
1515

16-
- Variable name: `cloud_logs_existing_en_instances`.
17-
- Type: A list of objects. Each object represents an EN instance.
18-
- Default value: An empty list (`[]`).
16+
* Variable name: `cloud_logs_existing_en_instances`.
17+
* Type: A list of objects. Each object represents an EN instance.
18+
* Default value: An empty list (`[]`).
1919

2020
### Options for cloud_logs_existing_en_instances
2121

22-
- `instance_crn` (required): The Cloud Resource Name (CRN) of the Event Notification instance.
23-
- `integration_name` (optional): The name of the Event Notification integration that gets created. If a prefix input variable is passed, it is prefixed to the value in the `<prefix>-value` format. Defaults to `"cloud-logs-en-integration"`.
24-
- `skip_en_auth_policy` (optional): A boolean flag to determine whether to skip the creation of an authentication policy that allows Cloud Logs 'Event Source Manager' role access in the existing event notification instance. Defaults to `false`.
22+
* `instance_crn` (required): The Cloud Resource Name (CRN) of the Event Notification instance.
23+
* `integration_name` (optional): The name of the Event Notification integration that gets created. If a prefix input variable is passed, it is prefixed to the value in the `<prefix>-value` format. Defaults to `"cloud-logs-en-integration"`.
24+
* `skip_en_auth_policy` (optional): A boolean flag to determine whether to skip the creation of an authentication policy that allows Cloud Logs 'Event Source Manager' role access in the existing event notification instance. Defaults to `false`.
2525

2626
### Example Event Notification Instance Configuration
2727

@@ -40,26 +40,27 @@ cloud_logs_existing_en_instances = [
4040
```
4141

4242
In this example:
43-
- The first EN instance has a integration name `"custom-logging-en-integration"` and skips the authentication policy.
44-
- The second EN instance uses the default integration name and includes the authentication policy.
43+
44+
* The first EN instance has a integration name `"custom-logging-en-integration"` and skips the authentication policy.
45+
* The second EN instance uses the default integration name and includes the authentication policy.
4546

4647
## Cloud Logs Policies <a name="cloud_logs_policies"></a>
4748

4849
The `cloud_logs_policies` input variable allows you to provide a list of policies that will be configured in the Cloud Logs service. Refer [here](https://cloud.ibm.com/docs/cloud-logs?topic=cloud-logs-tco-optimizer) for more information.
4950

50-
- Variable name: `cloud_logs_policies`.
51-
- Type: A list of objects. Each object represents a policy.
52-
- Default value: An empty list (`[]`).
51+
* Variable name: `cloud_logs_policies`.
52+
* Type: A list of objects. Each object represents a policy.
53+
* Default value: An empty list (`[]`).
5354

5455
### Options for cloud_logs_policies
5556

56-
- `logs_policy_name` (required): The unique policy name.
57-
- `logs_policy_description` (optional): The description of the policy to create.
58-
- `logs_policy_priority` (required): The priority to determine the pipeline for the logs. Allowed values are: type_unspecified, type_block, type_low, type_medium, type_high. High (priority value) sent to 'Priority insights' (TCO pipleine), Medium to 'Analyze and alert', Low to 'Store and search', Blocked are not sent to any pipeline.
59-
- `application_rule` (optional): The rules to include in the policy configuration for matching applications.
60-
- `subsystem_rule` (optional): The subsystem rules to include in the policy configuration for matching applications.
61-
- `log_rules` (required): The log severities to include in the policy configuration.
62-
- `archive_retention` (optional): Define archive retention.
57+
* `logs_policy_name` (required): The unique policy name.
58+
* `logs_policy_description` (optional): The description of the policy to create.
59+
* `logs_policy_priority` (required): The priority to determine the pipeline for the logs. Allowed values are: type_unspecified, type_block, type_low, type_medium, type_high. High (priority value) sent to 'Priority insights' (TCO pipleine), Medium to 'Analyze and alert', Low to 'Store and search', Blocked are not sent to any pipeline.
60+
* `application_rule` (optional): The rules to include in the policy configuration for matching applications.
61+
* `subsystem_rule` (optional): The subsystem rules to include in the policy configuration for matching applications.
62+
* `log_rules` (required): The log severities to include in the policy configuration.
63+
* `archive_retention` (optional): Define archive retention.
6364

6465
### Example cloud_logs_policies
6566

@@ -96,22 +97,22 @@ cloud_logs_policies = [
9697

9798
The `metrics_router_routes` input variable allows you to provide a list of routes that will be configured in the IBM Cloud Metrics Routing. Refer [here](https://cloud.ibm.com/docs/metrics-router?topic=metrics-router-about) for more information.
9899

99-
- Variable name: `metrics_router_routes`.
100-
- Type: A list of objects. Each object represents a route.
101-
- Default value: An empty list (`[]`).
100+
* Variable name: `metrics_router_routes`.
101+
* Type: A list of objects. Each object represents a route.
102+
* Default value: An empty list (`[]`).
102103

103104
### Options for metrics_router_routes
104105

105-
- `name` (required): The name of the route.
106-
- `rules` (required): The routing rules that will be evaluated in their order of the array. You can configure up to 10 rules per route.
107-
- `action` (optional): The action if the inclusion_filters matches, default is send action. Allowed values are `send` and `drop`.
108-
- `inclusion_filters` (required): A list of conditions to be satisfied for routing metrics to pre-defined target.'inclusion_filters' is an object with three parameters:
109-
- `operand` - Part of CRN that can be compared with values. Allowable values are: `location`, `service_name`, `service_instance`, `resource_type`, `resource`.
106+
* `name` (required): The name of the route.
107+
* `rules` (required): The routing rules that will be evaluated in their order of the array. You can configure up to 10 rules per route.
108+
* `action` (optional): The action if the inclusion_filters matches, default is send action. Allowed values are `send` and `drop`.
109+
* `inclusion_filters` (required): A list of conditions to be satisfied for routing metrics to pre-defined target.'inclusion_filters' is an object with three parameters:
110+
* `operand` - Part of CRN that can be compared with values. Allowable values are: `location`, `service_name`, `service_instance`, `resource_type`, `resource`.
110111

111-
- `operator` - The operation to be performed between operand and the provided values. Allowable values are: `is`, `in`.
112+
* `operator` - The operation to be performed between operand and the provided values. Allowable values are: `is`, `in`.
112113

113-
- `values` - The provided string values of the operand to be compared with.
114-
- `targets` (required): The target uuid for a pre-defined metrics router target.
114+
* `values` - The provided string values of the operand to be compared with.
115+
* `targets` (required): The target uuid for a pre-defined metrics router target.
115116

116117
### Example metrics_router_routes
117118

@@ -131,22 +132,55 @@ metrics_router_routes = {
131132
}
132133
}
133134
```
135+
134136
Refer [here](https://cloud.ibm.com/docs/metrics-router?topic=metrics-router-route_rules_definitions&interface=ui) for more information about IBM Cloud Metrics Routing route.
135137

138+
## Metrics Router Settings <a name="metrics_router_settings"></a>
139+
140+
The `metrics_router_settings` input variable allows you to set the account settings for IBM Cloud® Metrics Routing. These settings are set to define where and how metrics are collected, routed, and managed in your account. Refer [here](https://cloud.ibm.com/docs/metrics-router?topic=metrics-router-settings-about&interface=ui) for more information.
141+
142+
* Variable name: `metrics_router_settings`.
143+
* Type: An object.
144+
* Default value: null (`null`).
145+
146+
### Options for metrics_router_settings
147+
148+
* `default_targets` (optional): A list of default target locations that is, 1 or more targets in the account, that will collect metrics from supported IBM Cloud Metrics Routing locations where the user have not configured how they want to collect metrics.
149+
* `permitted_target_regions` (optional): Displays the targets regions where metrics can be sent.
150+
* `primary_metadata_region` (optional): The location where the IBM Cloud Metrics Routing account configuration metadata is stored. For new accounts, all target/route creation will fail until `primary_metadata_region` is set.
151+
* `backup_metadata_region` (optional): To backup all your meta data in a different region.
152+
* `private_api_endpoint_only` (optional): The type of endpoints that are allowed to manage the IBM Cloud Metrics Routing account configuration in the account. If you set this true then you cannot access api through public network.
153+
154+
### Example metrics_router_settings
155+
156+
```hcl
157+
metrics_router_settings = {
158+
default_targets = [{
159+
id = "c3af557f-fb0e-2222-85c3-0889e7fe7bc4"
160+
}]
161+
primary_metadata_region = "us-south"
162+
backup_metadata_region = "us-east"
163+
permitted_target_regions = ["us-south", "eu-de", "us-east", "eu-es", "eu-gb", "au-syd", "br-sao", "ca-tor"]
164+
private_api_endpoint_only = false
165+
}
166+
```
167+
168+
Refer [here](https://cloud.ibm.com/docs/metrics-router?topic=metrics-router-settings&interface=ui) for more information about IBM Cloud Metrics Routing settings.
169+
136170
## at_cos_bucket_retention_policy <a name="at_cos_bucket_retention_policy"></a>
137171

138172
The `at_cos_bucket_retention_policy` input variable allows you to provide the retention policy of the IBM Cloud Activity Tracker Event Routing COS target bucket that will be configured. Refer [here](https://cloud.ibm.com/docs/cloud-object-storage?topic=cloud-object-storage-immutable) for more information.
139173

140-
- Variable name: `at_cos_bucket_retention_policy`.
141-
- Type: An object representing a retention policy.
142-
- Default value: null (`null`).
174+
* Variable name: `at_cos_bucket_retention_policy`.
175+
* Type: An object representing a retention policy.
176+
* Default value: null (`null`).
143177

144178
### Options for at_cos_bucket_retention_policy
145179

146-
- `default` (optional): The number of days that an object can remain unmodified in an Object Storage bucket.
147-
- `maximum` (optional): The maximum number of days that an object can be kept unmodified in the bucket.
148-
- `minimum` (optional): The minimum number of days that an object must be kept unmodified in the bucket.
149-
- `permanent` (optional): Whether permanent retention status is enabled for the Object Storage bucket.
180+
* `default` (optional): The number of days that an object can remain unmodified in an Object Storage bucket.
181+
* `maximum` (optional): The maximum number of days that an object can be kept unmodified in the bucket.
182+
* `minimum` (optional): The minimum number of days that an object must be kept unmodified in the bucket.
183+
* `permanent` (optional): Whether permanent retention status is enabled for the Object Storage bucket.
150184

151185
### Example at_cos_bucket_retention_policy
152186

@@ -163,18 +197,16 @@ at_cos_bucket_retention_policy = {
163197

164198
The `cloud_log_data_bucket_retention_policy` input variable allows you to provide the retention policy of the IBM Cloud Logs data bucket that will be configured. Refer [here](https://cloud.ibm.com/docs/cloud-object-storage?topic=cloud-object-storage-immutable) for more information.
165199

166-
- Variable name: `cloud_log_data_bucket_retention_policy`.
167-
- Type: An object representing a retention policy.
168-
- Default value: null (`null`).
200+
* Variable name: `cloud_log_data_bucket_retention_policy`.
201+
* Type: An object representing a retention policy.
202+
* Default value: null (`null`).
169203

170204
### Options for cloud_log_data_bucket_retention_policy
171205

172-
- `default` (optional): The number of days that an object can remain unmodified in an Object Storage bucket.
173-
- `maximum` (optional): The maximum number of days that an object can be kept unmodified in the bucket.
174-
- `minimum` (optional): The minimum number of days that an object must be kept unmodified in the bucket.
175-
- `permanent` (optional): Whether permanent retention status is enabled for the Object Storage bucket.
176-
177-
206+
* `default` (optional): The number of days that an object can remain unmodified in an Object Storage bucket.
207+
* `maximum` (optional): The maximum number of days that an object can be kept unmodified in the bucket.
208+
* `minimum` (optional): The minimum number of days that an object must be kept unmodified in the bucket.
209+
* `permanent` (optional): Whether permanent retention status is enabled for the Object Storage bucket.
178210

179211
### Example cloud_log_data_bucket_retention_policy
180212

solutions/instances/variables.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ variable "metrics_router_settings" {
239239
id = string
240240
})))
241241
})
242-
description = "Global settings for Metrics Routing"
242+
description = "Global settings for Metrics Routing. [Learn more](https://github.com/terraform-ibm-modules/terraform-ibm-observability-da/blob/main/solutions/instances/DA-types.md#metrics-router-settings-)"
243243
default = null
244244
}
245245

0 commit comments

Comments
 (0)