/graphite-clickhouse-tldr

Preconfigured graphite-web with ClickHouse backend

Primary LanguageTSQL

Quick Start

Clone this repo first. You'll need local files:

git clone https://github.com/lomik/graphite-clickhouse-tldr
cd graphite-clickhouse-tldr

Docker-Compose

cd compose
docker-compose up

Open http://127.0.0.1/ in browser

Mapped Ports

Host Container Service
80 80 nginx
2003 2003 carbon receiver - plaintext
2004 2004 carbon receiver - pickle
2006 2006 carbon receiver - prometheus remote write

Kubernetes

This install assumes you can install the clickhouse-operator in the kube-system namespace. See https://github.com/Altinity/clickhouse-operator/blob/master/docs/quick_start.md#clickhouse-operator-installation

Setup

cd k8s
./ch-operator-install.sh
sleep 10 #wait for operator
kubectl apply -f stats-conf.yaml #note, you may need to tweak

Running

kubectl apply -f ch-stats.yaml
sleep 10 #you should watch for clickhouse to finish coming up:
watch kubectl get pods # ctrl-c out when the pods are ready
kubectl apply -f services.yaml
watch kubectl get pods # ctrl-c out when services are online
kubectl port-forward service/stat-web 9000:80

Open http://127.0.0.1:9000/ in your browser