Improve ClickHouse Keeper Grafana Dashboard #1872
Conversation
… fix-keeper-dashboard
Slach
left a comment
There was a problem hiding this comment.
thanks for contribution, really appreciated to sync metrics names
in our prometheus scraping config we use pod_name, not pod
please use following commands to check your dashboard changes
minikube delete
minikube start
kubectl create ns test
helm install -n test clickhouse-operator ./deploy/helm/clickhouse-operator/
NO_WAIT=1 bash -xe ./deploy/prometheus/create-prometheus.sh
NO_WAIT=1 bash -xe ./deploy/grafana/grafana-with-grafana-operator/install-grafana-operator.sh
NO_WAIT=1 bash -xe ./deploy/grafana/grafana-with-grafana-operator/install-grafana-with-operator.sh
kubectl apply -f ./docs/chk-examples/01-chi-simple-with-keeper.yaml
|
@Slach ah i did miss the relabel config ... ok with that it works, correct. However i think this is kind of |
Slach
left a comment
There was a problem hiding this comment.
too many changes which not related to dashboard improvements
thanks to adopt script to MacOS
But please don't break name conversion, look to initial prometheus scraping config and rollback to pod_name and container_name
… fix-keeper-dashboard Signed-off-by: Slach <bloodjazman@gmail.com> # Conflicts: # deploy/prometheus/prometheus-alert-rules-chkeeper.yaml
… fix-keeper-dashboard
|
@Slach i agree; I just added a fix for the dashboard to load the prometheus datasource correct; It works now with the relabel config you pointed me to. |
… fix-keeper-dashboard

Fix ClickHouse Keeper Grafana Dashboard
fix #1844
Problem
The ClickHouse Keeper dashboard was not working correctly due to:
pod_namevspod,container_namevscontainer)Changes
Label Fixes
pod_name→podin all queries and template variablespod, notpod_namecontainer_name="clickhouse-keeper"filters from all panel queriescontainer, notcontainer_name{{pod_name}}to{{pod}}across all panelsTemplate Variable Improvements
Before:
After:
Benefits: