open-telemetry / opentelemetry-python-contrib

OpenTelemetry instrumentation for Python modules
https://opentelemetry.io
Apache License 2.0
701 stars 584 forks source link

Metrics instrumentation pymysql #1150

Open srikanthccv opened 2 years ago

srikanthccv commented 2 years ago

DB semconv: https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/metrics/semantic_conventions/database-metrics.md

siddhikhapare commented 2 years ago

@srikanthccv I want to work on this issue. I have gone through document of monitoring with python using open telemetry. https://opentelemetry-python-yusuket.readthedocs.io/en/latest/getting-started.html I have implemented small sample flask app but metrics was not generated as per endpoints. I guess problem in connecting files of Prometheus and application files. Can you guide me on this otherwise can you provide some resources.

lzchen commented 2 years ago

@siddhikhapare FYI our getting started has moved to here.

I have implemented small sample flask app but metrics was not generated as per endpoints

What is it you are trying to do specifically? Could you paste a snippet of your code?

siddhikhapare commented 2 years ago

@lzchen @ocelotl @srikanthccv I am beginner to use monitoring metrics with Prometheus using open telemetry. I have implemented flask app with Prometheus. This is my sample example - https://github.com/siddhikhapare/opentelemetry-flask-sample Can you give me few pointers? Thank you.