Skip to main content

Overview

OpenSRE queries ClickHouse system tables to surface query activity and system health — helping diagnose database performance issues during alert investigations. Uses the HTTP client (clickhouse_connect). All operations are read-only with result caps.

Prerequisites

  • ClickHouse 21.x or later
  • Network access from the OpenSRE environment to your ClickHouse instance
  • A user with read access to system tables

Setup

There is no dedicated opensre integrations setup clickhouse wizard today. Configure via environment variables or the persistent store, then verify.

Option 1: Environment variables

Option 2: Persistent store

Credentials

Creating a read-only user

Investigation tools

Tools require connection_verified after a successful verify.

Verify

Expected output:

Troubleshooting

Security

  • Create a dedicated read-only user with access only to system.* and the databases OpenSRE needs.
  • Use HTTPS (CLICKHOUSE_SECURE=true) in production.
  • Store credentials in .env or your secret manager — not in source control.