In this article, we will share a script that monitors ClickHouse metrics.
You will get an output of
- Query execution time
- Read operations
- Written data size
- Memory usage
- CPU usage
First download file
git clone https://github.com/cansayin/Monitoring-ClickHouse-Metrics
Edit the following rows with your ClickHouse Server’s information
conn = clickhouse_driver.connect( host='localhost', port=9000, user='default', password='', database='default' )
Then run the file
python monitoring_clickhouse.py or python3 monitoring_clickhouse.py