Skip to content

Commit 5ec8ec2

Browse files
Update integration resource docs for Datadog tags (#277)
The tags attribute for `cloudamqp_integration_log` and `cloudamqp_integration_metric` offer the ability to add tags- useful for cases like USM with Datadog. Requirement for tags using Datadog, must start with a letter. https://docs.datadoghq.com/getting_started/tagging/#define-tags --------- Co-authored-by: Tobias Brodén <tobias@84codes.com>
1 parent 6fd798b commit 5ec8ec2

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

docs/resources/integration_log.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ resource "cloudamqp_integration_log" "datadog" {
8888
name = "datadog"
8989
region = var.datadog_region
9090
api_key = var.datadog_api_key
91-
tags = var.datadog_tags
91+
tags = "env=prod,region=us1,version=v1.0"
9292
}
9393
```
9494

@@ -289,7 +289,10 @@ The following arguments are supported:
289289
* `access_key_id` - (Optional/Sensitive) AWS access key identifier.
290290
* `secret_access_key` - (Optional/Sensitive) AWS secret access key.
291291
* `api_key` - (Optional/Sensitive) The API key.
292-
* `tags` - (Optional) Tag the integration, e.g. env=prod,region=europe.
292+
* `tags` - (Optional) Tags. e.g. `env=prod,region=europe`.
293+
294+
***Note: If tags are used with Datadog. The value part (prod, europe, ...) must start with a letter, read more about tags format in the [Datadog documentation](https://docs.datadoghq.com/getting_started/tagging/#define-tags)***
295+
293296
* `credentials` - (Optional/Sensitive) Google Service Account private key credentials.
294297
* `project_id` - (Optional/Computed) The project identifier.
295298
* `private_key` - (Optional/Computed/Sensitive) The private access key.

docs/resources/integration_metric.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,13 +78,15 @@ resource "cloudamqp_integration_metric" "datadog" {
7878
name = "datadog"
7979
api_key = var.datadog_api_key
8080
region = var.datadog_region
81+
tags = "env=prod,region=us1,version=v1.0"
8182
}
8283
8384
resource "cloudamqp_integration_metric" "datadog_v2" {
8485
instance_id = cloudamqp_instance.instance.id
8586
name = "datadog_v2"
8687
api_key = var.datadog_api_key
8788
region = var.datadog_region
89+
tags = "env=prod,region=us1,version=v1.0"
8890
}
8991
```
9092

@@ -237,6 +239,9 @@ The following arguments are supported:
237239
* `private_key` - (Optional/Computed) The private access key.
238240
* `client_email` - (Optional/Computed) The client email registered for the integration service.
239241
* `tags` - (Optional) Tags. e.g. `env=prod,region=europe`.
242+
243+
***Note: If tags are used with Datadog. The value part (prod, europe, ...) must start with a letter, read more about tags format in the [Datadog documentation](https://docs.datadoghq.com/getting_started/tagging/#define-tags)***
244+
240245
* `queue_allowlist` - (Optional) Allowlist queues using regular expression. Leave empty to include all queues.
241246
* `vhost_allowlist` - (Optional) Allowlist vhost using regular expression. Leave empty to include all vhosts.
242247
* `queue_whitelist` - **Deprecated** Use queue_allowlist instead

0 commit comments

Comments
 (0)