> ## Documentation Index
> Fetch the complete documentation index at: https://clickhouse.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Настройки сервера graphite_*

> Настройки сервера ClickHouse в автоматически созданной группе graphite_*.

Эти настройки задают конфигурацию сервера ClickHouse и автоматически сгенерированы из исходного кода ClickHouse.

## graphite

Отправка данных в [Graphite](https://github.com/graphite-project).

Настройки:

* `host` – Сервер Graphite.
* `port` – Порт сервера Graphite.
* `interval` – Интервал отправки в секундах.
* `timeout` – Тайм-аут отправки данных в секундах.
* `root_path` – Префикс для ключей.
* `metrics` – Отправка данных из таблицы [system.metrics](https://clickhouse.com/docs/ru/reference/system-tables/metrics.md).
* `events` – Отправка дельт данных, накопленных за указанный период времени, из таблицы [system.events](https://clickhouse.com/docs/ru/reference/system-tables/events.md).
* `events_cumulative` – Отправка накопленных данных из таблицы [system.events](https://clickhouse.com/docs/ru/reference/system-tables/events.md).
* `asynchronous_metrics` – Отправка данных из таблицы [system.asynchronous\_metrics](https://clickhouse.com/docs/ru/reference/system-tables/asynchronous_metrics.md).

Можно настроить несколько секций `<graphite>`. Например, это удобно для отправки разных данных с разными интервалами.

**Пример**

```xml theme={null}
<graphite>
    <host>localhost</host>
    <port>42000</port>
    <timeout>0.1</timeout>
    <interval>60</interval>
    <root_path>one_min</root_path>
    <metrics>true</metrics>
    <events>true</events>
    <events_cumulative>false</events_cumulative>
    <asynchronous_metrics>true</asynchronous_metrics>
</graphite>
```

## graphite\_rollup

Настройки прореживания данных в Graphite.

Подробнее см. в [GraphiteMergeTree](https://clickhouse.com/docs/ru/reference/engines/table-engines/mergetree-family/graphitemergetree.md).

**Пример**

```xml theme={null}
<graphite_rollup_example>
    <default>
        <function>max</function>
        <retention>
            <age>0</age>
            <precision>60</precision>
        </retention>
        <retention>
            <age>3600</age>
            <precision>300</precision>
        </retention>
        <retention>
            <age>86400</age>
            <precision>3600</precision>
        </retention>
    </default>
</graphite_rollup_example>
```
