Unable to see CPU and Memory used by python App in Elastic backend #3488
-
Background :: Problem :: Excerpt of code below :: from opentelemetry import trace from flask import Flask provider = TracerProvider() app = Flask(name) @app.route("/server_request") def methodA(): def methodB(): def methodC(): def methodD(): def methodE(): def methodF(): if name == 'main': The below environment variables are set :: I am able to see traces in the elastic backend. Please find the screenshot below. The app is launched with the below command :: opentelemetry-instrument --traces_exporter console,otlp --metrics_exporter console,otlp --service_name test-logging python app.py Host OS and Python details :: Do not see any errors in the logs. PFA the logs file here. Can someone please look into this and guide. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
It seems like you haven't specified a metrics pipeline like you have for tracing. IF you want to track metrics yourself for cpu and memory used, take a look at this example for guidance on how to use the metrics api/sdk. If you want an instrumentation to do that for you, try out the experimental systems instrumentation |
Beta Was this translation helpful? Give feedback.
It seems like you haven't specified a metrics pipeline like you have for tracing. IF you want to track metrics yourself for cpu and memory used, take a look at this example for guidance on how to use the metrics api/sdk. If you want an instrumentation to do that for you, try out the experimental systems instrumentation