Skip to content

Commit

Permalink
remove alert_env
Browse files Browse the repository at this point in the history
  • Loading branch information
obeleh committed Jul 22, 2022
1 parent 47006d6 commit c8e1c8e
Show file tree
Hide file tree
Showing 11 changed files with 10 additions and 15 deletions.
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ Modules are generated with this tool: https://github.com/kabisa/datadog-terrafor
module "costs" {
source = "kabisa/costs/datadog"
notification_channel = "[email protected]"
notification_channel = "@[email protected]"
env = "prd"
alert_env = "prd"
Expand Down Expand Up @@ -232,7 +232,6 @@ sum(last_1d):sum:custom_datadog.estimated_usage.logs.ingested_bytes{tag:xxx}.as_
| variable | default | required | description |
|-------------------------------|----------|----------|--------------|
| env | | Yes | |
| alert_env | | Yes | |
| service | Costs | No | |
| notification_channel | | Yes | |
| additional_tags | [] | No | |
Expand Down
2 changes: 1 addition & 1 deletion apm-hosts.tf
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ module "apm_hosts" {
note = var.apm_hosts_note

# module level vars
env = var.alert_env
env = var.env
service = var.service
notification_channel = var.notification_channel
additional_tags = var.additional_tags
Expand Down
2 changes: 1 addition & 1 deletion apm-spans.tf
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ module "apm_spans" {
note = var.apm_spans_note

# module level vars
env = var.alert_env
env = var.env
service = var.service
notification_channel = var.notification_channel
additional_tags = var.additional_tags
Expand Down
2 changes: 1 addition & 1 deletion containers.tf
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ module "containers" {
note = var.containers_note

# module level vars
env = var.alert_env
env = var.env
service = var.service
notification_channel = var.notification_channel
additional_tags = var.additional_tags
Expand Down
2 changes: 1 addition & 1 deletion custom-metrics.tf
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ module "custom_metrics" {
note = var.custom_metrics_note

# module level vars
env = var.alert_env
env = var.env
service = var.service
notification_channel = var.notification_channel
additional_tags = var.additional_tags
Expand Down
2 changes: 1 addition & 1 deletion examples/example.tf
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
module "costs" {
source = "kabisa/costs/datadog"

notification_channel = "[email protected]"
notification_channel = "@[email protected]"
env = "prd"
alert_env = "prd"

Expand Down
2 changes: 1 addition & 1 deletion hosts.tf
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ module "hosts" {
note = var.hosts_note

# module level vars
env = var.alert_env
env = var.env
service = var.service
notification_channel = var.notification_channel
additional_tags = var.additional_tags
Expand Down
2 changes: 1 addition & 1 deletion logs-indexed.tf
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ module "logs_indexed" {
note = var.logs_indexed_note

# module level vars
env = var.alert_env
env = var.env
service = var.service
notification_channel = var.notification_channel
additional_tags = var.additional_tags
Expand Down
2 changes: 1 addition & 1 deletion logs-ingestion-4h.tf
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ module "logs_ingestion_4h" {
note = var.logs_ingestion_4h_note

# module level vars
env = var.alert_env
env = var.env
service = var.service
notification_channel = var.notification_channel
additional_tags = var.additional_tags
Expand Down
2 changes: 1 addition & 1 deletion logs-ingestion.tf
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ module "logs_ingestion" {
note = var.logs_ingestion_note

# module level vars
env = var.alert_env
env = var.env
service = var.service
notification_channel = var.notification_channel
additional_tags = var.additional_tags
Expand Down
4 changes: 0 additions & 4 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,6 @@ variable "env" {
type = string
}

variable "alert_env" {
type = string
}

variable "service" {
type = string
default = "Costs"
Expand Down

0 comments on commit c8e1c8e

Please sign in to comment.