-
Notifications
You must be signed in to change notification settings - Fork 67
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
CPU_PERCENT and GPS examples do not expose port #555
Comments
Hi John, |
John - I contacted Troy - he was aware from examples meeting where this was discussed: Troy Fine |
@tbsloan Oops, sorry for the misdirect. GitHub type-ahead tagged you instead of Troy. |
@johnwalicki No worries, we got it moved over to Troy. |
Similar to the web-helloworld-python service.json file: https://github.com/open-horizon-services/web-helloworld-python/blob/main/service.json cpu_percent: https://github.com/open-horizon/examples/tree/master/edge/services/cpu_percent gps: https://github.com/open-horizon/examples/tree/master/edge/services/gps |
@t-fine Could I be assigned this issue ? If I am not wrong we need to expose the port in |
@saurav1004 - Yes, the service.definition.json files would expose the port. The web-helloworld-python service json has a snippet. Check the port number, it might be 8080
|
Yes the port number is 8080 for both the services |
@johnwalicki I have created a draft pull request, will mark it "ready for review" once you confirm. |
The PR looks good. I think it's ready to merge. |
Thanks, I have marked it ready for review. You should be able to merge it now. |
With the bump of version number of cpu_percent and gps in the PR just merged (#580) I will be closing this issue. |
Describe the bug
The CPU Percent example does not expose the port to query the CPU load
See https://github.com/open-horizon/examples/blob/master/edge/services/cpu_percent/horizon/service.definition.json
The README shows a
curl
excample but the user would need to run the curl within the workload container.I am not certain that is the expected behavior.
The Makefile has a
test
rule which callswhich is here: https://github.com/open-horizon/examples/blob/master/tools/curlServiceTest.sh
That script does a
docker exec
into the container and curl works.If the purpose is to not expose the CPU performance data, then clarify in the README
If the intended example should report the CPU data, then
service.definition.json
should expose the port.The text was updated successfully, but these errors were encountered: