---
title: Setting up ClickHouse
description: Setting up Database Monitoring on a ClickHouse database
breadcrumbs: Docs > Database Monitoring > Setting up ClickHouse
---

# Setting up ClickHouse

{% alert level="info" %}
This feature is in preview and requires Datadog Agent v7.78 or later. Customers who participate in the Datadog Database Monitoring for ClickHouse preview **will not be charged** for usage incurred during the preview period. Contact your Datadog representative or support to enable this feature.
{% /alert %}

### ClickHouse versions supported{% #clickhouse-versions-supported %}

| Self-hosted     | ClickHouse Cloud |
| --------------- | ---------------- |
| ClickHouse 23.x | yes              | yes |
| ClickHouse 24.x | yes              | yes |
| ClickHouse 25.x | yes              | yes |

### Setup instructions by hosting type{% #setup-instructions-by-hosting-type %}

To learn how to set up Database Monitoring on a ClickHouse database, select your hosting type:

- [Self-hosted](https://docs.datadoghq.com/database_monitoring/setup_clickhouse/selfhosted)
- [ClickHouse Cloud](https://docs.datadoghq.com/database_monitoring/setup_clickhouse/cloud)
