MON-79 EOF on querys
This commit is contained in:
parent
fdfe302a34
commit
681ada337d
@ -11,7 +11,9 @@ resource "datadog_monitor" "availability" {
|
|||||||
message = "${var.message}"
|
message = "${var.message}"
|
||||||
|
|
||||||
query = <<EOF
|
query = <<EOF
|
||||||
avg(last_5m):avg:azure.storage.availability{${data.template_file.filter.rendered}} by {resource_group,storage_type,name} < ${var.availability_threshold_critical}
|
avg(last_5m): (
|
||||||
|
avg:azure.storage.availability{${data.template_file.filter.rendered}} by {resource_group,storage_type,name}
|
||||||
|
) < ${var.availability_threshold_critical}
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
thresholds {
|
thresholds {
|
||||||
@ -38,7 +40,9 @@ resource "datadog_monitor" "successful_requests" {
|
|||||||
message = "${var.message}"
|
message = "${var.message}"
|
||||||
|
|
||||||
query = <<EOF
|
query = <<EOF
|
||||||
avg(last_5m):avg:azure.storage.percent_success{${data.template_file.filter.rendered}} by {resource_group,storage_type,name} < ${var.successful_requests_threshold_critical}
|
avg(last_5m): (
|
||||||
|
avg:azure.storage.percent_success{${data.template_file.filter.rendered}} by {resource_group,storage_type,name}
|
||||||
|
) < ${var.successful_requests_threshold_critical}
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
thresholds {
|
thresholds {
|
||||||
@ -65,7 +69,9 @@ resource "datadog_monitor" "latency" {
|
|||||||
message = "${var.message}"
|
message = "${var.message}"
|
||||||
|
|
||||||
query = <<EOF
|
query = <<EOF
|
||||||
max(last_5m):avg:azure.storage.average_e2_e_latency{${data.template_file.filter.rendered}} by {resource_group,storage_type,name} > ${var.latency_threshold_critical}
|
max(last_5m): (
|
||||||
|
avg:azure.storage.average_e2_e_latency{${data.template_file.filter.rendered}} by {resource_group,storage_type,name}
|
||||||
|
) > ${var.latency_threshold_critical}
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
thresholds {
|
thresholds {
|
||||||
@ -92,7 +98,9 @@ resource "datadog_monitor" "timeout_error_requests" {
|
|||||||
message = "${var.message}"
|
message = "${var.message}"
|
||||||
|
|
||||||
query = <<EOF
|
query = <<EOF
|
||||||
avg(last_5m):avg:azure.storage.percent_timeout_error{${data.template_file.filter.rendered}} by {resource_group,storage_type,name} > ${var.timeout_error_requests_threshold_critical}
|
avg(last_5m): (
|
||||||
|
avg:azure.storage.percent_timeout_error{${data.template_file.filter.rendered}} by {resource_group,storage_type,name}
|
||||||
|
) > ${var.timeout_error_requests_threshold_critical}
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
thresholds {
|
thresholds {
|
||||||
@ -120,7 +128,9 @@ resource "datadog_monitor" "network_error_requests" {
|
|||||||
message = "${var.message}"
|
message = "${var.message}"
|
||||||
|
|
||||||
query = <<EOF
|
query = <<EOF
|
||||||
avg(last_5m):avg:azure.storage.percent_network_error{${data.template_file.filter.rendered}} by {resource_group,storage_type,name} > ${var.network_error_requests_threshold_critical}
|
avg(last_5m): (
|
||||||
|
avg:azure.storage.percent_network_error{${data.template_file.filter.rendered}} by {resource_group,storage_type,name}
|
||||||
|
) > ${var.network_error_requests_threshold_critical}
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
thresholds {
|
thresholds {
|
||||||
@ -148,7 +158,9 @@ resource "datadog_monitor" "throttling_error_requests" {
|
|||||||
message = "${var.message}"
|
message = "${var.message}"
|
||||||
|
|
||||||
query = <<EOF
|
query = <<EOF
|
||||||
avg(last_5m):avg:azure.storage.percent_throttling_error{${data.template_file.filter.rendered}} by {resource_group,storage_type,name} > ${var.throttling_error_requests_threshold_critical}
|
avg(last_5m): (
|
||||||
|
avg:azure.storage.percent_throttling_error{${data.template_file.filter.rendered}} by {resource_group,storage_type,name}
|
||||||
|
) > ${var.throttling_error_requests_threshold_critical}
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
thresholds {
|
thresholds {
|
||||||
@ -176,7 +188,9 @@ resource "datadog_monitor" "server_other_error_requests" {
|
|||||||
message = "${var.message}"
|
message = "${var.message}"
|
||||||
|
|
||||||
query = <<EOF
|
query = <<EOF
|
||||||
avg(last_5m):avg:azure.storage.percent_server_other_error{${data.template_file.filter.rendered}} by {resource_group,storage_type,name} > ${var.server_other_error_requests_threshold_critical}
|
avg(last_5m): (
|
||||||
|
avg:azure.storage.percent_server_other_error{${data.template_file.filter.rendered}} by {resource_group,storage_type,name}
|
||||||
|
) > ${var.server_other_error_requests_threshold_critical}
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
thresholds {
|
thresholds {
|
||||||
@ -204,7 +218,9 @@ resource "datadog_monitor" "client_other_error_requests" {
|
|||||||
message = "${var.message}"
|
message = "${var.message}"
|
||||||
|
|
||||||
query = <<EOF
|
query = <<EOF
|
||||||
avg(last_5m):avg:azure.storage.percent_client_other_error{${data.template_file.filter.rendered}} by {resource_group,storage_type,name} > ${var.client_other_error_requests_threshold_critical}
|
avg(last_5m): (
|
||||||
|
avg:azure.storage.percent_client_other_error{${data.template_file.filter.rendered}} by {resource_group,storage_type,name}
|
||||||
|
) > ${var.client_other_error_requests_threshold_critical}
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
thresholds {
|
thresholds {
|
||||||
@ -232,7 +248,9 @@ resource "datadog_monitor" "authorization_error_requests" {
|
|||||||
message = "${var.message}"
|
message = "${var.message}"
|
||||||
|
|
||||||
query = <<EOF
|
query = <<EOF
|
||||||
avg(last_5m):avg:azure.storage.percent_authorization_error{${data.template_file.filter.rendered}} by {resource_group,storage_type,name} > ${var.authorization_error_requests_threshold_critical}
|
avg(last_5m): (
|
||||||
|
avg:azure.storage.percent_authorization_error{${data.template_file.filter.rendered}} by {resource_group,storage_type,name}
|
||||||
|
) > ${var.authorization_error_requests_threshold_critical}
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
thresholds {
|
thresholds {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user