Merged in MON-66_monitors_subdirs (pull request #5)

MON-66: Rework tree directories and update how to declare TF modules

Approved-by: Jérôme Respaut <shr3ps@gmail.com>
Approved-by: Alexandre Gaillet <alexandre.gaillet@fr.clara.net>
Approved-by: vincent.elkhatib@morea.fr <vincent.elkhatib@morea.fr>
Approved-by: Quentin Manfroi <quentin.manfroi@yahoo.fr>
Approved-by: Patrick Decat <patrick.decat@fr.clara.net>
This commit is contained in:
Jérôme Respaut 2017-11-06 09:26:01 +00:00 committed by Quentin Manfroi
commit abd50b4a15
27 changed files with 18 additions and 11 deletions

View File

@ -1,8 +1,8 @@
# README # # README - DataDog Monitors #
This repository is used to store all our monitors templates. This repository is used to store all our monitors templates.
These templates have to be used with dedicated agent configurations and ressource tagging to works as expected. These templates have to be used with dedicated agent configurations and resource tagging to works as expected.
### How to contribute ? ### ### How to contribute ? ###
@ -10,13 +10,11 @@ The easiest way to contribute on this repository is to add monitors file inside
### Important notes ### ### Important notes ###
*This repository will be included as a Terraform module source. * This repository will be included as a Terraform module source.
* Each monitors have to be disabled by default, so you have to manage this condition when you create your monitors.
*Each monitors have to be disabled by default, so you have to manage this condition when you create your monitors. * If you override a basic monitor with a custom one, you have to use tag filters on you query. (Example dd_cpu_high, if you want to override default cpu monitors)
*If you override a basic monitor with a custom one, you have to use tag filters on you query. (Example dd_cpu_high, if you want to override default cpu monitors) ### Main.tf : add the DataDog provider ###
### Main.tf : add the datadog provider ###
``` ```
provider "datadog" { provider "datadog" {
@ -29,7 +27,7 @@ provider "datadog" {
``` ```
module "datadog-monitors" { module "datadog-monitors" {
source = "git::ssh://git@bitbucket.org/morea/terraform.datadog.monitors.git" source = "git::ssh://git@bitbucket.org/morea/terraform.feature.datadog.git//{module-path}?ref={version}"
critical_escalation_group = "${var.critical_escalation_group}" critical_escalation_group = "${var.critical_escalation_group}"
warning_escalation_group = "${var.warning_escalation_group}" warning_escalation_group = "${var.warning_escalation_group}"

1
cloud/aws/elb/inputs.tf Symbolic link
View File

@ -0,0 +1 @@
../../../inputs.tf

View File

@ -0,0 +1 @@
../../../inputs.tf

1
middleware/apache/inputs.tf Symbolic link
View File

@ -0,0 +1 @@
../../inputs.tf

1
middleware/nginx/inputs.tf Symbolic link
View File

@ -0,0 +1 @@
../../inputs.tf

View File

@ -0,0 +1 @@
../../inputs.tf

1
system/generic/inputs.tf Symbolic link
View File

@ -0,0 +1 @@
../../inputs.tf

1
system/linux/inputs.tf Symbolic link
View File

@ -0,0 +1 @@
../../inputs.tf

3
testing/dummy/dummy.tf Normal file
View File

@ -0,0 +1,3 @@
resource "null_resource" "test-migration" {}

View File

@ -1,5 +1,5 @@
module "datadog-monitors" { module "datadog-monitors" {
source = "git::ssh://git@bitbucket.org/morea/terraform.datadog.monitors.git" source = "git::ssh://git@bitbucket.org/morea/terraform.feature.datadog.git"
env = "${var.environment}" env = "${var.environment}"
region = "${var.region}" region = "${var.region}"
@ -12,4 +12,3 @@ module "datadog-monitors" {
dd_linux_basics = "${var.dd_linux_basics}" dd_linux_basics = "${var.dd_linux_basics}"
} }