Skip to content

Commit 88fcbbe

Browse files
update
1 parent b783cb8 commit 88fcbbe

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

README.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ Supported services:
4040
| <a name="input_kyverno"></a> [kyverno](#input\_kyverno) | Configuration for Kyverno monitoring alerts. Allows customization of cluster name, project, notification channels, alert documentation, metric thresholds, auto-close timing, enablement, extra filters, and namespace. | <pre>object({<br/> enabled = optional(bool, true)<br/> cluster_name = string<br/> project_id = optional(string, null)<br/> notification_enabled = optional(bool, true)<br/> notification_channels = optional(list(string), [])<br/> # Rate limit for notifications, e.g. "300s" for 5 minutes, used only for log match alerts<br/> logmatch_notification_rate_limit = optional(string, "300s")<br/> alert_documentation = optional(string, null)<br/> auto_close_seconds = optional(number, 3600)<br/> filter_extra = optional(string, "")<br/> namespace = optional(string, "kyverno")<br/> })</pre> | n/a | yes |
4141
| <a name="input_notification_channels"></a> [notification\_channels](#input\_notification\_channels) | List of notification channel IDs to notify when an alert is triggered | `list(string)` | `[]` | no |
4242
| <a name="input_project_id"></a> [project\_id](#input\_project\_id) | The Google Cloud project ID where logging exclusions will be created | `string` | n/a | yes |
43+
| <a name="input_typesense"></a> [typesense](#input\_typesense) | Configuration for Typesense monitoring alerts. Supports uptime checks for HTTP endpoints and container-level alerts (pod restarts, OOM) in GKE. For container checks, 'app\_name' refers to the Kubernetes 'app' label on the containers. | <pre>object({<br/> enabled = optional(bool, false)<br/> project_id = optional(string, null)<br/> notification_enabled = optional(bool, true)<br/> notification_channels = optional(list(string), [])<br/><br/> # Uptime checks configuration<br/> uptime_checks_hosts = optional(map(object({<br/> host = string<br/> path = optional(string, "/readyz")<br/> })), {})<br/><br/> # Container checks configuration (GKE)<br/> container_checks = optional(object({<br/> cluster_name = string<br/> namespace = string<br/> app_name = string<br/> pod_restart = optional(object({<br/> threshold = optional(number, 1)<br/> alignment_period = optional(string, "180s")<br/> duration = optional(string, "0s")<br/> }), {})<br/> oom_killed = optional(object({<br/> notification_rate_limit = optional(string, "180s")<br/> auto_close_seconds = optional(number, 300)<br/> }), {})<br/> }), null)<br/> })</pre> | `{}` | no |
4344

4445
## Outputs
4546

@@ -58,9 +59,13 @@ Supported services:
5859
| [google_monitoring_alert_policy.cloud_sql_disk_utilization](https://registry.terraform.io/providers/hashicorp/google/latest/docs/resources/monitoring_alert_policy) | resource |
5960
| [google_monitoring_alert_policy.cloud_sql_memory_utilization](https://registry.terraform.io/providers/hashicorp/google/latest/docs/resources/monitoring_alert_policy) | resource |
6061
| [google_monitoring_alert_policy.kyverno_logmatch_alert](https://registry.terraform.io/providers/hashicorp/google/latest/docs/resources/monitoring_alert_policy) | resource |
62+
| [google_monitoring_alert_policy.typesense_oom_killed](https://registry.terraform.io/providers/hashicorp/google/latest/docs/resources/monitoring_alert_policy) | resource |
63+
| [google_monitoring_alert_policy.typesense_pod_restart](https://registry.terraform.io/providers/hashicorp/google/latest/docs/resources/monitoring_alert_policy) | resource |
6164

6265
## Modules
6366

64-
No modules.
67+
| Name | Source | Version |
68+
|------|--------|---------|
69+
| <a name="module_typesense_uptime_checks"></a> [typesense\_uptime\_checks](#module\_typesense\_uptime\_checks) | github.com/sparkfabrik/terraform-sparkfabrik-gcp-http-monitoring | 1.0.0 |
6570

6671
<!-- END_TF_DOCS -->

typesense.tf

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@ locals {
33
typesense_project = var.typesense.project_id != null ? var.typesense.project_id : var.project_id
44

55
typesense_notification_channels = var.typesense.notification_enabled ? (length(var.typesense.notification_channels) > 0 ? var.typesense.notification_channels : var.notification_channels) : []
6-
7-
typesense_container_checks_enabled = var.typesense.enabled && var.typesense.container_checks != null
86
}
97

108
module "typesense_uptime_checks" {

0 commit comments

Comments
 (0)