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

Addition of pcp2opentelemetry tool #1972

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

lmchilton
Copy link
Contributor

Supports translation of pcp metrics into open telemetry format. Supports opentelemetry protocol http json format.

Updated relevent qa tests, as well as created a new one (1977) to test the tools http functionality.

Added man page and makefile.

Copy link
Member

@natoscott natoscott left a comment

Choose a reason for hiding this comment

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

@lmchilton nice work - couple comments inline - also, the packaging side of things is needed below build/rpm too.

@@ -2269,10 +2269,65 @@ QA output created by 1131
---


# HELP hinv_ncpu number of CPUs in the system
# HELP hinv_ncpu b'number of CPUs in the system'
Copy link
Member

Choose a reason for hiding this comment

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

You need to upgrade your PCP python installation (./Makepkgs FTW) - this b'...' issue will be resolved then.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@natoscott I upgraded the packages, ran configure and make and still the b' issue was still there when I re ran the test?

Copy link
Member

Choose a reason for hiding this comment

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

Hmm, that is a mystery - its definitely fixed for me (and in CI). I wonder if somehow an older version of the python library is being found somewhere on your system, unexpectedly.

-e '/^Connection: keep-alive/d' \
-e '/ using stream socket$/d'
}

Copy link
Member

Choose a reason for hiding this comment

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

since this pattern is repeated in three or four tests now, let's make a _filter_python_http_reponse shell function in one of the qa/common.xxx files and share it.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@natoscott should this go in a specific common.xxx file or make a new one?

Copy link
Member

Choose a reason for hiding this comment

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

@lmchilton lets put it in common.python

qa/1977 Outdated Show resolved Hide resolved
src/pcp2opentelemetry/pcp2opentelemetry.1 Outdated Show resolved Hide resolved
src/pcp2opentelemetry/pcp2opentelemetry.1 Outdated Show resolved Hide resolved
src/pcp2opentelemetry/pcp2opentelemetry.py Outdated Show resolved Hide resolved
Supports translation of pcp metrics into open telemetry format.
Supports opentelemetry protocol http json format.

Updated relevent qa tests, as well as created a new one (1977) to test
the tools http functionality.

Added man page and makefile.

Contains changes from review comments, including changes to spec and qa
files.
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.

None yet

2 participants