To install clickhouse-exporter you need.
helm repo add zifter https://zifter.github.io/helm-charts/
Be aware, prometheus CRD must be installed before installing this chart.
Install chart with necessary clickhouse servers to specific namespace, where prometheus-operator will be able to discover rules, service monitor and etc:
helm install clickhouse-exporter zifter/clickhouse-exporter --namespace monitoring -f values-prod.yaml
where values-prod.yaml is:
# Clickhouse clusters to export metrics
clickhouse:
- name: cluster-name
user: user
password: pass
hosts:
- clickhouse-host-1
- clickhouse-host-2
- clickhouse-host-3