MON-400 Name of all monitors fixed. Unavailable Sending Operations Count disabled by default.
This commit is contained in:
parent
e989ea57c4
commit
a20cc21447
@ -16,9 +16,9 @@ module "datadog-monitors-cloud-gcp-pubsub-subscription" {
|
||||
|
||||
Creates DataDog monitors with the following checks:
|
||||
|
||||
- GCP Pub/Sub Subscription Anomaly latency on push endpoint (disabled by default)
|
||||
- GCP Pub/Sub Subscription Latency on push endpoint
|
||||
- GCP Pub/Sub Subscription Oldest unacked message is
|
||||
- Pub/Sub Subscription latency on push endpoint
|
||||
- Pub/Sub Subscription latency on push endpoint changed abnormally (disabled by default)
|
||||
- Pub/Sub Subscription oldest unacknowledged message
|
||||
|
||||
## Inputs
|
||||
|
||||
|
||||
@ -7,7 +7,7 @@
|
||||
#
|
||||
resource "datadog_monitor" "oldest_unacked_message_age" {
|
||||
count = var.oldest_unacked_message_age_enabled == "true" ? 1 : 0
|
||||
name = "${var.prefix_slug == "" ? "" : "[${var.prefix_slug}]"}[${var.environment}] Pub/Sub Subscription Oldest unacknowledged message {{#is_alert}}{{{comparator}}} {{threshold}}s ({{value}}s){{/is_alert}}{{#is_warning}}{{{comparator}}} {{warn_threshold}}s ({{value}}s){{/is_warning}}"
|
||||
name = "${var.prefix_slug == "" ? "" : "[${var.prefix_slug}]"}[${var.environment}] Pub/Sub Subscription oldest unacknowledged message {{#is_alert}}{{{comparator}}} {{threshold}}s ({{value}}s){{/is_alert}}{{#is_warning}}{{{comparator}}} {{warn_threshold}}s ({{value}}s){{/is_warning}}"
|
||||
message = coalesce(var.oldest_unacked_message_age_message, var.message)
|
||||
type = "query alert"
|
||||
|
||||
@ -48,7 +48,7 @@ EOQ
|
||||
#
|
||||
resource "datadog_monitor" "subscription_push_latency" {
|
||||
count = var.subscription_push_latency_enabled == "true" ? 1 : 0
|
||||
name = "${var.prefix_slug == "" ? "" : "[${var.prefix_slug}]"}[${var.environment}] Pub/Sub Subscription Latency on push endpoint {{#is_alert}}{{{comparator}}} {{threshold}}s ({{value}}s){{/is_alert}}{{#is_warning}}{{{comparator}}} {{warn_threshold}}s ({{value}}s){{/is_warning}}"
|
||||
name = "${var.prefix_slug == "" ? "" : "[${var.prefix_slug}]"}[${var.environment}] Pub/Sub Subscription latency on push endpoint {{#is_alert}}{{{comparator}}} {{threshold}}s ({{value}}s){{/is_alert}}{{#is_warning}}{{{comparator}}} {{warn_threshold}}s ({{value}}s){{/is_warning}}"
|
||||
message = coalesce(var.subscription_push_latency_message, var.message)
|
||||
type = "query alert"
|
||||
|
||||
@ -85,7 +85,7 @@ EOQ
|
||||
#
|
||||
resource "datadog_monitor" "subscription_push_latency_anomaly" {
|
||||
count = var.subscription_push_latency_anomaly_enabled == "true" ? 1 : 0
|
||||
name = "${var.prefix_slug == "" ? "" : "[${var.prefix_slug}]"}[${var.environment}] Pub/Sub Subscription Latency on push endpoint changed abnormally {{#is_alert}}{{{comparator}}} {{threshold}} ({{value}}){{/is_alert}}{{#is_warning}}{{{comparator}}} {{warn_threshold}} ({{value}}){{/is_warning}}"
|
||||
name = "${var.prefix_slug == "" ? "" : "[${var.prefix_slug}]"}[${var.environment}] Pub/Sub Subscription latency on push endpoint changed abnormally {{#is_alert}}{{{comparator}}} {{threshold}} ({{value}}){{/is_alert}}{{#is_warning}}{{{comparator}}} {{warn_threshold}} ({{value}}){{/is_warning}}"
|
||||
message = coalesce(var.subscription_push_latency_anomaly_message, var.message)
|
||||
type = "query alert"
|
||||
|
||||
|
||||
@ -16,9 +16,9 @@ module "datadog-monitors-cloud-gcp-pubsub-topic" {
|
||||
|
||||
Creates DataDog monitors with the following checks:
|
||||
|
||||
- GCP Pub/Sub Topic ratio of sending messages with result unavailable
|
||||
- GCP Pub/Sub Topic sending messages operations
|
||||
- GCP Pub/Sub Topic sending messages with result unavailable
|
||||
- Pub/Sub Topic ratio of sending messages with result unavailable
|
||||
- Pub/Sub Topic sending messages operations
|
||||
- Pub/Sub Topic sending messages with result unavailable (disabled by default)
|
||||
|
||||
## Inputs
|
||||
|
||||
@ -36,7 +36,7 @@ Creates DataDog monitors with the following checks:
|
||||
| sending\_operations\_count\_threshold\_critical | Critical threshold for the number of sending operations. | string | `"0"` | no |
|
||||
| sending\_operations\_count\_time\_aggregator | Timeframe for the GCP Pub/Sub Sending Operations Count monitor | string | `"sum"` | no |
|
||||
| sending\_operations\_count\_timeframe | Timeframe for the GCP Pub/Sub Sending Operations Count monitor | string | `"last_30m"` | no |
|
||||
| unavailable\_sending\_operations\_count\_enabled | Flag to enable GCP Pub/Sub Unavailable Sending Operations Count monitor | string | `"true"` | no |
|
||||
| unavailable\_sending\_operations\_count\_enabled | Flag to enable GCP Pub/Sub Unavailable Sending Operations Count monitor | string | `"false"` | no |
|
||||
| unavailable\_sending\_operations\_count\_extra\_tags | Extra tags for GCP Pub/Sub Unavailable Sending Operations Count monitor | list(string) | `[]` | no |
|
||||
| unavailable\_sending\_operations\_count\_message | Custom message for the GCP Pub/Sub Unavailable Sending Operations Count monitor | string | `""` | no |
|
||||
| unavailable\_sending\_operations\_count\_threshold\_critical | Critical threshold for the number of unavailable sending operations | string | `"4"` | no |
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user