2019-02-06 10:07:51 +01:00

7.1 KiB

CLOUD AZURE APP-SERVICES DataDog monitors

How to use this module

module "datadog-monitors-cloud-azure-app-services" {
  source = "git::ssh://git@git.fr.clara.net/claranet/cloudnative/projects/datadog/terraform/monitors.git//cloud/azure/app-services?ref={revision}"

  environment = "${var.environment}"
  message     = "${module.datadog-message-alerting.alerting-message}"
}

Purpose

Creates DataDog monitors with the following checks:

  • App Services HTTP 4xx errors too high
  • App Services HTTP 5xx errors too high
  • App Services HTTP successful responses too low
  • App Services memory usage
  • App Services response time too high

Inputs

Name Description Type Default Required
environment Architecture environment string n/a yes
evaluation_delay Delay in seconds for the metric evaluation string "900" no
filter_tags_custom Tags used for custom filtering when filter_tags_use_defaults is false string "*" no
filter_tags_custom_excluded Tags excluded for custom filtering when filter_tags_use_defaults is false string "" no
filter_tags_use_defaults Use default filter tags convention string "true" no
http_4xx_requests_enabled Flag to enable App Services 4xx requests monitor string "true" no
http_4xx_requests_extra_tags Extra tags for App Services 4xx requests monitor list [] no
http_4xx_requests_message Custom message for App Services 4xx requests monitor string "" no
http_4xx_requests_silenced Groups to mute for App Services 4xx requests monitor map {} no
http_4xx_requests_threshold_critical Maximum critical acceptable percent of 4xx errors string "90" no
http_4xx_requests_threshold_warning Warning regarding acceptable percent of 4xx errors string "50" no
http_4xx_requests_time_aggregator Monitor aggregator for App Services 4xx requests [available values: min, max or avg] string "min" no
http_4xx_requests_timeframe Monitor timeframe for App Services 4xx requests [available values: last_#m (1, 5, 10, 15, or 30), last_#h (1, 2, or 4), or last_1d] string "last_5m" no
http_5xx_requests_enabled Flag to enable App Services 5xx requests monitor string "true" no
http_5xx_requests_extra_tags Extra tags for App Services 5xx requests monitor list [] no
http_5xx_requests_message Custom message for App Services 5xx requests monitor string "" no
http_5xx_requests_silenced Groups to mute for App Services 5xx requests monitor map {} no
http_5xx_requests_threshold_critical Maximum critical acceptable percent of 5xx errors string "90" no
http_5xx_requests_threshold_warning Warning regarding acceptable percent of 5xx errors string "50" no
http_5xx_requests_time_aggregator Monitor aggregator for App Services 5xx requests [available values: min, max or avg] string "min" no
http_5xx_requests_timeframe Monitor timeframe for App Services 5xx requests [available values: last_#m (1, 5, 10, 15, or 30), last_#h (1, 2, or 4), or last_1d] string "last_5m" no
http_successful_requests_enabled Flag to enable App Services successful requests monitor string "true" no
http_successful_requests_extra_tags Extra tags for App Services successful requests monitor list [] no
http_successful_requests_message Custom message for App Services successful requests monitor string "" no
http_successful_requests_silenced Groups to mute for App Services successful requests monitor map {} no
http_successful_requests_threshold_critical Minimum critical acceptable percent of 2xx & 3xx requests string "10" no
http_successful_requests_threshold_warning Warning regarding acceptable percent of 2xx & 3xx requests string "30" no
http_successful_requests_time_aggregator Monitor aggregator for App Services successful requests [available values: min, max or avg] string "max" no
http_successful_requests_timeframe Monitor timeframe for App Services successful requests [available values: last_#m (1, 5, 10, 15, or 30), last_#h (1, 2, or 4), or last_1d] string "last_5m" no
memory_usage_enabled Flag to enable App Services memory usage monitor string "true" no
memory_usage_extra_tags Extra tags for App Services memory usage monitor list [] no
memory_usage_message Custom message for App Services memory usage monitor string "" no
memory_usage_silenced Groups to mute for App Services memory usage monitor map {} no
memory_usage_threshold_critical Alerting threshold in Mib string "1073741824" no
memory_usage_threshold_warning Warning threshold in MiB string "536870912" no
memory_usage_time_aggregator Monitor aggregator for App Services memory usage [available values: min, max or avg] string "min" no
memory_usage_timeframe Monitor timeframe for App Services memory usage [available values: last_#m (1, 5, 10, 15, or 30), last_#h (1, 2, or 4), or last_1d] string "last_5m" no
message Message sent when a monitor is triggered string n/a yes
new_host_delay Delay in seconds before monitor new resource string "300" no
response_time_enabled Flag to enable App Services response time monitor string "true" no
response_time_extra_tags Extra tags for App Services response time monitor list [] no
response_time_message Custom message for App Services response time monitor string "" no
response_time_silenced Groups to mute for App Services response time monitor map {} no
response_time_threshold_critical Alerting threshold for response time in seconds string "10" no
response_time_threshold_warning Warning threshold for response time in seconds string "5" no
response_time_time_aggregator Monitor aggregator for App Services response time [available values: min, max or avg] string "min" no
response_time_timeframe Monitor timeframe for App Services response time [available values: last_#m (1, 5, 10, 15, or 30), last_#h (1, 2, or 4), or last_1d] string "last_5m" no

Outputs

Name Description
appservices_http_4xx_errors_count_id id for monitor appservices_http_4xx_errors_count
appservices_http_5xx_errors_count_id id for monitor appservices_http_5xx_errors_count
appservices_http_success_status_rate_id id for monitor appservices_http_success_status_rate
appservices_memory_usage_count_id id for monitor appservices_memory_usage_count
appservices_response_time_id id for monitor appservices_response_time

DataDog documentation: https://docs.datadoghq.com/integrations/azure_app_services