1. Images & Charts
  2. clickhouse-metrics-exporter
clickhouse-metrics-exporter

clickhouse-metrics-exporter

Infra
Updated on July 27

ClickHouse-Metrics-Exporter Overview

Secure your stack with a hardened ClickHouse-Metrics-Exporter image freshly-built by Minimus. Minimus images always include the most up-to-date package version for all packages and dependencies contained in the image.


ClickHouse Metrics Exporter collects performance and operational metrics from ClickHouse servers and exposes them in a Prometheus-compatible format for monitoring.


Try It Out

Prerequisites

  • A running Kubernetes cluster (v1.21 or higher is recommended)
  • Helm v3.8 or higher for OCI support (Installation instructions)
  • kubectl installed and configured

Step 1: Start Cluster

If you have a cluster to work with, skip this step. Otherwise, start a Minikube cluster. Deployment instructions

Step 2: Add Repository to your Local Client

Add the Helm chart to your local Helm client.

helm repo add clickhouse https://helm.altinity.com
helm repo update

Step 3: Create Namespace

Create a namespace:

kubectl create ns clickhouse

Step 4: Save Files Locally

Download the ClickHouse values file from the Minimus examples repo:

wget -O clickhouse.yaml https://raw.githubusercontent.com/minimusio/examples/main/clickhouse/clickhouse.yaml

The chart clickhouse/clickhouse installs the Altinity Operator as a subchart. If your cluster already has a cluster-wide operator (see the ClickHouse-Operator guide), edit the clickhouse.yaml file before you deploy to set operator.enabled: false.

Step 5: Deploy the Helm Chart

Deploy the Helm chart with the values file:

helm upgrade --install clickhouse clickhouse/clickhouse -f clickhouse.yaml -n clickhouse

Wait a few minutes and check that the Pods are up and running:

kubectl -n clickhouse get po

Confirm that Minimus images were deployed:

kubectl -n clickhouse describe pods | grep Image:

Step 6: Verify ClickHouse

Port-forward the ClickHouse HTTP interface to your local machine:

kubectl -n clickhouse port-forward service/clickhouse-clickhouse 8123:8123

Keep the terminal window open and visit http://localhost:8123/ in your browser. You should see the ClickHouse dashboard.

Clean Up

Uninstall the chart and clean up:

helm uninstall clickhouse -n clickhouse
kubectl delete ns clickhouse

Technical Considerations

The ClickHouse-Metrics-Exporter image provided by Minimus is a slim, security-hardened alternative to the public image from Docker Hub. The images are largely interchangeable, with a few differences as noted below.

ClickHouse-Metrics-Exporter built by Minimus:

  1. Runs as non-root by default as user 65534.
  2. Drill down on the version specification tab to see the default user, listening ports, entrypoint, volumes, environment variables, etc.

The Payoff

A hardened, minimal image that will remain more secure for the long run and accrue vulnerabilities at a slower rate.


Terms & Info

Trademark

This catalog is published by Minimus. All product names, logos, and marks, other than those belonging to Minimus, shown are owned by their respective rights holders and appear here only to identify the open source software each image contains. Minimus claims no ownership of those marks and implies no affiliation with, endorsement by, certification by, or sponsorship by any rights holder.

Disclaimer

Images are provided "as-is" without warranty of any kind. "Hardened" refers to the security configuration applied at the time of build and does not constitute a guarantee of ongoing security or absence of vulnerabilities. The free tier is provided without support, SLA, or guaranteed patching timelines. Security updates may be applied to paid subscriptions before or instead of free tier images. By pulling or using any image you agree to our Terms of Use.