flask-dashboard / Flask-MonitoringDashboard

Automatically monitor the evolving performance of Flask/Python web services.
http://flask-monitoringdashboard.readthedocs.io/
MIT License
762 stars 159 forks source link

Profiler only shows endpoint and function definition #310

Open mischkadb opened 4 years ago

mischkadb commented 4 years ago

I use the dashboard on a production server with flask-socketio. All endpoints with logging level 3 only show the endpoint and function definition lines. All tested endpoints were called 100+ times and show up with 1-100+ ms in the logs.

Example:

Code-line Duration Percentage
@bp.route('/lobby') 0 ms %
@login_required 0 ms %
def lobby(): 0 ms %

The dashboard.cfg:

[dashboard]
APP_VERSION=0.6.1-30
CUSTOM_LINK=dashboard
MONITOR_LEVEL=1
OUTLIER_DETECTION_CONSTANT=2.5
SAMPLING_PERIOD=20
ENABLE_LOGGING=False

[authentication]
USERNAME=admin
PASSWORD=----
GUEST_USERNAME=guest
GUEST_PASSWORD=----
SECURITY_TOKEN=----

[database]
TABLE_PREFIX=fmd
DATABASE=----

[visualization]
TIMEZONE=Europe/Amsterdam
COLORS={'main':'[0,97,255]',
        'static':'[255,153,0]'}

Query example from database:

select * from fmdStackLine where request_id=93295;

93295|3|0|0|0.0 93295|4|1|0|0.0 93295|5|2|0|0.0

simkessy commented 4 years ago

same issue, no useful or line by line information Flas 1.1.2 Dashboard 3.0.9

I don't have a config, I just used the defaults.

mick-net commented 4 years ago

Same. I'm not using a config file.

I checked the SQLite database. The Requests table contains duration times per request. The StackLine table 'duration' column is all 0.0

Flask==1.1.1 flask_monitoringdashboard==3.0.7

nino-finch commented 4 years ago

Running into the same issue too here. Does anyone find any solution for this?