Skip to content

PMM-14985 Add Prometheus-native storage usage telemetry#5313

Open
4nte wants to merge 2 commits into
v3from
PMM-14985-add-promdb-telemetry
Open

PMM-14985 Add Prometheus-native storage usage telemetry#5313
4nte wants to merge 2 commits into
v3from
PMM-14985-add-promdb-telemetry

Conversation

@4nte
Copy link
Copy Markdown

@4nte 4nte commented May 4, 2026

PMM-14985

Link to the Feature Build: Feature Build

Adds a new telemetry entry VMPromDBSeriesReadPerQuery to managed/services/telemetry/config.default.yml.
Telemetry reports the 24h average number of series read per query against the Prometheus-native (legacy promdb) store on PMM Server, computed as
sum(rate(vm_promdb_series_read_per_query_sum[24h])) / sum(rate(vm_promdb_series_read_per_query_count[24h])).

This helps us understand real-world usage of the legacy promdb path so we can plan its deprecation/removal.

QA test harness

A self-contained, reproducible E2E harness lives in PMM-14985-test repository and verifies that the new VMPromDBSeriesReadPerQuery telemetry entry actually emits a non-zero value when promdb is in use, and exactly 0 when it isn't.

Harness repo must be cloned inside the local PMM repository, see instructions in test repo README.

@4nte 4nte requested a review from a team as a code owner May 4, 2026 11:16
@4nte 4nte requested review from ademidoff and maxkondr and removed request for a team May 4, 2026 11:16
@it-percona-cla
Copy link
Copy Markdown
Contributor

it-percona-cla commented May 4, 2026

CLA assistant check
All committers have signed the CLA.

@4nte 4nte requested a review from JiriCtvrtka May 4, 2026 11:20
@codecov
Copy link
Copy Markdown

codecov Bot commented May 4, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 41.58%. Comparing base (b4e5544) to head (3898e8e).
⚠️ Report is 46 commits behind head on v3.

Additional details and impacted files
@@            Coverage Diff             @@
##               v3    #5313      +/-   ##
==========================================
+ Coverage   41.49%   41.58%   +0.08%     
==========================================
  Files         410      410              
  Lines       41992    41914      -78     
==========================================
+ Hits        17424    17429       +5     
+ Misses      22814    22732      -82     
+ Partials     1754     1753       -1     
Flag Coverage Δ
managed 40.74% <ø> (+0.13%) ⬆️

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.

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.

4 participants