Skip to content

Commit

Permalink
Merge pull request #4 from kabisa/renovate/configure
Browse files Browse the repository at this point in the history
Configure Renovate
  • Loading branch information
obeleh authored Aug 5, 2022
2 parents 3449594 + 2cfebca commit b489cd5
Show file tree
Hide file tree
Showing 15 changed files with 140 additions and 89 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/documentation.yaml
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/action@v3.0.0
# pre-commit fails if it changed files
# we want to go on
continue-on-error: true
- uses: pre-commit/action@v3.0.0
- uses: EndBug/add-and-commit@v9
with:
default_author: github_actions
8 changes: 3 additions & 5 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,9 @@ repos:
- id: terraform-fmt
- id: terraform-validate
- id: tflint
- id: shellcheck
- repo: git@github.com:kabisa/terraform-datadog-pre-commit-hook.git
rev: "1.2.2"
- repo: https://github.com/kabisa/terraform-datadog-pre-commit-hook
rev: "1.3.6"
hooks:
- id: terraform-datadog-docs
exclude: ^README.md$
args:
- "."
- "."
21 changes: 18 additions & 3 deletions .terraform.lock.hcl

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

141 changes: 72 additions & 69 deletions README.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion batches-compiled-percent.tf
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ locals {

module "batches_compiled_percent" {
source = "kabisa/generic-monitor/datadog"
version = "0.7.5"
version = "1.0.0"

name = "SQL Server - Percentage of batches requiring compilation"
query = "avg(${var.batches_compiled_percent_evaluation_period}):(max:sqlserver.stats.sql_compilations{${local.batches_compiled_percent_filter}} by {host} / max:sqlserver.stats.batch_requests{${local.batches_compiled_percent_filter}} by {host}) * 100 >= ${var.batches_compiled_percent_critical}"
Expand Down
2 changes: 1 addition & 1 deletion buffer-cache-hit-ratio.tf
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ locals {

module "buffer_cache_hit_ratio" {
source = "kabisa/generic-monitor/datadog"
version = "0.7.5"
version = "1.0.0"

name = "SQL Server - Buffer cache hit ratio"
query = "avg(${var.buffer_cache_hit_ratio_evaluation_period}):min:sqlserver.buffer.cache_hit_ratio{${local.buffer_cache_hit_ratio_filter}} by {host} * 100 < ${var.buffer_cache_hit_ratio_critical}"
Expand Down
2 changes: 1 addition & 1 deletion can-connect.tf
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module "can_connect" {
source = "kabisa/service-check-monitor/datadog"
version = "1.4.1"
version = "2.0.0"

name = "SQL Server - Can connect"
metric_name = "sqlserver.can_connect"
Expand Down
2 changes: 1 addition & 1 deletion connections.tf
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ locals {

module "connections" {
source = "kabisa/generic-monitor/datadog"
version = "0.7.5"
version = "1.0.0"

name = "SQL Server - Connections"
query = "avg(${var.connections_evaluation_period}):max:sqlserver.stats.connections{${local.connections_filter}} by {host} >= ${var.connections_critical}"
Expand Down
2 changes: 1 addition & 1 deletion database-state.tf
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ locals {

module "database_state" {
source = "kabisa/generic-monitor/datadog"
version = "0.7.5"
version = "1.0.0"

name = "SQL Server - Database state"
query = "max(${var.database_state_evaluation_period}):max:sqlserver.database.state{${local.database_state_filter}} by {host,database,database_state_desc} >= ${var.database_state_critical}"
Expand Down
6 changes: 3 additions & 3 deletions examples/example.tf
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
# tflint-ignore: terraform_module_version
module "sql_server" {
source = "kabisa/sql-server/datadog"

notification_channel = "mail@example.com"
notification_channel = "@mail@example.com"
service = "SQL Server"
env = "prd"
alert_env = "prd"
filter_str = "role:sqlserver"
service_check_include_tags = ["role:sqlserver"]
}
}
2 changes: 1 addition & 1 deletion lock-waits.tf
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ locals {

module "lock_waits" {
source = "kabisa/generic-monitor/datadog"
version = "0.7.5"
version = "1.0.0"

name = "SQL Server - Lock waits"
query = "avg(${var.lock_waits_evaluation_period}):max:sqlserver.stats.lock_waits{${local.lock_waits_filter}} by {host} > ${var.lock_waits_critical}"
Expand Down
2 changes: 1 addition & 1 deletion page-life-expectancy.tf
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ locals {

module "page_life_expectancy" {
source = "kabisa/generic-monitor/datadog"
version = "0.7.5"
version = "1.0.0"

name = "SQL Server - Page life expectancy"
query = "avg(${var.page_life_expectancy_evaluation_period}):min:sqlserver.buffer.page_life_expectancy{${local.page_life_expectancy_filter}} by {host} < ${var.page_life_expectancy_critical}"
Expand Down
2 changes: 1 addition & 1 deletion procs-blocked.tf
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ locals {

module "procs_blocked" {
source = "kabisa/generic-monitor/datadog"
version = "0.7.5"
version = "1.0.0"

name = "SQL Server - Blocked processes"
query = "avg(${var.procs_blocked_evaluation_period}):max:sqlserver.stats.procs_blocked{${local.procs_blocked_filter}} by {host} >= ${var.procs_blocked_critical}"
Expand Down
2 changes: 1 addition & 1 deletion provider.tf
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ terraform {
required_providers {
datadog = {
source = "DataDog/datadog"
version = "~> 3.4"
version = "~> 3.12"
}
}
}
6 changes: 6 additions & 0 deletions renovate.json
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"
]
}

0 comments on commit b489cd5

Please sign in to comment.