Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PCP: Resolve nested derived metric definitions for devices #1483

Merged
merged 1 commit into from
May 21, 2024

Conversation

natoscott
Copy link
Member

Previously these expressions were (incorrectly) silently failing to evaluate because a derived metric expression was geing nested which isn't valid. Now libpcp generates several warnings like: "Semantic error: derived metric htop.screen.disks.read_await: operand disk.dev.r_await: Illegal nested derived metric"

Fortunately they're all simple expressions so just unwinding the nesting is the simplest fix. Add in help text for good measure.

Previously these expressions were (incorrectly) silently failing
to evaluate because a derived metric expression was geing nested
which isn't valid.  Now libpcp generates several warnings like:
"Semantic error: derived metric htop.screen.disks.read_await: operand disk.dev.r_await: Illegal nested derived metric"

Fortunately they're all simple expressions so just unwinding the
nesting is the simplest fix.  Add in help text for good measure.
@BenBE BenBE added enhancement Extension or improvement to existing feature PCP PCP related issues labels May 21, 2024
@BenBE BenBE added this to the 3.4.0 milestone May 21, 2024
Copy link
Member

@BenBE BenBE left a comment

Choose a reason for hiding this comment

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

LGTM.

@natoscott natoscott merged commit 4d170fa into htop-dev:main May 21, 2024
17 checks passed
@natoscott natoscott deleted the nested-derived-metrics branch May 21, 2024 23:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Extension or improvement to existing feature PCP PCP related issues
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants