MON-82 Add readme for alerting message module
This commit is contained in:
parent
e50ef46639
commit
ac1d515598
39
common/alerting-message/README.md
Normal file
39
common/alerting-message/README.md
Normal file
@ -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)
|
||||||
@ -1,17 +1,21 @@
|
|||||||
variable "oncall_24x7" {
|
variable "oncall_24x7" {
|
||||||
|
description = "Define PagerDuty NBH service name for alerts and nodata"
|
||||||
type = "string"
|
type = "string"
|
||||||
}
|
}
|
||||||
|
|
||||||
variable "oncall_office_hours" {
|
variable "oncall_office_hours" {
|
||||||
|
description = "Define PagerDuty BH service name for warning alerts"
|
||||||
type = "string"
|
type = "string"
|
||||||
}
|
}
|
||||||
|
|
||||||
variable "prepend_text" {
|
variable "prepend_text" {
|
||||||
|
description = "Optional free text string to prepend to alert"
|
||||||
type = "string"
|
type = "string"
|
||||||
default = ""
|
default = ""
|
||||||
}
|
}
|
||||||
|
|
||||||
variable "append_text" {
|
variable "append_text" {
|
||||||
|
description = "Optional free text string to append to alert"
|
||||||
type = "string"
|
type = "string"
|
||||||
default = ""
|
default = ""
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user