-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Integrate with existing metrics code #432
Integrate with existing metrics code #432
Conversation
Please update the metric features doc under the docs folder to reflect the added feature too 😃 |
I'm getting an odd error. Cursory google searching doesn't show a clear answer. #0 13.82 × Encountered error while trying to install package. I installed the package but still getting an error. Any special dependency requirements? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm still not a heavy user of metrics so I'm not sure how it would be better to handle the naming.
I see here that we have cpu_usage
, ram_usage
.
Should we add an identifier to those metrics?
Just wondering how that will grow whenever we have 10 services with the same metric name.
I think traces are not working with this PR without adding: |
I'm a little confused that why not using python instrumentation library to get the system metric such as cpu usage. I'm not quite familiar about python, maybe my confusion is wrong, you can correct me. But what I really want to say is, when it come's to add new metrics or traces, we should first consider using the instrumentation library instead of manually creating one. |
💯 |
That was me just messing around with metrics and trying to understand them, and I forgot to remove the unnecessary stuff. |
I was able to send traces without issue... |
That waste messing around with learning metrics. I'd forgotten to remove these. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great one!
OK, then it was something in my environment. It seems I actually think it makes sense to set both of these env variables or then none of them (just for consistency, I believe the end result will be the same):
|
Yes, good point. That was kinda bugging me too. :) Updated. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
I think this file can also be updated, since Recommendation service auto instrumentation is done. |
Added @fatsheep9146 |
Co-authored-by: Juliano Costa <[email protected]>
Co-authored-by: Juliano Costa <[email protected]>
is the requested change actually blocking anything? this needs to merge today to get into 0.6 |
Fixes #72
Changes
requirements.txt
opentelemetry-distro
to install relevant OpenTelemetry packagespsutil
,opentelemetry-bootstrap
will also installopentelemetry-instrumentation-system-metrics
recommendationservice
'sDockerfile
to:grpcio-tools
to avoid compatibility issues withprotobuf
library versions.opentelemetry-bootstrap
to install auto-instrumentation librariesmetrics.py
The following metrics are available through auto-instrumentation, courtesy of the
opentelemetry-instrumentation-system-metrics
, which is installed as part ofopentelemetry-bootstrap
on building the recommendationservice Docker image:runtime.cpython.cpu_time
runtime.cpython.memory
runtime.cpython.gc_count
Appropriate
CHANGELOG.md
updated for non-trivial changes