Skip to content

Latest commit

 

History

History

CLOUD AZURE KEYVAULT DataDog monitors

How to use this module

module "datadog-monitors-cloud-azure-keyvault" {
  source      = "claranet/monitors/datadog//cloud/azure/keyvault"
  version     = "{revision}"

  environment = var.environment
  message     = module.datadog-message-alerting.alerting-message
}

Purpose

Creates DataDog monitors with the following checks:

  • Key Vault API latency is high
  • Key Vault API result rate is low
  • Key Vault is down

Requirements

Name Version
terraform >= 0.12.31
datadog >= 3.1.2

Providers

Name Version
datadog >= 3.1.2

Modules

Name Source Version
filter-tags ../../../common/filter-tags n/a
filter-tags-activity ../../../common/filter-tags n/a
filter-tags-status ../../../common/filter-tags n/a
filter-tags-statuscode ../../../common/filter-tags n/a

Resources

Name Type
datadog_monitor.keyvault_api_latency resource
datadog_monitor.keyvault_api_result resource
datadog_monitor.keyvault_status resource

Inputs

Name Description Type Default Required
api_latency_enabled Flag to enable Key Vault API latency monitor string "true" no
api_latency_extra_tags Extra tags for Key Vault API latency monitor list(string) [] no
api_latency_message Custom message for Key Vault API latency monitor string "" no
api_latency_threshold_critical Critical threshold for Key Vault API latency rate number 100 no
api_latency_threshold_warning Warning threshold for Key Vault API latency rate number 80 no
api_latency_time_aggregator Monitor aggregator for Key Vault API latency [available values: min, max or avg] string "min" no
api_latency_timeframe Monitor timeframe for Key Vault API latency [available values: last_#m (1, 5, 10, 15, or 30), last_#h (1, 2, or 4), or last_1d] string "last_5m" no
api_result_enabled Flag to enable Key Vault API result monitor string "true" no
api_result_extra_tags Extra tags for Key Vault API result monitor list(string) [] no
api_result_message Custom message for Key Vault API result monitor string "" no
api_result_threshold_critical Critical threshold for Key Vault API result rate number 10 no
api_result_threshold_warning Warning threshold for Key Vault API result rate number 30 no
api_result_time_aggregator Monitor aggregator for Key Vault API result [available values: min, max or avg] string "max" no
api_result_timeframe Monitor timeframe for Key Vault API result [available values: last_#m (1, 5, 10, 15, or 30), last_#h (1, 2, or 4), or last_1d] string "last_5m" no
environment Architecture Environment string n/a yes
evaluation_delay Delay in seconds for the metric evaluation number 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
keyvault_status_no_data_timeframe Number of minutes before reporting no data string 10 no
message Message sent when a monitor is triggered any n/a yes
new_group_delay Delay in seconds before monitor new resource number 300 no
new_host_delay Delay in seconds before monitor new resource number 300 no
notify_no_data Will raise no data alert if set to true bool true no
prefix_slug Prefix string to prepend between brackets on every monitors names string "" no
status_enabled Flag to enable Key Vault status monitor string "true" no
status_extra_tags Extra tags for Key Vault status monitor list(string) [] no
status_message Custom message for Key Vault status monitor string "" no
status_time_aggregator Monitor aggregator for Key Vault status [available values: min, max or avg] string "max" no
status_timeframe Monitor timeframe for Key Vault status [available values: last_#m (1, 5, 10, 15, or 30), last_#h (1, 2, or 4), or last_1d] string "last_5m" no
tags Global variables list(string)
[
"type:cloud",
"provider:azure",
"resource:keyvault"
]
no
team n/a string "claranet" no
timeout_h Default auto-resolving state (in hours) number 0 no

Outputs

Name Description
keyvault_api_latency_id id for monitor keyvault_api_latency
keyvault_api_result_id id for monitor keyvault_api_result
keyvault_status_id id for monitor keyvault_status

Related documentation

DataDog documentation : https://docs.datadoghq.com/integrations/azure/
You must search keyvault, there is no integration for now.

Azure metrics documentation : https://docs.microsoft.com/fr-fr/azure/monitoring-and-diagnostics/monitoring-supported-metrics#microsoftkeyvaultvaults