Skip to Content

ClickHouse

Connect Cardinal to ClickHouse to explore schemas and query your analytics database using natural language.

Overview

With the ClickHouse integration, the AI agent can:

  • Explore databases and tables — browse structure, columns, and engine types
  • Run analytical queries — answer questions about your data using natural language
  • Leverage columnar storage — take advantage of ClickHouse’s high-performance analytics engine

Capabilities

CapabilityEnabled
ExploreAlways
AgentAlways

Configuration

Settings

FieldRequiredDefaultDescription
HostYesClickHouse server hostname or IP (e.g., clickhouse.example.com)
PortYes9000Native protocol port (default 9000) or HTTP port (8123)
DatabaseYesDatabase name (e.g., default)
Use TLSNoOffEnable TLS encryption for the connection

Credentials

FieldRequiredDescription
UsernameYesClickHouse user (e.g., readonly)
PasswordNoUser password. Leave empty if no password is required

Prerequisites

  • Network access from Cardinal to your ClickHouse instance
  • A database user with read-only access (recommended for security)
  • TLS configured if connecting over the public internet

Setup

  1. Navigate to Settings > Integrations and click Add Integration
  2. Select ClickHouse
  3. Enter the Host, Port, and Database name
  4. Optionally enable Use TLS for encrypted connections
  5. Enter the Username and optionally the Password
  6. Click Test Connection to verify connectivity
  7. Click Save

What This Enables

Once configured, you can ask the AI agent questions like:

  • “What’s the event count by type for the last 24 hours?”
  • “Show me the slowest queries from the query log”
  • “List all tables in the analytics database”

Reach out to support@cardinalhq.io for support or to ask questions not answered in our documentation.

Last updated on