Skip to content

Conversation

@lmchilton
Copy link
Contributor

multi-instance metrics failing when queried with
singular metrics from archive. Turning interpolation on resolves this issue. Additional code added to fix missing headers when 2+ metrics are queried together.

multi-instance metrics failing when queried with
singular metrics from archive. Turning interpolation
on resolves this issue. Additional code added to fix
missing headers when 2+ metrics are queried together.
@lmchilton lmchilton requested a review from wcohen January 13, 2026 18:38

# Set delay mode, interpolation
if self.context.type != PM_CONTEXT_ARCHIVE:
if self.context.type == PM_CONTEXT_ARCHIVE:
Copy link
Contributor

Choose a reason for hiding this comment

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

How is this going to work with live data? I don't think that inverting the sense of the test is the right thing to do to turn on the interpolation. Isn't that going to delay things for the archive. Looking at the pmrep.py has:

       # Set delay mode, interpolation
        if self.context.type == PM_CONTEXT_ARCHIVE:
            self.delay = 1
            self.interpol = 1

And it initialize interpol in PMReporter to 1 with the following rather than 0 in pcp2openmetrics.py:

    self.interpol = 1

Copy link
Contributor

Choose a reason for hiding this comment

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

"RHEL-11406" in the comment doesn't look correct. Should that be RHEL-138467?

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.

2 participants