Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add prometheus info metrics listing server extensions + versions #1470

Merged
merged 4 commits into from
Nov 4, 2024

Conversation

yuvipanda
Copy link
Contributor

Follow-up to #1467.

@Zsailer Zsailer self-assigned this Nov 4, 2024
Copy link
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
36 of 37 checks passed
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
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