Skip to content

Comments

pcp2opentelemetry: resolves rhel-130463#2480

Draft
lmchilton wants to merge 1 commit intoperformancecopilot:mainfrom
lmchilton:rhel-130463
Draft

pcp2opentelemetry: resolves rhel-130463#2480
lmchilton wants to merge 1 commit intoperformancecopilot:mainfrom
lmchilton:rhel-130463

Conversation

@lmchilton
Copy link
Contributor

Few minor updates to make pcp2opentelemetry output OTLP compatible. Fixed json dumps output, timestamp type, and deleted extra instance field and header lines.

Resolves RHEL-130463

@lmchilton lmchilton requested a review from wcohen February 4, 2026 14:43
@wcohen
Copy link
Contributor

wcohen commented Feb 11, 2026

The patch looks sane. The patch has been tested with the various pcp2telemetry tests (1131 and 1977)? The one thing that is missing is additions to the qa testsuite that ensures that pcp2opentelemetry is providing valid OTLP output and doesn't generate output listed as problems in RHEL-130463. Another thing that the tests should check is that more than one sample works correctly (something other than -s1). qa test 1131 exercises pcp2openmetrics with the -s2 option. Given some of the previous issues with pcp2openmetrics it would be good to add some testing to ensure that multiple samples works properly for pcp2opentelemetry also.

Few minor updates to make pcp2opentelemetry output OTLP
compatible. Fixed json dumps output, timestamp type, and
deleted extra instance field and header lines.
@lmchilton
Copy link
Contributor Author

To-Do: update archive sample to make it compatible for merge

@wcohen wcohen marked this pull request as draft February 18, 2026 19:14
Copy link
Contributor

@wcohen wcohen left a comment

Choose a reason for hiding this comment

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

The main concern is the additional space required for the new qa/archives/20260211 files. It looks like it would be possible to remove those and just use the previous qa/archive/20180606 files.


A="$here/archives/rep"
A1="$here/archives/20180606"
A1="$here/archives/20260211"
Copy link
Contributor

Choose a reason for hiding this comment

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

Why the need for the new archive 20260211? It looks like archives/20180606 has
the desired hinv.ncpu and disk.partitions.write metrics for 1131. The
new 20260211 archive has a lot of stuff. The 20260211.0.zst is 13MB
and there is another 400KB in 20260211.meta.xz. Would it make sense
just to use the existing archives/20180606 and update the 1131.out
with updated output.

Copy link
Contributor

Choose a reason for hiding this comment

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

The changes to pcp2opentelemetry.py look reasonable. All the pcp2opentelemetry tests work with:

./check -g pcp2opentelemetry

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