Creating a ClickHouse connection
Learn how to create a ClickHouse connection for accessing ClickHouse databases.
Prerequisites
Section titled “Prerequisites”- Access to a ClickHouse server with HTTP(S) port enabled
- Database credentials (username and password)
global_create_connectionpermission (Global Admin role)
Step 0: Open form
Section titled “Step 0: Open form”Navigate to Connections → New.
Step 1: Target
Section titled “Step 1: Target”Select ClickHouse as the connection kind and fill in the connection parameters:
Basic parameters:
- Host – ClickHouse server host (e.g.,
localhostorclickhouse.prod.com) - Port – HTTP(S) port
- Default:
8123for HTTP - Default:
8443for HTTPS - Note: Native protocol port (9000) is no longer supported
- Default:
- User – Username for authentication (defaults to
default) - Password – Password for authentication
HTTPS/TLS configuration:
- HTTPS enabled – Toggle to use HTTPS connection instead of HTTP
- Advanced setup – Toggle to show additional TLS options:
- Verify – Whether to validate SSL certificates (recommended for production)
- CA certificate – CA certificate content for certificate verification
- Client certificate – Client certificate content for mutual TLS authentication
- Client certificate key – Client certificate private key content
- Server host name – SNI hostname for SSL handshake (useful when connecting through SSH tunnels)
- TLS mode – TLS configuration mode
Step 2: Naming
Section titled “Step 2: Naming”- Name – Connection name (e.g., “Production ClickHouse”, “Staging ClickHouse”)
- Description – Optional description explaining the connection’s purpose or environment
Step 3: Review & Create
Section titled “Step 3: Review & Create”Review your configuration and click “Create” to save the connection.
Best practices
Section titled “Best practices”- Always enable HTTPS for production connections
- Verify certificates (
Verify: True) in production - Test connection before saving to catch configuration errors early
- Use descriptive names indicating environment (e.g., “Production ClickHouse”)
- Document purpose in description field for team clarity
Security recommendations
Section titled “Security recommendations”- Use separate connections for different environments
- Consider using client certificates (mutual TLS) for enhanced security
- Use HTTPS for all production connections
Troubleshooting
Section titled “Troubleshooting”Connection test fails:
- Verify host and port are correct
- Ensure ClickHouse HTTP interface is enabled
- Check firewall rules allow access to HTTP(S) port
- Verify credentials are correct
- For HTTPS connections, check certificate content
Native protocol error:
- Telescope no longer supports native protocol (port 9000)
- Use HTTP port 8123 or HTTPS port 8443 instead
Related documentation
Section titled “Related documentation”- ClickHouse connection concept – Technical details
- Creating a ClickHouse source – Next step after connection
- Connection permissions – Managing access