> ## Documentation Index
> Fetch the complete documentation index at: https://private-7c7dfe99-postgresql-tls-support.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Community and partner integrations

> Third-party monitoring integrations and the Billing & Usage API for ClickHouse Cloud

export const PrivatePreviewBadge = () => {
  return <div className="privatePreviewBadge">
            <div className="privatePreviewIcon">
            <svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
                <path d="M5.33301 6.66667V4.66667V4.66667C5.33301 3.194 6.52701 2 7.99967 2V2C9.47234 2 10.6663 3.194 10.6663 4.66667V4.66667V6.66667" stroke="currentColor" strokeLinecap="round" strokeLinejoin="round" />
                <path d="M8.00033 9.33337V11.3334" stroke="currentColor" strokeLinecap="round" strokeLinejoin="round" />
                <path fillRule="evenodd" clipRule="evenodd" d="M11.333 14H4.66634C3.92967 14 3.33301 13.4033 3.33301 12.6666V7.99996C3.33301 7.26329 3.92967 6.66663 4.66634 6.66663H11.333C12.0697 6.66663 12.6663 7.26329 12.6663 7.99996V12.6666C12.6663 13.4033 12.0697 14 11.333 14Z" stroke="currentColor" strokeLinecap="round" strokeLinejoin="round" />
            </svg>
        </div>
            {'Private preview in ClickHouse Cloud'}
        </div>;
};

<h2 id="direct-datadog">
  Datadog integration
</h2>

To monitor your ClickHouse deployment in Datadog, ClickHouse offers several integrations, suited to different deployment modes. Each has its own tradeoffs, and some are owned by ClickHouse while others are owned by Datadog. Integrations are listed in recommended order.

| Integration                                                                                           | Docs                                                                                           | Deployment  | Signals                       |
| ----------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | ----------- | ----------------------------- |
| [ClickHouse Cloud Datadog API integration](#clickhouse-cloud-datadog-api-integration) *(recommended)* | [docs.datadoghq.com](https://docs.datadoghq.com/integrations/clickhouse-cloud/)                | Cloud       | Metrics                       |
| [ClickHouse Cloud Prometheus integration](#clickhouse-cloud-prometheus-integration)                   | [clickhouse.com/docs](/integrations/prometheus)                                                | Cloud       | Metrics                       |
| [ClickHouse Datadog Agent integration](#clickhouse-datadog-agent-integration)                         | [docs.datadoghq.com](https://docs.datadoghq.com/integrations/clickhouse/?tab=host)             | OSS / Cloud | Logs, Metrics                 |
| [ClickHouse Datadog DBM](#clickhouse-datadog-dbm)                                                     | [datadoghq.com](https://www.datadoghq.com/product-preview/database-monitoring-for-clickhouse/) | OSS / Cloud | Logs, Metrics, Query Insights |

<h3 id="clickhouse-cloud-datadog-api-integration">
  ClickHouse Cloud Datadog API integration
</h3>

The recommended way to serve service-level metrics from ClickHouse Cloud in Datadog.

You connect your Datadog account to ClickHouse Cloud through an OAuth handshake (**Connect Accounts** in the Datadog integration tile). ClickHouse Cloud then pushes service-level metrics to Datadog, rather than Datadog polling the service directly.

* **Cloud only** — not suitable for OSS ClickHouse
* Metrics are **not** treated as custom metrics by Datadog
* Does **not** prevent the service from idling
* Ships with a pre-configured set of dashboards and monitors

For onboarding steps, see [Datadog's ClickHouse Cloud integration guide](https://docs.datadoghq.com/integrations/clickhouse-cloud/).

<h3 id="clickhouse-cloud-prometheus-integration">
  ClickHouse Cloud Prometheus integration
</h3>

The most common and universal way to collect service-level and org-level telemetry from ClickHouse Cloud.

You configure the Datadog Agent with the [OpenMetrics integration](https://docs.datadoghq.com/integrations/openmetrics/) to periodically poll the ClickHouse Cloud API and collect metrics. See the [Prometheus integration page](/integrations/prometheus#integrating-with-datadog) for configuration details.

* **Cloud only** — not suitable for OSS ClickHouse
* Metrics are treated as **custom metrics** by Datadog
* Does **not** prevent the service from going idle

<h3 id="clickhouse-datadog-agent-integration">
  ClickHouse Datadog Agent integration
</h3>

The most common way to get data from OSS ClickHouse services into Datadog. It also works with ClickHouse Cloud, with some caveats.

The Datadog Agent periodically polls the ClickHouse instance and collects metrics and logs. This integration ships with a pre-configured set of dashboards.

**OSS ClickHouse:** logs and metrics fully supported.

**ClickHouse Cloud (partial support):**

* Metrics only — logs are not supported
* Requires `datadog-cluster-agent` instead of `datadog-agent`
* **Will prevent the service from going idle**

<h3 id="clickhouse-datadog-dbm">
  ClickHouse Datadog DBM
</h3>

Database Monitoring (DBM) for ClickHouse is developed and maintained by Datadog. It works by configuring the Datadog Agent to collect system tables data from the ClickHouse instance, providing query-level performance insights similar to what the ClickHouse Cloud Console provides natively. ClickHouse has no involvement in this integration — direct any issues to Datadog rather than ClickHouse.

* Metrics are free; you pay extra for logs and system tables data ingestion
* **OSS ClickHouse:** fully supported
* **ClickHouse Cloud (partial support):** requires `datadog-cluster-agent` instead of `datadog-agent`; **will prevent the service from going idle**

<h2 id="community-monitoring">
  Community monitoring solutions
</h2>

The ClickHouse community has developed comprehensive monitoring solutions that integrate with popular observability stacks. [ClickHouse Monitoring](https://github.com/duyet/clickhouse-monitoring) provides a complete monitoring setup with pre-built dashboards. This open source project offers a quick-start approach for teams looking to implement ClickHouse monitoring with established best practices and proven dashboard configurations.

<Note>
  Like other direct database monitoring approaches, this solution queries ClickHouse system tables directly, which prevents instances from idling and impacts cost optimization.
</Note>

<h2 id="billing-usage-api">
  Billing and Usage API
</h2>

The Billing & Usage API can be used to programmatically access your Cloud organization's billing and usage records. This is useful for building custom cost monitoring dashboards or integrating billing data into existing financial reporting workflows.

For full API reference, see the [Billing API documentation](/products/cloud/api-reference/billing/get-organization-usage-costs).
