Skip to main content
The ClickHouse Integration allows you to effortlessly ingest and monitor your column-oriented data. This integration is useful for identifying system-wide usage patterns, performance bottlenecks in your ClickHouse clusters, and analyzing high-volume SQL query performance in real-time. This integration works by directing your ClickHouse data to a Prometheus endpoint that asynchronously ingests and redirects ClickHouse metrics and events to Middleware.

Prerequisites

Middleware Host Agent (MW Agent) must be installed on your local machine. To install the MW Agent, see our Installation Guide.

Setup

Step 1: Update ClickHouse Configuration

Add the following lines to your ClickHouse configuration (/etc/clickhouse-server/config.xml) to expose metrics on port 9126:
XML

Step 2: Navigate to ClickHouse Integration

Login to your Middleware account, navigate to the ClickHouse integration, and connect ClickHouse

Step 3: Connect ClickHouse Instance

To access ClickHouse metrics, choose a host to connect to your ClickHouse instance

Step 4: Configure ClickHouse Instance

Configure your host to connect to the IP address and port that ClickHouse stores its metrics
The default port for your ClickHouse instance is 9126

Visualize Your Data

Default ClickHouse Dashboard

Quickly access your ClickHouse data with Middleware’s default ClickHouse dashboard. Navigate to the Dashboard Builder and select the ClickHouse - Metrics (Runtime) Dashboard

Create ClickHouse Widgets

Create your own widget from scratch. Navigate to the Dashboard Builder and select the dashboard you would like to create a widget in. Select Add New Widget and choose the ClickHouse data source.
Learn more about creating your own widgets and dashboards in the Dashboard Builder section.

Metrics Collected

Troubleshooting

If you do not see the Integrations Menu in Middlware, that means your account has not been granted Installation permissions. Contact your system administrator to add the Installation permission to your user role in Settings.

Next Steps

Need assistance or want to learn more about Middleware? Contact us at support[at]middleware.io.