Skip to content

Commit

Permalink
Add dataset filtering variable to Terraform module (#32)
Browse files Browse the repository at this point in the history
* Add configuration for dataset filtering
* Bump module version
  • Loading branch information
chris-brindley authored Mar 26, 2021
1 parent 28ee30b commit 6eaa087
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
1 change: 1 addition & 0 deletions terraform/gcp/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ locals {
config_init = {
custom-metrics = var.custom-metrics
datadog-api-key-secret-id = data.google_secret_manager_secret_version.datadog-api-key.id
dataset-filter = var.dataset-filter
gcp-project-id = local.bigquery-project
metric-interval = var.metric-interval
metric-prefix = var.metric-prefix
Expand Down
2 changes: 1 addition & 1 deletion terraform/gcp/module_version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.0.1
1.0.2
6 changes: 6 additions & 0 deletions terraform/gcp/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,12 @@ variable "datadog-api-key-secret" {
description = "Name of the secret containing the Datadog API key stored in Google Secret Manager"
}

variable "dataset-filter" {
type = string
description = "A label to filter BigQuery datasets by when querying for table metrics"
default = ""
}

variable "image-repository" {
type = string
description = "The repository where the image is stored"
Expand Down

0 comments on commit 6eaa087

Please sign in to comment.