Flask-MonitoringDashboard icon indicating copy to clipboard operation
Flask-MonitoringDashboard copied to clipboard

Profiler only shows endpoint and function definition

Open mischkadb opened this issue 4 years ago • 3 comments

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]'}
  • Server OS: Ubuntu 16.04
  • Client OS: Windows 10 and Ubuntu 18.04
  • Browser Firefox and Chrome
  • FMD 3.0.9

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

mischkadb avatar Mar 21 '20 22:03 mischkadb

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.

simkessy avatar Apr 05 '20 21:04 simkessy

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

mick-net avatar May 25 '20 08:05 mick-net

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

nino-finch avatar Aug 22 '20 21:08 nino-finch