429a94332e
- Introduced a new disk exporter module to monitor disk health using SMART data. - Updated `apps.tf` to include the disk exporter module with necessary parameters. - Added local variables for smartctl version and checksum in `config.tf`. - Enhanced `alertmanager.yml` to handle DiskUnhealthy alerts with specific grouping and dispatch settings. - Created new Prometheus rules for monitoring disk health, including alerts for unhealthy disks. - Updated Prometheus configuration to scrape metrics from the new disk exporter. - Enhanced Telegram notification template to include resolved alerts and improved formatting. - Updated the auth-exporter module to specify the Python image tag correctly. - Created the disk-exporter module with Kubernetes resources, including deployment, service account, and config map. - Added necessary Python scripts and requirements for the disk exporter functionality.
24 lines
816 B
YAML
24 lines
816 B
YAML
route:
|
|
group_by: ["alertname"]
|
|
receiver: "default"
|
|
group_wait: 10s
|
|
group_interval: 10m
|
|
repeat_interval: 1h
|
|
routes:
|
|
- receiver: "telegram"
|
|
matchers:
|
|
- 'alertname="UserLoggedIn"'
|
|
group_by: ["alertname", "username"] # add username to avoid batching different users
|
|
group_wait: 0s # immediate dispatch
|
|
group_interval: 2m # short regroup window
|
|
repeat_interval: 30m # optional: adjust reminder cadence
|
|
continue: false
|
|
- receiver: "telegram"
|
|
matchers:
|
|
- 'alertname="DiskUnhealthy"'
|
|
group_by: ["alertname", "device"] # add device to avoid batching different disks
|
|
group_wait: 0s # immediate dispatch
|
|
group_interval: 2m # short regroup window
|
|
repeat_interval: 30m # optional: adjust reminder cadence
|
|
continue: false
|