Skip to content

prometheus: Expose 3 activity metrics - #1471

Merged
Zsailer merged 2 commits into
jupyter-server:mainfrom
yuvipanda:activity-metrics
Nov 4, 2024
Merged

prometheus: Expose 3 activity metrics#1471
Zsailer merged 2 commits into
jupyter-server:mainfrom
yuvipanda:activity-metrics

Conversation

@yuvipanda

Copy link
Copy Markdown
Contributor

This exposes some of the info from /api/status in the prometheus metrics endpoint, so they can be scraped over time and queried.

  • Server started timestamp, so we can easily see how long servers have been running
  • Last activity timestamp, so we can see when users were actually active
  • User activity duration (in seconds), so we can more easily build reports of how long users are actually active over time.

All these would be very helpful in JupyterHub environments.

Follow-up to #1470

This exposes some of the info from /api/status in the prometheus
metrics endpoint, so they can be scraped over time and queried.

- Server started timestamp, so we can easily see how long servers
  have been running
- Last activity timestamp, so we can see when users were actually
  active
- User activity duration (in seconds), so we can more easily build
  reports of how long users are actually active over time.

All these would be very helpful in JupyterHub environments.

Follow-up to jupyter-server#1470
@yuvipanda
yuvipanda requested a review from Zsailer November 4, 2024 20:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants