Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

README.md

Requirements

No requirements.

Providers

Name Version
google n/a

Modules

No modules.

Resources

Name Type
google_logging_metric.cloud-run-failed-req resource
google_logging_metric.cloud-run-scaling-failure resource
google_logging_metric.cloudrun_timeout resource
google_logging_metric.dockerhub_ratelimit resource
google_logging_metric.github_ratelimit resource
google_logging_metric.r2_same_ratelimit resource
google_logging_metric.violation_metric resource
google_monitoring_alert_policy.bad-rollout resource
google_monitoring_alert_policy.cloud-run-failed-req resource
google_monitoring_alert_policy.cloud-run-scaling-failure resource
google_monitoring_alert_policy.cloudrun_timeout resource
google_monitoring_alert_policy.fatal resource
google_monitoring_alert_policy.grpc_error_rate resource
google_monitoring_alert_policy.grpc_service_failure_rate resource
google_monitoring_alert_policy.http_error_rate resource
google_monitoring_alert_policy.nonzero-exitcode-job resource
google_monitoring_alert_policy.nonzero-exitcode-svc resource
google_monitoring_alert_policy.oom resource
google_monitoring_alert_policy.panic resource
google_monitoring_alert_policy.panic-stacktrace resource
google_monitoring_alert_policy.pinned resource
google_monitoring_alert_policy.pubsub_dead_letter_queue_messages resource
google_monitoring_alert_policy.service_503_failure_rate_non_eventing resource
google_monitoring_alert_policy.service_failure_rate_eventing resource
google_monitoring_alert_policy.service_failure_rate_non_eventing resource
google_monitoring_alert_policy.signal resource
google_monitoring_alert_policy.workqueue_high_retry resource

Inputs

Name Description Type Default Required
dlq_alert_duration How long the dead-letter queue message count must stay above the threshold before the alert fires (e.g. '0s', '600s'). string "0s" no
dlq_alert_threshold Number of dead-letter queue messages above which the alert fires. number 1 no
dlq_filter additional filter to apply to dlq alert policy string "" no
enable_high_retry Whether to enable the workqueue high retry alert bool false no
enable_scaling_alerts Whether to enable scaling alerts.
When logs appear with
"The request was aborted because there was no available instance." or
"The request failed because either the HTTP response was malformed or connection to the instance had an error."
bool false no
exitcode_filter additional filter to apply to exitcode alert policy string "" no
failed_req_filter additional filter to apply to failed request alert policy string "" no
failure_rate_duration duration for condition to be active before alerting number 120 no
failure_rate_exclude_services List of service names to exclude from the 5xx failure rate alert list(string) [] no
failure_rate_ratio_threshold ratio threshold to alert for cloud run server failure rate. number 0.2 no
global_only_alerts only enable global alerts. when true, only create alerts that are global. bool false no
grpc_error_threshold threshold for grpc error. number 0.25 no
grpc_failure_rate_exclude_services List of service names to exclude from non-grpc failure rate alert list(string) [] no
grpc_non_error_codes List of grpc codes to not counted as error, case-sensitive. list(string)
[
"OK",
"Aborted",
"AlreadyExists",
"Canceled",
"NotFound"
]
no
http_error_exclude_services List of service names to exclude from the http error rate alert. list(string) [] no
http_error_method_status_exclusions Map of service names to method/status exclusions. Each entry excludes the service from the main http error condition and generates replacement conditions that exclude the specified method+code combination(s). Set code for a single status code or codes for several; exactly one of the two must be set.
map(object({
method = string
code = optional(string)
codes = optional(list(string), [])
}))
{} no
http_error_threshold threshold for http error. number 0.25 no
job_exitcode_filter additional filter to apply to job exitcode alert policy string "" no
notification_channels List of notification channels to alert. list(string) [] no
notification_channels_email Email notification channel. list(string) [] no
notification_channels_pager Incident.io notification channel. list(string) [] no
notification_channels_pubsub Pubsub notification channel. list(string) [] no
notification_channels_slack Slack notification channel. list(string) [] no
oom_filter additional filter to apply to oom alert policy string "" no
panic_filter additional filter to apply to panic alert policy string "" no
product Product label to apply to the service. string "unknown" no
project_id n/a string n/a yes
scaling_issue_filter additional filter to apply to scaling issue alert policy string "" no
signal_filter additional filter to apply to signal alert policy string "" no
team Team label to apply to resources (replaces deprecated 'squad'). string n/a yes
timeout_filter additional filter to apply to timeout alert policy string "" no

Outputs

No outputs.