> ## Documentation Index
> Fetch the complete documentation index at: https://clickhouse.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

> Connect Middleware with ClickHouse to monitor and analyze ClickHouse metrics and logs.

# Connecting Middleware to ClickHouse

export const PartnerBadge = () => {
  return <div className="PartnerBadge">
            <div className="PartnerBadgeIcon">
                <svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
                    <polyline points="12.5 9.5 10 12 6 11 2.5 8.5" stroke="currentColor" strokeLinecap="round" strokeLinejoin="round" strokeWidth="1" />
                    <polyline points="4.54 4.41 8 3.5 11.46 4.41" stroke="currentColor" strokeLinecap="round" strokeLinejoin="round" strokeWidth="1" />
                    <path d="M2.15,3.78 L0.55,6.95 A0.5,0.5 0,0,0 0.77,7.62 L2.5,8.5 L4.54,4.41 L2.82,3.55 A0.5,0.5 0,0,0 2.15,3.78 Z" stroke="currentColor" strokeLinecap="round" strokeLinejoin="round" strokeWidth="1" />
                    <path d="M13.5,8.5 L15.23,7.62 A0.5,0.5 0,0,0 15.45,6.95 L13.85,3.78 A0.5,0.5 0,0,0 13.18,3.55 L11.46,4.41 Z" stroke="currentColor" strokeLinecap="round" strokeLinejoin="round" strokeWidth="1" />
                    <path d="M11.5,4.5 L9,4.5 L6.15,7.27 A0.5,0.5 0,0,0 6.24,8.05 C7.33,8.74 8.81,8.72 10,7.5 L12.5,9.5 L13.5,8.5" stroke="currentColor" strokeLinecap="round" strokeLinejoin="round" strokeWidth="1" />
                    <polyline points="7.75 13.5 5.15 12.85 3.5 11.67" stroke="currentColor" strokeLinecap="round" strokeLinejoin="round" strokeWidth="1" />
                </svg>
            </div>
            Partner Integration
        </div>;
};

<PartnerBadge />

[Middleware](https://middleware.io/) is a cloud observability platform for monitoring infrastructure, logs, and application performance.

You can connect ClickHouse with Middleware to collect and visualize database telemetry as part of your broader monitoring workflows.

<h2 id="prerequisites">
  Prerequisites
</h2>

* A running ClickHouse service (Cloud or self-managed)
* Access to your ClickHouse host, port, username, and password
* A Middleware account

<h2 id="connect-clickhouse-in-middleware">
  Connect ClickHouse in Middleware
</h2>

1. Sign in to your Middleware account.
2. Go to **Integrations** and search for **ClickHouse**.
3. Choose the ClickHouse integration and enter your connection details:
   * Host
   * Port
   * Database
   * Username
   * Password
4. Save the integration and run a connection test.

<h2 id="verify-data-collection">
  Verify data collection
</h2>

After setup, confirm that ClickHouse metrics and/or logs are visible in your Middleware dashboards.

If connection validation fails, verify that:

* ClickHouse accepts inbound connections from Middleware
* SSL/TLS settings match your ClickHouse endpoint
* Credentials and database permissions are correct

<h2 id="additional-resources">
  Additional resources
</h2>

* [Middleware website](https://middleware.io/)
