ClickHouse Integration
Connect ClickHouse to enable agents to run analytics queries during investigations.
Capabilities
| Capability | Description |
|---|---|
| Run Queries | Execute SQL queries |
| Analyze Data | Access analytics and metrics |
| Browse Tables | View available tables |
Setup
- Get Connection Details
You'll need:
- ClickHouse host URL
- Database name
- Username and password
- Add Integration in Autoheal
- Go to Integrations → ClickHouse
- Enter connection details
- Specify the database to query
- Test and Save
Click Test Connection then Save.
Security
Autoheal only sends one SELECT, WITH, SHOW, DESCRIBE, EXPLAIN or EXISTS statement at a time. It refuses anything else before it reaches ClickHouse, including functions that make ClickHouse read other hosts or files (url, s3, remote, file and similar).
warning
Use a read-only user for Autoheal. The integration should not have write access to your data.
Example Queries
What's the request count by status code for the last hour?
Show me the top 10 slowest endpoints