-
Notifications
You must be signed in to change notification settings - Fork 1
/
unusual_follower_fetch_time.tf
33 lines (29 loc) · 1.73 KB
/
unusual_follower_fetch_time.tf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
locals {
unusual_follower_fetch_time_filter = var.unusual_follower_fetch_time_filter_override != "" ? var.unusual_follower_fetch_time_filter_override : var.filter_str
unusual_follower_fetch_time_notification_channel = var.unusual_follower_fetch_time_alerting_enabled ? var.notification_channel : ""
}
module "unusual_follower_fetch_time" {
source = "kabisa/generic-monitor/datadog"
version = "1.0.0"
name = "Unusual Follower Fetch Time"
query = "avg(${var.unusual_follower_fetch_time_evaluation_period}):avg:kafka.request.fetch_follower.time.avg{${local.unusual_follower_fetch_time_filter}} > ${var.unusual_follower_fetch_time_critical}"
alert_message = "The TotalTimeMs metric family measures the total time taken to service a request (be it a produce, fetch-consumer, or fetch-follower request):"
recovery_message = ""
# monitor level vars
enabled = var.unusual_follower_fetch_time_enabled
alerting_enabled = var.unusual_follower_fetch_time_alerting_enabled
critical_threshold = var.unusual_follower_fetch_time_critical
warning_threshold = var.unusual_follower_fetch_time_warning
priority = min(var.unusual_follower_fetch_time_priority + var.priority_offset, 5)
docs = var.unusual_follower_fetch_time_docs
note = var.unusual_follower_fetch_time_note
require_full_window = var.unusual_follower_fetch_time_require_full_window
# module level vars
env = var.env
service = var.service
notification_channel = var.notification_channel
additional_tags = var.additional_tags
locked = var.locked
name_prefix = var.name_prefix
name_suffix = var.name_suffix
}