pangeo-data / jupyter-earth

Jupyter meets the Earth: combining research use cases in geosciences with technical developments within the Jupyter and Pangeo ecosystems.
https://jupytearth.org
Creative Commons Zero v1.0 Universal
29 stars 6 forks source link

JupyterHub official Grafana metrics dashboard #7

Closed consideRatio closed 1 year ago

consideRatio commented 4 years ago

JupyterHub expose a lot of metrics, such as how many currently running users it has. With a tool like Prometheus, these metrics can be collected over time into a timeseries. With a tool like Grafana, these collected metrics can be presented in a Dashboard.

But these dashboards needs to be defined and configured. Grafana has a format for this, and when its done they can be exported to .json files that others can import.

As an example, here are two graphs from a dashboard that I got by asking @yuvipanda who linked a 2i2c deployment for University of Toronto. I exported it from the grafana instance using their web ui as a .json file, and imported it into my grafana instance.

image

My vision is that there is a JupyterHub official dashboards, and perhaps a Z2JH official dashboard to use.

choldgraf commented 4 years ago

This is a cool idea - I suppose if something like this would have existed it could have helped you out getting started w/ a grafana board for the hackademy, yeah?

I guess my main question is how general we could make this so that it doesn't bit-rot and that it remains useful to people without a lot of upkeep. Does that seem attainable?

yuvipanda commented 4 years ago

We can publish dashboards here: https://grafana.com/grafana/dashboards.

@choldgraf The way to do it probably is to have a git repo somewhere that folks can make PRs to, and then we can publish to grafana.com (or just keep the repo). This way, as you make improvements locally you can publish them - and then pull them in so you are level with upstream...

AndreaGiardini commented 3 years ago

I am interested in this. Any pre-existing dashboard that would make sense to publish already?

consideRatio commented 3 years ago

@yuvipanda wrote:

The way to do it probably is to have a git repo somewhere that folks can make PRs to, and then we can publish to grafana.com (or just keep the repo).

Hmmm, what about:

@AndreaGiardini the dashboard in github.com/neurohackademy/nh2020-jupyterhub is the latest version ive used with z2jh

yuvipanda commented 3 years ago

Pathways to doing this 'right':

yuvipanda commented 3 years ago

After getting tired of copy-pasting, I built this today: https://github.com/yuvipanda/jupyterhub-grafana. It's pretty complete! It needs documentation and some code cleanup - particularly around splitting the JSONNet files. But it works great, and I like it :)

yuvipanda commented 3 years ago

@consideRatio you should be able to check it out at http://grafana.utoronto.2i2c.cloud/d/i8G_l9bMk/jupyterhub-dashboard?orgId=1.

consideRatio commented 3 years ago

@yuvipanda excellent work on this! :heart_eyes: I'm looking forward to trying it out properly but haven't yet

adam0s9 commented 1 year ago

Hello everyone,

Is there any update on this?

Thank you, Best Regards, a.

consideRatio commented 1 year ago

https://grafana.jmte.2i2c.cloud/ is up and running, but individual users need to be granted access.

@adam0s9 note that I write nothing further as your account is anonymous and newly created, making me suspect you to be a bot etc.

adam0s9 commented 1 year ago

https://grafana.jmte.2i2c.cloud/ is up and running, but individual users need to be granted access.

@adam0s9 note that I write nothing further as your account is anonymous and newly created, making me suspect you to be a bot etc.

Ima not a BOT, thank you for your concerns.

Trying to access / sign in with github says ... image

Any idea what is wrong?