-
-
Notifications
You must be signed in to change notification settings - Fork 69
Installation & Usage
Lorenzo Mangani edited this page Sep 22, 2021
·
28 revisions
This wiki page will help new users install and activate their clickhouse-powered cLoki
as a service
The following requirements must be in place before proceeding:
-
clickhouse-server
server w/ authentication -
nodejs
12.x or 14.x w/npm
installed
Install cloki
and pm2
using npm
# sudo npm install -g cloki pm2
Start cloki
with pm2
and connect using your clickhouse-server
instance details (ip/hostname and authentication)
cd $(dirname $(readlink -f `which cloki`)) && ENV_CLICKHOUSE_SERVER="localhost" ENV_CLICKHOUSE_AUTH="default:password" pm2 start cloki --name "cloki"
Check the status of your service
pm2 status cloki
No errors? Great! Save your service and enable it for startup
pm2 save
pm2 startup
Your cloki
instance should now be running, ready to write/read logs or access any clickhouse table for metrics
- Connect to Grafana using the Loki Datasource
- Insert logs using pastash
- Generate Timeseries from any table