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? |
julianocosta89
left a comment
There was a problem hiding this comment.
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. |
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): |
|
I think this file can also be updated, since Recommendation service auto instrumentation is done. |
Added @fatsheep9146 |
Co-authored-by: Juliano Costa <julianocosta89@outlook.com>
Co-authored-by: Juliano Costa <julianocosta89@outlook.com>
|
is the requested change actually blocking anything? this needs to merge today to get into 0.6 |
Fixes #72
Changes
requirements.txtopentelemetry-distroto install relevant OpenTelemetry packagespsutil,opentelemetry-bootstrapwill also installopentelemetry-instrumentation-system-metricsrecommendationservice'sDockerfileto:grpcio-toolsto avoid compatibility issues withprotobuflibrary versions.opentelemetry-bootstrapto install auto-instrumentation librariesmetrics.pyThe following metrics are available through auto-instrumentation, courtesy of the
opentelemetry-instrumentation-system-metrics, which is installed as part ofopentelemetry-bootstrapon building the recommendationservice Docker image:runtime.cpython.cpu_time
runtime.cpython.memory
runtime.cpython.gc_count
Appropriate
CHANGELOG.mdupdated for non-trivial changes