albertodonato / query-exporter

Export Prometheus metrics from SQL queries
GNU General Public License v3.0
436 stars 101 forks source link

Add documentation to import in Pycharm IDE #190

Open jgpATs2w opened 6 months ago

jgpATs2w commented 6 months ago

Is your feature request related to a problem? Please describe. Yes, I'm trying to launch in my IDE to debug a query and i don't find the way.

Describe the solution you'd like Add to the documentation a quick guide to setup Pycharm, or your IDE in use to easily import the project and be able to run/debug.

Describe alternatives you've considered I have been trying a couple of days to import by myself but i don't get it to work debugging.

Thanks for such a nice tool!

albertodonato commented 6 months ago

Hi, I'm not a PyCharm user so I'm not really sure how to help and what you're trying to do.

In theory you should be able to import query_exporter.main and call the script instance there (or create your own), possibly adding debug in the code, but I'm not sure how PyCharm handles installing dependencies (you might need to create your own virtualenv?).