diff --git a/clickhouse/README.md b/clickhouse/README.md index d5904502c12f8..63a90e5cec086 100644 --- a/clickhouse/README.md +++ b/clickhouse/README.md @@ -111,4 +111,4 @@ Need help? Contact [Datadog support][10]. [7]: https://docs.datadoghq.com/agent/guide/agent-commands/#agent-status-and-information [8]: https://github.com/DataDog/integrations-core/blob/master/clickhouse/metadata.csv [9]: https://github.com/DataDog/integrations-core/blob/master/clickhouse/assets/service_checks.json -[10]: https://docs.datadoghq.com/help/ +[10]: https://docs.datadoghq.com/help/ \ No newline at end of file diff --git a/clickhouse/changelog.d/21886.fixed b/clickhouse/changelog.d/21886.fixed new file mode 100644 index 0000000000000..ed7988864083a --- /dev/null +++ b/clickhouse/changelog.d/21886.fixed @@ -0,0 +1 @@ +Disable autogenerate session id diff --git a/clickhouse/datadog_checks/clickhouse/clickhouse.py b/clickhouse/datadog_checks/clickhouse/clickhouse.py index e263da55fb8f4..dbc6ace194799 100644 --- a/clickhouse/datadog_checks/clickhouse/clickhouse.py +++ b/clickhouse/datadog_checks/clickhouse/clickhouse.py @@ -120,6 +120,8 @@ def connect(self): compress=self._compression, ca_cert=self._tls_ca_cert, verify=self._verify, + # https://clickhouse.com/docs/integrations/language-clients/python/driver-api#multi-threaded-applications + autogenerate_session_id=False, # https://clickhouse.com/docs/integrations/python#settings-argument settings={}, ) diff --git a/clickhouse/tests/test_unit.py b/clickhouse/tests/test_unit.py index 0630026c6842f..33cf46ff2fb87 100644 --- a/clickhouse/tests/test_unit.py +++ b/clickhouse/tests/test_unit.py @@ -35,6 +35,7 @@ def test_config(instance): client_name='datadog-test-clickhouse', compress=False, settings={}, + autogenerate_session_id=False, )