---
title: "Alert settings"
summary: "Settings for the alert evaluation loop."
description: "Whether the alert engine runs, how often it evaluates, and how long history is kept."
status: preview
generated: true
read_when:
  - "Alerts are evaluating too slowly, or not at all."
---

Every setting below is read once at startup and requires a restart to change.
Built-in defaults are overridden by nonempty environment values.
Unknown `FANOUT_` names fail startup; platform-injected service names are tolerated.
Vendor credentials and endpoints keep the vendor's documented names.

| Environment variable | Type | Default |
|---|---|---|
| `FANOUT_ALERTS_ENABLED` | boolean | `true` |
| `FANOUT_ALERTS_EVALUATION_INTERVAL` | duration | `30s` |
| `FANOUT_ALERTS_HISTORY_DAYS` | integer | `7` |

## Notes

### `FANOUT_ALERTS_ENABLED`

Runs the alert evaluation engine.

### `FANOUT_ALERTS_EVALUATION_INTERVAL`

Schedules alert evaluation; use a Go duration of at least 1s.

### `FANOUT_ALERTS_HISTORY_DAYS`

Sets alert history retention in days.