graphite 서버 설정
graphite 서버 설정
이 페이지에서는 Graphite로 데이터를 보내기 위한 graphite 설정과 Graphite의 데이터를 얇게 만드는 graphite_rollup 설정을 설명할게요.
출처: 문서
본문
이 설정들은 ClickHouse 서버를 구성하며, ClickHouse 소스에서 자동으로 생성돼요.
graphite
Graphite로 데이터를 보내는 설정이에요.
설정:
host– Graphite 서버예요.port– Graphite 서버의 포트예요.interval– 전송 주기(초)예요.timeout– 데이터 전송 타임아웃(초)이에요.root_path– 키의 접두사예요.metrics– system.metrics 테이블의 데이터를 보내요.events– system.events 테이블에서 시간 기간 동안 누적된 델타 데이터를 보내요.events_cumulative– system.events 테이블의 누적 데이터를 보내요.asynchronous_metrics– system.asynchronous_metrics 테이블의 데이터를 보내요.
<graphite> 절을 여러 개 구성할 수 있어요. 예를 들어 서로 다른 데이터를 서로 다른 주기로 보내는 데 사용할 수 있어요.
예시
<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용 데이터를 얇게 만드는(thinning) 설정이에요. 자세한 내용은 GraphiteMergeTree를 참고하세요.
예시
<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>