Documentation Index
Fetch the complete documentation index at: https://docs.trench.dev/llms.txt
Use this file to discover all available pages before exploring further.
Setting up Grafana with Trench
This guide will walk you through setting up Grafana with Trench to visualize your analytics data.Prerequisites
- Docker installed
- Trench running locally follow Self-host Quickstart
Setup Steps
Run Grafana Container
Run the following command to start Grafana. This will make Grafana available at http://localhost:3001 and connect it to your Trench installation.
Configure ClickHouse Data Source
- Go to Data Sources section and click on
Add data source. - Select
ClickHouseas the data source. - Configure the data source with these settings:
- Host:
clickhouse - Port:
8123 - Protocol:
http - Username:
user - Password:
password
- Host:

Setup Grafana Dashboard
You can import the pre-built dashboard using the JSON configuration provided. Download the JSON configuration and import it into Grafana.The Dashboard includes:
- Unique pageviews over time
- Time series visualization
- 6-hour time window by default
View the dashboard
New pageviews should be visible in the dashboard.

Next Steps
- Customize the dashboard based on your needs
- Add more panels for different metrics
- Set up alerts

