get connections statistics

Hi,
I am running a Bokeh app via the bokeh serve command. I would like to monitor the connections to the server to have statistics about the way my app is used. Is there a simple way to record the connections logs?

I tried to add to my code

import sys
sys.stdout=open("logs.txt","w")
... my code ...
sys.stdout.close()

and also to run my code with:

bokeh serve --show myapp.py > logs.txt

None of these solutions worked.

Thanks!

Julien

Finally, I came out with a better solution :

bokeh serve --show myapp.py >> log.txt 2>&1

But if there is a more appropriated way to record connections statistics, I am still interested!

Julien

···

Le vendredi 21 avril 2017 14:27:36 UTC+2, Julien Jouganous a écrit :

Hi,
I am running a Bokeh app via the bokeh serve command. I would like to monitor the connections to the server to have statistics about the way my app is used. Is there a simple way to record the connections logs?

I tried to add to my code

import sys
sys.stdout=open("logs.txt","w")
... my code ...
sys.stdout.close()

and also to run my code with:

bokeh serve --show myapp.py > logs.txt

None of these solutions worked.

Thanks!

Julien

Hi,

There is an open issue for adding an "admin" interface to the Bokeh server:

  https://github.com/bokeh/bokeh/issues/322

If you have thoughts they'd be welcome to share there.

Thanks,

Bryan

···

On Apr 21, 2017, at 09:11, Julien Jouganous <[email protected]> wrote:

Finally, I came out with a better solution :
bokeh serve --show myapp.py >> log.txt 2>&1
But if there is a more appropriated way to record connections statistics, I am still interested!

Julien

Le vendredi 21 avril 2017 14:27:36 UTC+2, Julien Jouganous a écrit :
Hi,
I am running a Bokeh app via the bokeh serve command. I would like to monitor the connections to the server to have statistics about the way my app is used. Is there a simple way to record the connections logs?
I tried to add to my code
import
sys
sys
.stdout=open("logs.txt","w")
... my code ...
sys.stdout.close()
and also to run my code with:
bokeh serve --show myapp.py > logs.txt
None of these solutions worked.
Thanks!

Julien

--
You received this message because you are subscribed to the Google Groups "Bokeh Discussion - Public" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/bokeh/88a2f2bf-cdf9-4603-9a84-3597c6d8a492%40continuum.io.
For more options, visit https://groups.google.com/a/continuum.io/d/optout.