-
Notifications
You must be signed in to change notification settings - Fork 161
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
Gunicorn flask metrics exporting #169
Comments
Have you checked the https://github.com/rycus86/prometheus_flask_exporter/tree/master/examples/gunicorn example? That one runs Gunicorn on port 4000 but exposes the metrics on port 9200, which sounds like you're after? |
from flask import Blueprint,request,jsonify,Response,render_template,current_app os.environ["PROMETHEUS_MULTIPROC_DIR"]="/home/u1437/Ospyn/Chosonbox/dedupe/CDS-AI" app_bp=Blueprint('dedupe_blueprint', name,static_folder='static',template_folder='templates') @app_bp.route('/test') @app_bp.route('/error') this is gunicorn_config.py def when_ready(server): i need to export each routes metrics via port 8080 |
Can you try adding some debug statements (or breakpoint) in the |
I have flask application with views and main app. i need export metrics from these views. i tried everything as per example. but i only get # HELP by_endpoint_counter_total Request count by endpoints
TYPE by_endpoint_counter_total counter. not any values. I need set up number of hits on each route and export it into another port. please help. application running in gunicorn server
The text was updated successfully, but these errors were encountered: