From 33f7c831002d7d214a63196ed5ae4718c7104d47 Mon Sep 17 00:00:00 2001 From: Danylo Bereznenko Date: Mon, 29 Dec 2025 12:32:10 +0100 Subject: [PATCH] Enable QAN after 3.5.0 pmm --- .env.example | 1 + docker-compose.yaml | 2 ++ internal/test/deployment/container.go | 4 ++++ 3 files changed, 7 insertions(+) diff --git a/.env.example b/.env.example index 174cb84d..969dad9b 100644 --- a/.env.example +++ b/.env.example @@ -22,3 +22,4 @@ DOCKER_HTTPS_PORT=8443 # 443 for version 2 and 8443 for version 3 PMM_AGENT_CONFIG_FILE=./setup/pmm/agent.yaml PMM_DUMP_PASS="" PMM_DUMP_PASS_FILEPATH="" +PMM_INTERNAL_QAN=1 # The default value is 0 \ No newline at end of file diff --git a/docker-compose.yaml b/docker-compose.yaml index dccbccab..25665fd5 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -17,6 +17,8 @@ services: - "${CLICKHOUSE_PORT_HTTP}:8123" volumes: - pmm-server-data:/srv + environment: + - PMM_ENABLE_INTERNAL_PG_QAN=${PMM_INTERNAL_QAN} pmm-client: image: ${PMM_CLIENT_IMAGE}:${PMM_VERSION} diff --git a/internal/test/deployment/container.go b/internal/test/deployment/container.go index bd4f1916..596c59ad 100644 --- a/internal/test/deployment/container.go +++ b/internal/test/deployment/container.go @@ -79,6 +79,10 @@ func (pmm *PMM) CreatePMMServer(ctx context.Context, dockerCli *client.Client, n var ports []string var env []string + + // the default value is 0, but leaving it as 0 will cause the QAN test to fail. + env = append(env, "PMM_ENABLE_INTERNAL_PG_QAN=1") + if pkgUtil.CheckVer(pmm.GetVersion(), "< 3.0.0") { ports = []string{defaultHTTPPortv2, defaultHTTPSPortv2, defaultClickhousePort, defaultClickhouseHTTPPort} } else {