-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6 from kabisa/renovate/configure
Configure Renovate
- Loading branch information
Showing
26 changed files
with
241 additions
and
123 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
name: Generate terraform docs | ||
|
||
on: | ||
push: | ||
# don't run when we push a tag | ||
tags-ignore: | ||
- '*' | ||
# don't run when we merge to main | ||
# the action should have run already | ||
branches-ignore: | ||
- 'main' | ||
jobs: | ||
pre-commit: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: terraform-linters/setup-tflint@v2 | ||
name: Setup TFLint | ||
with: | ||
tflint_version: v0.38.1 | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-python@v4 | ||
- uses: pre-commit/[email protected] | ||
# pre-commit fails if it changed files | ||
# we want to go on | ||
continue-on-error: true | ||
- uses: pre-commit/[email protected] | ||
- uses: EndBug/add-and-commit@v9 | ||
with: | ||
default_author: github_actions |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
.terraform | ||
examples/.terraform.lock.hcl |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -42,4 +42,4 @@ variable "apm_hosts_priority" { | |
|
||
type = number | ||
default = 4 | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,7 +6,8 @@ locals { | |
} | ||
|
||
module "apm_hosts" { | ||
source = "[email protected]:kabisa/terraform-datadog-generic-monitor.git?ref=0.7.0" | ||
source = "kabisa/generic-monitor/datadog" | ||
version = "1.0.0" | ||
|
||
name = "Estimated APM Hosts Usage" | ||
query = "avg(${var.apm_hosts_evaluation_period}):sum:datadog.estimated_usage.apm_hosts{${local.apm_hosts_filter}} > ${var.apm_hosts_critical}" | ||
|
@@ -23,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 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -41,4 +41,4 @@ variable "apm_spans_priority" { | |
|
||
type = number | ||
default = 3 | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,8 @@ locals { | |
} | ||
|
||
module "apm_spans" { | ||
source = "[email protected]:kabisa/terraform-datadog-generic-monitor.git?ref=0.7.0" | ||
source = "kabisa/generic-monitor/datadog" | ||
version = "1.0.0" | ||
|
||
name = "Estimated APM Analyzed Spans Usage" | ||
query = "sum(${var.apm_spans_evaluation_period}):sum:datadog.estimated_usage.apm.indexed_spans{${local.apm_spans_filter}}.as_count() > ${var.apm_spans_critical}" | ||
|
@@ -21,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 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -42,4 +42,4 @@ variable "containers_priority" { | |
|
||
type = number | ||
default = 4 | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,8 @@ locals { | |
} | ||
|
||
module "containers" { | ||
source = "[email protected]:kabisa/terraform-datadog-generic-monitor.git?ref=0.7.0" | ||
source = "kabisa/generic-monitor/datadog" | ||
version = "1.0.0" | ||
|
||
name = "Estimated Containers Usage" | ||
query = "avg(${var.containers_evaluation_period}):sum:datadog.estimated_usage.containers{${local.containers_filter}} > ${var.containers_critical}" | ||
|
@@ -21,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 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -42,4 +42,4 @@ variable "custom_metrics_priority" { | |
|
||
type = number | ||
default = 4 | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,8 @@ locals { | |
} | ||
|
||
module "custom_metrics" { | ||
source = "[email protected]:kabisa/terraform-datadog-generic-monitor.git?ref=0.7.0" | ||
source = "kabisa/generic-monitor/datadog" | ||
version = "1.0.0" | ||
|
||
name = "Estimated Custom Metrics Usage" | ||
query = "avg(${var.custom_metrics_evaluation_period}):sum:datadog.estimated_usage.metrics.custom{${local.custom_metrics_filter}} > ${var.custom_metrics_critical}" | ||
|
@@ -21,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 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# tflint-ignore: terraform_module_version | ||
module "costs" { | ||
source = "kabisa/costs/datadog" | ||
|
||
notification_channel = "@[email protected]" | ||
env = "prd" | ||
alert_env = "prd" | ||
|
||
# Example config, please adjust | ||
filter_str = "*" | ||
apm_hosts_critical = 2 | ||
apm_spans_critical = 1000000 | ||
apm_spans_warning = 800000 | ||
containers_critical = 375 | ||
custom_metrics_critical = 10000 | ||
hosts_critical = 20 | ||
logs_indexed_critical = 150000 | ||
logs_ingestion_4h_critical = 208000000 | ||
logs_ingestion_critical = 850000000 | ||
logs_ingestion_warning = 600000000 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -42,4 +42,4 @@ variable "hosts_priority" { | |
|
||
type = number | ||
default = 4 | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,8 @@ locals { | |
} | ||
|
||
module "hosts" { | ||
source = "[email protected]:kabisa/terraform-datadog-generic-monitor.git?ref=0.7.0" | ||
source = "kabisa/generic-monitor/datadog" | ||
version = "1.0.0" | ||
|
||
name = "Estimated Hosts Usage" | ||
query = "avg(${var.hosts_evaluation_period}):sum:datadog.estimated_usage.hosts{${local.hosts_filter}} > ${var.hosts_critical}" | ||
|
@@ -21,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 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -42,4 +42,4 @@ variable "logs_indexed_priority" { | |
|
||
type = number | ||
default = 3 | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,8 @@ locals { | |
} | ||
|
||
module "logs_indexed" { | ||
source = "[email protected]:kabisa/terraform-datadog-generic-monitor.git?ref=0.7.0" | ||
source = "kabisa/generic-monitor/datadog" | ||
version = "1.0.0" | ||
|
||
name = "Indexed Logs" | ||
query = "sum(${var.logs_indexed_evaluation_period}):sum:custom_datadog.estimated_usage.logs.ingested_events{${local.logs_indexed_filter}}.as_count() > ${var.logs_indexed_critical}" | ||
|
@@ -21,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 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -43,4 +43,4 @@ variable "logs_ingestion_4h_priority" { | |
|
||
type = number | ||
default = 3 | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,8 @@ locals { | |
} | ||
|
||
module "logs_ingestion_4h" { | ||
source = "[email protected]:kabisa/terraform-datadog-generic-monitor.git?ref=0.7.0" | ||
source = "kabisa/generic-monitor/datadog" | ||
version = "1.0.0" | ||
|
||
name = "Logs ingestion high" | ||
query = "sum(${var.logs_ingestion_4h_evaluation_period}):sum:custom_datadog.estimated_usage.logs.ingested_bytes{${local.logs_ingestion_4h_filter}}.as_count() > ${var.logs_ingestion_4h_critical}" | ||
|
@@ -21,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 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -41,4 +41,4 @@ variable "logs_ingestion_priority" { | |
|
||
type = number | ||
default = 3 | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,8 @@ locals { | |
} | ||
|
||
module "logs_ingestion" { | ||
source = "[email protected]:kabisa/terraform-datadog-generic-monitor.git?ref=0.7.0" | ||
source = "kabisa/generic-monitor/datadog" | ||
version = "1.0.0" | ||
|
||
name = "Daily Logs Ingestion" | ||
query = "sum(${var.logs_ingestion_evaluation_period}):sum:custom_datadog.estimated_usage.logs.ingested_bytes{${local.logs_ingestion_filter}}.as_count() > ${var.logs_ingestion_critical}" | ||
|
@@ -21,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 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
This module will set up alerts to make sure you don't suddenly overspend on you datadog bill. | ||
It will also generate a costs dashboard |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"$schema": "https://docs.renovatebot.com/renovate-schema.json", | ||
"extends": [ | ||
"config:base" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters