# Capturing / recording usage analytics

**URL:** <https://discourse.pangeo.io/t/capturing-recording-usage-analytics/562>\
**Category:** Cloud\
**Created:** [April 14, 2020, 12:21pm UTC](https://discourse.pangeo.io/t/capturing-recording-usage-analytics/562 "2020-04-14T12:21:19Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Theo\_McCaie](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.pangeo.io/theo_mccaie/32/301_2.png) [@Theo\_McCaie](https://discourse.pangeo.io/u/Theo_McCaie)\
**Post date:** [April 14, 2020, 12:21pm UTC](https://discourse.pangeo.io/t/capturing-recording-usage-analytics/562/1 "2020-04-14T12:21:19Z")

</div>

Hi all,

The Met Office Informatics lab has set up a dataset and Pangeo platform to help COVID-19 researchers interested in relationships with environmental data information, [details in the blog post](https://medium.com/informatics-lab/met-office-and-partners-offer-data-and-compute-platform-for-covid-19-researchers-83848ac55f5f).

The question I have is what’s the best/easiest way of capturing analytics of who is using our Pangeo instance, how often, for how long, etc. It’s backed with GitHub auth (so not anonymous). At the moment I can look on the hub admin screen and see when people were last on the platform but that’s about it.

Any suggestions?

Thanks.

---

<div class="post-metadata">

**Author:** ![rabernat](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.pangeo.io/rabernat/32/22_2.png) [@rabernat](https://discourse.pangeo.io/u/rabernat)\
**Post date:** [April 14, 2020, 3:25pm UTC](https://discourse.pangeo.io/t/capturing-recording-usage-analytics/562/2 "2020-04-14T15:25:11Z")

</div>

👏

Fantastic work Theo and colleagues!

---

<div class="post-metadata">

**Author:** ![jhamman](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.pangeo.io/jhamman/32/34_2.png) [@jhamman](https://discourse.pangeo.io/u/jhamman)\
**Post date:** [April 14, 2020, 5:25pm UTC](https://discourse.pangeo.io/t/capturing-recording-usage-analytics/562/3 "2020-04-14T17:25:55Z")

</div>

Nice @Theo_McCaie! Didn’t Jacob Tomlinson have a grafana dashboard setup for your Pangeo clusters?

Cross referencing a few other posts:

> **[Towards JupyterHub deployment insights](https://discourse.jupyter.org/t/towards-jupyterhub-deployment-insights/3836)**
>
> This topic: a feature exploration This topic is meant to be a collaborative exploration of what could make sense to develop in order to provide usage related insights for the funders, administrators, and users of a JupyterHub deployment! Let’s...

and

> [@Pangeo in the time of Coronavirus](https://discourse.pangeo.io/t/pangeo-in-the-time-of-coronavirus/543):
>
> Hi all, As the spread of coronavirus continues to impact our personal and professional lives in significant ways, I wanted to start a thread to discuss how Pangeo may play a role in helping us all get through this challenging time. If you have ideas or thoughts on this subject, please share below. A virtual community The Pangeo Community has always been an online community. We’re all quite accustomed to interacting with one another on [GitHub](https://github.com/pangeo-data)/[Discourse](https://discourse.pangeo.io/)/[Whereby](https://whereby.com/pangeo)/[Twitter](https://twitter.com/pangeo_data)/etc. While our in-person c…

---

<div class="post-metadata">

**Author:** ![Theo\_McCaie](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.pangeo.io/theo_mccaie/32/301_2.png) [@Theo\_McCaie](https://discourse.pangeo.io/u/Theo_McCaie)\
**Post date:** [April 15, 2020, 10:12am UTC](https://discourse.pangeo.io/t/capturing-recording-usage-analytics/562/4 "2020-04-15T10:12:24Z")

</div>

Thanks @jhamman. You are right about Jacob and grafana, unfortunately that stopped working when we re-architected but it’s a good shout, I could see about resurrecting.

Thanks for the other links too!

---

<div class="post-metadata">

**Author:** ![yuvipanda](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.pangeo.io/yuvipanda/32/134_2.png) [@yuvipanda](https://discourse.pangeo.io/u/yuvipanda)\
**Post date:** [April 21, 2020, 7:08am UTC](https://discourse.pangeo.io/t/capturing-recording-usage-analytics/562/5 "2020-04-21T07:08:40Z")

</div>

If you’re using a recent enough version of JupyterHub, you can use the experimental [telemetry / eventlogging](https://jupyterhub.readthedocs.io/en/stable/events/index.html) system to capture user server start and end events. This can then be used to see session lengths, etc. If you have a persistent hub PVC that is storing the sqlite database, you can put the telemetry there with a `FileHandler`. Just make sure the PVC is big enough 🙂

There is a PR in [notebook itself](https://github.com/jupyter/notebook/pull/4752) that should provide more events, but I don’t think you need those.

I probably also have some scripts that can parse jupyterhub logs to emit conformant Telemetry logs. Let me see if I can find those.

Hope this is useful!
