Skip to content

Add prometheus info metrics listing server extensions + versions#1470

Merged
Zsailer merged 4 commits into
jupyter-server:mainfrom
yuvipanda:add-ext
Nov 4, 2024
Merged

Add prometheus info metrics listing server extensions + versions#1470
Zsailer merged 4 commits into
jupyter-server:mainfrom
yuvipanda:add-ext

Conversation

@yuvipanda
Copy link
Copy Markdown
Contributor

Follow-up to #1467.

@yuvipanda yuvipanda requested a review from Zsailer November 4, 2024 18:00
@Zsailer Zsailer self-assigned this Nov 4, 2024
Copy link
Copy Markdown
Member

@Zsailer Zsailer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚀

@Zsailer Zsailer merged commit 0d3eeb0 into jupyter-server:main Nov 4, 2024
yuvipanda added a commit to yuvipanda/jupyter_server that referenced this pull request Nov 4, 2024
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 added a commit to yuvipanda/jupyter_server that referenced this pull request Nov 4, 2024
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
Copy link
Copy Markdown
Contributor Author

ty @Zsailer! I made more! #1471

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