Skip to content

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

Open
4nte wants to merge 14 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 14 commits into
v3from
PMM-14858-fix-external-clickhouse-scrape

Conversation

@4nte
Copy link
Copy Markdown
Contributor

@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 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 77.19298% with 13 lines in your changes missing coverage. Please review.
✅ Project coverage is 43.18%. Comparing base (3a587ee) to head (ec7be47).

Files with missing lines Patch % Lines
managed/cmd/pmm-managed/main.go 0.00% 11 Missing ⚠️
managed/models/database.go 50.00% 1 Missing ⚠️
managed/services/victoriametrics/prometheus.go 66.66% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##               v3    #5369      +/-   ##
==========================================
- Coverage   43.22%   43.18%   -0.04%     
==========================================
  Files         413      413              
  Lines       42279    42182      -97     
==========================================
- Hits        18273    18218      -55     
+ Misses      22138    22100      -38     
+ Partials     1868     1864       -4     
Flag Coverage Δ
managed 42.41% <77.19%> (+0.07%) ⬆️

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