Skip to content

PMM-14858 Skip built-in ClickHouse scrape for external instances#5369

Open
4nte wants to merge 13 commits into
v3from
PMM-14858-fix-external-clickhouse-scrape
Open

PMM-14858 Skip built-in ClickHouse scrape for external instances#5369
4nte wants to merge 13 commits into
v3from
PMM-14858-fix-external-clickhouse-scrape

Conversation

@4nte
Copy link
Copy Markdown

@4nte 4nte commented May 15, 2026

PMM-14858

Feature build

PMM kept scraping 127.0.0.1:9363 even when an external ClickHouse was configured.
Introduced new ClickHouseParams model struct that validates and facilitates CH parameters.

ClickHouse scraping is now skipped when any of the following are true:

  1. ExternalVM is on.
  2. PMM_DISABLE_BUILTIN_CLICKHOUSE is set. (new) -- After discussion, we dropped this check
  3. PMM_CLICKHOUSE_ADDR points to an external host.

@4nte 4nte requested a review from a team as a code owner May 15, 2026 12:23
@4nte 4nte requested review from JiriCtvrtka and maxkondr and removed request for a team May 15, 2026 12:23
Comment thread managed/models/clickhouse_params.go Outdated
Comment thread managed/services/victoriametrics/victoriametrics.go Outdated
@codecov
Copy link
Copy Markdown

codecov Bot commented May 15, 2026

Codecov Report

❌ Patch coverage is 78.57143% with 12 lines in your changes missing coverage. Please review.
✅ Project coverage is 43.24%. Comparing base (6ecb7d5) to head (08b9bbb).
⚠️ Report is 19 commits behind head on v3.

Files with missing lines Patch % Lines
managed/cmd/pmm-managed/main.go 0.00% 11 Missing ⚠️
managed/services/victoriametrics/prometheus.go 66.66% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##               v3    #5369      +/-   ##
==========================================
+ Coverage   43.18%   43.24%   +0.05%     
==========================================
  Files         413      413              
  Lines       42253    42297      +44     
==========================================
+ Hits        18247    18290      +43     
+ Misses      22140    22139       -1     
- Partials     1866     1868       +2     
Flag Coverage Δ
managed 42.38% <78.57%> (+0.12%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@CLAassistant
Copy link
Copy Markdown

CLAassistant commented May 15, 2026

CLA assistant check
All committers have signed the CLA.

Comment thread managed/cmd/pmm-managed/main.go Outdated
Comment thread managed/models/clickhouse_params.go Outdated
@4nte 4nte requested review from ademidoff and maxkondr May 20, 2026 09:33
Comment thread managed/services/victoriametrics/prometheus.go Outdated
Comment thread managed/services/victoriametrics/victoriametrics.go
@4nte 4nte requested a review from maxkondr May 21, 2026 11:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants