Add graphite config to tests.

This commit is contained in:
Nikolai Kochetov 2020-04-14 20:12:43 +03:00
parent fee4717762
commit f5339e7c5e
2 changed files with 29 additions and 0 deletions

View File

@ -70,6 +70,7 @@ CMD dpkg -i package_folder/clickhouse-common-static_*.deb; \
ln -s /usr/share/clickhouse-test/config/disks.xml /etc/clickhouse-server/config.d/; \
ln -s /usr/share/clickhouse-test/config/secure_ports.xml /etc/clickhouse-server/config.d/; \
ln -s /usr/share/clickhouse-test/config/clusters.xml /etc/clickhouse-server/config.d/; \
ln -s /usr/share/clickhouse-test/config/graphite.xml /etc/clickhouse-server/config.d/; \
ln -s /usr/share/clickhouse-test/config/server.key /etc/clickhouse-server/; \
ln -s /usr/share/clickhouse-test/config/server.crt /etc/clickhouse-server/; \
ln -s /usr/share/clickhouse-test/config/dhparam.pem /etc/clickhouse-server/; \

28
tests/config/graphite.xml Normal file
View File

@ -0,0 +1,28 @@
<yandex>
<graphite_rollup>
<version_column_name>Version</version_column_name>
<pattern>
<regexp>sum</regexp>
<function>sum</function>
<retention>
<age>0</age>
<precision>600</precision>
</retention>
<retention>
<age>172800</age> <!-- 2 days -->
<precision>6000</precision>
</retention>
</pattern>
<default>
<function>max</function>
<retention>
<age>0</age>
<precision>600</precision>
</retention>
<retention>
<age>172800</age>
<precision>6000</precision>
</retention>
</default>
</graphite_rollup>
</yandex>