> For the complete documentation index, see [llms.txt](https://docs.replex.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.replex.io/concepts/aggregator.md).

# Aggregator

**Environment Variables**

These are the environment variables used by the application:

|    | Variable                            | Required | Default                    | Description                             |
| -- | ----------------------------------- | -------- | -------------------------- | --------------------------------------- |
| 1  | POSTGRES\_USER                      | Yes      |                            |                                         |
| 2  | POSTGRES\_PASSWORD                  | Yes      |                            |                                         |
| 3  | POSTGRES\_DB                        | Yes      |                            |                                         |
| 4  | POSTGRES\_HOST                      | Yes      |                            |                                         |
| 5  | POSTGRES\_PORT                      | No       | 5432                       |                                         |
| 6  | POSTGRES\_SSL\_MODE                 | No       | verify-full                |                                         |
| 7  | CRON\_INTERVAL\_MINUTES             | No       | 30                         | Metrics aggregation interval in minutes |
| 8  | LOG\_LEVEL                          | No       | 3                          |                                         |
| 9  | METRICS\_RETENTION\_THRESHOLD\_DAYS | No       | 7                          | Days to keep raw metrics                |
| 10 | SERVER\_HOST                        | No       | <https://replex.replex.io> |                                         |
