From ac1d51559891c5603c5a872bd4e54ff4406cd590 Mon Sep 17 00:00:00 2001 From: Quentin Manfroi Date: Sat, 24 Mar 2018 17:12:22 +0100 Subject: [PATCH] MON-82 Add readme for alerting message module --- common/alerting-message/README.md | 39 +++++++++++++++++++++++++++++++ common/alerting-message/inputs.tf | 16 ++++++++----- 2 files changed, 49 insertions(+), 6 deletions(-) create mode 100644 common/alerting-message/README.md diff --git a/common/alerting-message/README.md b/common/alerting-message/README.md new file mode 100644 index 0000000..60315f0 --- /dev/null +++ b/common/alerting-message/README.md @@ -0,0 +1,39 @@ +Alerting Message Datadog Generator +================================== + +How to use this module +---------------------- + +``` +module "datadog-message-alerting" { + source = "git::ssh://git@bitbucket.org/morea/terraform.feature.datadog.git//common/alerting-message?ref={revision}" + + oncall_24x7 = "${var.oncall_24x7}" + oncall_office_hours = "${var.oncall_office_hours}" +} +``` + +Purpose +------- + +Creates a DataDog monitor alert message with the following inputs : + +* PagerDuty NBH service name +* PagerDuty BH service name +* Prepend test free string +* Append text free string + +Inputs +------ + +| Name | Description | Type | Default | Required | +|------|-------------|:----:|:-----:|:-----:| +| append_text | Optional free text string to append to alert | string | `` | no | +| oncall_24x7 | Define PagerDuty NBH service name for alerts and nodata | string | - | yes | +| oncall_office_hours | Define PagerDuty BH service name for warning alerts | string | - | yes | +| prepend_text | Optional free text string to prepend to alert | string | `` | no | + +Related documentation +--------------------- + +DataDog documentation: [https://docs.datadoghq.com/integrations/azure_app_services](https://docs.datadoghq.com/integrations/azure_app_services) diff --git a/common/alerting-message/inputs.tf b/common/alerting-message/inputs.tf index f20bef7..8422020 100644 --- a/common/alerting-message/inputs.tf +++ b/common/alerting-message/inputs.tf @@ -1,17 +1,21 @@ variable "oncall_24x7" { - type = "string" + description = "Define PagerDuty NBH service name for alerts and nodata" + type = "string" } variable "oncall_office_hours" { - type = "string" + description = "Define PagerDuty BH service name for warning alerts" + type = "string" } variable "prepend_text" { - type = "string" - default = "" + description = "Optional free text string to prepend to alert" + type = "string" + default = "" } variable "append_text" { - type = "string" - default = "" + description = "Optional free text string to append to alert" + type = "string" + default = "" }