Skip to content

Fix incorrect aggregation; Prometheus exporter behavior#903

Merged
jmacd merged 15 commits intoopen-telemetry:masterfrom
jmacd:jmacd/otlp_debug
Jul 7, 2020
Merged

Fix incorrect aggregation; Prometheus exporter behavior#903
jmacd merged 15 commits intoopen-telemetry:masterfrom
jmacd:jmacd/otlp_debug

Conversation

@jmacd
Copy link
Copy Markdown
Contributor

@jmacd jmacd commented Jul 6, 2020

There was a bug in FinishCollection() that would double-apply stale updates for instruments that had not been modified in the most recent collection interval. This corrects the incorrect aggregation.

This adds further correctness and testing for Prometheus. The basic processor supports a new Memory option that says whether to remember and report metric instruments and label sets that were not modified in the most recent collection interval. The TestProcessor test is refactored to reduce indentation level. New tests are added for the delta and cumulative case, where a stateful aggregator may be called for and the no-memory configuration still suppresses reporting for unmodified data.

Resolves #887.

Copy link
Copy Markdown
Member

@lizthegrey lizthegrey left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please make sure you note the bug fix in the CHANGELOG.

@jmacd
Copy link
Copy Markdown
Contributor Author

jmacd commented Jul 6, 2020

Done

jmacd and others added 2 commits July 7, 2020 12:36
Co-authored-by: Tyler Yahn <MrAlias@users.noreply.github.com>
@jmacd jmacd merged commit 3475d55 into open-telemetry:master Jul 7, 2020
@jmacd jmacd deleted the jmacd/otlp_debug branch July 7, 2020 19:52
@MrAlias MrAlias mentioned this pull request Jul 9, 2020
@pellared pellared added this to the untracked milestone Nov 8, 2024
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.

Prometheus Exporter Example

5 participants