|
1 | 1 |
|
2 | | -variable "project" { |
3 | | - type = string |
4 | | - default = "test-project" |
| 2 | +variable "project_id" { |
| 3 | + description = "The Google Cloud project ID where logging exclusions will be created" |
| 4 | + type = string |
5 | 5 | } |
6 | 6 |
|
7 | 7 | variable "notification_channels" { |
8 | | - type = list(string) |
9 | | - default = [] |
| 8 | + description = "List of notification channel IDs to notify when an alert is triggered" |
| 9 | + type = list(string) |
| 10 | + default = [] |
10 | 11 | } |
11 | 12 |
|
12 | 13 | variable "kyverno" { |
13 | | - description = "Configurazione completa del monitoraggio Kyverno" |
| 14 | + description = "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." |
14 | 15 | type = object({ |
15 | | - cluster_name = string |
16 | | - project_id = optional(string, null) |
17 | | - notification_channels = optional(list(string), []) |
18 | | - alert_documentation = optional(string, "Kyverno controllers produced ERROR logs in namespace kyverno.") |
19 | | - use_metric_threshold = optional(bool, true) |
20 | | - metric_threshold_count = optional(number, 2) |
21 | | - metric_lookback_minutes = optional(number, 1) |
22 | | - auto_close_seconds = optional(number, 3600) |
23 | | - enabled = optional(bool, true) |
24 | | - filter_extra = optional(string, "") |
25 | | - namespace = optional(string, "kyverno") |
| 16 | + cluster_name = string |
| 17 | + project_id = optional(string, null) |
| 18 | + notification_channels = optional(list(string), []) |
| 19 | + logmatch_notification_rate_limit = optional(string, "300s") |
| 20 | + alert_documentation = optional(string, null) |
| 21 | + use_metric_threshold = optional(bool, false) |
| 22 | + metric_threshold_count = optional(number, 2) |
| 23 | + metric_lookback_minutes = optional(number, 1) |
| 24 | + auto_close_seconds = optional(number, 3600) |
| 25 | + enabled = optional(bool, true) |
| 26 | + filter_extra = optional(string, "") |
| 27 | + namespace = optional(string, "kyverno") |
26 | 28 | }) |
27 | 29 | } |
0 commit comments