updated clickhouse state
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
5b15a39c59
commit
5939213a7f
@ -49,3 +49,12 @@ clickhouse-config-file-tls:
|
||||
- group: clickhouse
|
||||
- mode: 600
|
||||
- template: jinja
|
||||
|
||||
clickhouse-config-file-prometheus:
|
||||
file.managed:
|
||||
- name: /etc/clickhouse-server/config.d/prometheus.xml
|
||||
- source: salt://clickhouse/templates/prometheus.xml.j2
|
||||
- user: clickhouse
|
||||
- group: clickhouse
|
||||
- mode: 600
|
||||
- template: jinja
|
||||
|
10
states/clickhouse/templates/prometheus.xml.j2
Normal file
10
states/clickhouse/templates/prometheus.xml.j2
Normal file
@ -0,0 +1,10 @@
|
||||
{%- from "clickhouse/map.jinja" import clickhouse with context %}
|
||||
<clickhouse>
|
||||
<prometheus>
|
||||
<endpoint>/metrics</endpoint>
|
||||
<port>7555</port>
|
||||
<metrics>true</metrics>
|
||||
<events>true</events>
|
||||
<asynchronous_metrics>true</asynchronous_metrics>
|
||||
</prometheus>
|
||||
</clickhouse>
|
Loading…
Reference in New Issue
Block a user