Skip to content

[receiver/postgresql] Fix for inflated metric values in query metrics collection#43072

Merged
songy23 merged 4 commits into
open-telemetry:mainfrom
sv-splunk:pg-metric-diff-fix
Oct 1, 2025
Merged

[receiver/postgresql] Fix for inflated metric values in query metrics collection#43072
songy23 merged 4 commits into
open-telemetry:mainfrom
sv-splunk:pg-metric-diff-fix

Conversation

@sv-splunk

Copy link
Copy Markdown
Contributor

Description

Fix for inflated metric values in query metrics collection (postgresql). In each metric collection the delta of metric values are added into the cache instead of adding just the latest counter value. Which results in an inflated metric value on each following collection.

Link to tracking issue

Fixes #43071

Testing

Unit tests updated

Documentation

@sv-splunk

Copy link
Copy Markdown
Contributor Author

@antonblock could you review this quick PR please? Thanks

@VihasMakwana

Copy link
Copy Markdown
Contributor

This is already approved by a codeowner. We can merge this if we can get an approval from @open-telemetry/collector-contrib-approvers .

@songy23 songy23 merged commit 137042b into open-telemetry:main Oct 1, 2025
185 checks passed
@github-actions github-actions Bot added this to the next release milestone Oct 1, 2025
@otelbot

otelbot Bot commented Oct 1, 2025

Copy link
Copy Markdown
Contributor

Thank you for your contribution @sv-splunk! 🎉 We would like to hear from you about your experience contributing to OpenTelemetry by taking a few minutes to fill out this survey.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[receiver/postgresql] Inflated metric values in query metrics collection

6 participants