Guillaume Kérivel 865a445d36 Merged in MON-110-monitors-for-aws-kinesis-firehose (pull request #43)
MON-110 monitors for Kinesis Firehose

Approved-by: Jérôme Respaut <shr3ps@gmail.com>
Approved-by: Quentin Manfroi <quentin.manfroi@yahoo.fr>
Approved-by: Adrien Broyere <adrien.broyere@fr.clara.net>
Approved-by: Alexandre Gaillet <alexandre.gaillet@fr.clara.net>
Approved-by: Guillaume Kérivel <guillaume.kerivel@fr.clara.net>
2018-02-23 09:29:55 +00:00
2018-01-23 15:04:19 +01:00
2018-01-23 15:04:19 +01:00
2018-02-20 18:12:48 +01:00
2018-01-23 15:04:19 +01:00
2018-01-23 15:04:19 +01:00

README - DataDog Monitors

This repository is used to store all our monitors templates.

These templates have to be used with dedicated agent configurations and resource tagging to works as expected.

How to contribute ?

The easiest way to contribute on this repository is to add monitors file inside the monitors repository.

Important notes

  • 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.
  • 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

provider "datadog" {
  api_key = "${var.datadog_api_key}"
  app_key = "${var.datadog_app_key}"
}

Module Declaration example

module "datadog-monitors" {
  source = "git::ssh://git@bitbucket.org/morea/terraform.feature.datadog.git//{module-path}?ref={version}"

  critical_escalation_group = "${var.critical_escalation_group}"
  warning_escalation_group  = "${var.warning_escalation_group}"

  #default monitors templates integrations examples
  dd_linux_basics  = "${var.dd_linux_basics}"
  #nginx         = "false"
  #aws_rds_mysql = "false"

  dd_custom_cpu = "${var.dd_custom_cpu}"
}

Input Declaration example

variable "critical_escalation_group" {
  default = "@pagerduty_HODummy"
}
variable "warning_escalation_group" {
  default = "@pagerduty_HNODummy"
}

variable "datadog_app_key" {}
variable "datadog_api_key" {}

variable "dd_linux_basics" {
  default = "enabled"
}

variable "dd_custom_cpu" {
  type = "map"
  default = {
    status = "enabled"
    name   = "CPU High > 95% during 1 hour"

    period = "last_1h"

    critical_threshold = 95
    warning_threshold  = 90
  }
}
Description
Enterprise-ready monitoring module with pre-configured monitors for middleware, databases, cloud services (AWS/Azure/GCP), and container platforms
Readme 3.1 MiB
Languages
HCL 100%