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

Incompatible with Builtin Prometheus Metrics? #32

Closed
samuelmanzer opened this issue Apr 9, 2020 · 5 comments
Closed

Incompatible with Builtin Prometheus Metrics? #32

samuelmanzer opened this issue Apr 9, 2020 · 5 comments

Comments

@samuelmanzer
Copy link

Hi there,

Love this extension - just wanted to check for clarification on how it is supposed to overlap with the builtin notebook prometheus metrics. I noticed when I install it, it takes over the metrics endpoint:

curl 'localhost:8888/metrics?token=...'
{"rss": 57704448, "limits": {}}

This seems to conflict with these metrics:

https://github.com/jupyter/notebook/blob/master/notebook/prometheus/metrics.py

Just wanted to check if this is expected or if I'm installing it wrong

@krinsman
Copy link
Contributor

krinsman commented Apr 10, 2020

Thank you for contributing to NBResuse! This is a good question!

To make sure we're on the same page, are we talking about NBResuse installed via PyPI? Or NBResuse installed from source on GitHub? Which version of NBResuse do you see when running pip list, for example?

The latter version is newer and intended to work better with Prometheus than the one on PyPI.

@krinsman
Copy link
Contributor

@samuelmanzer Did the response above help? The latest versions should be compatible with Prometheus metrics -- try version 0.3.4 on PyPi.

For now I am provisionally closing this issue -- please let me know if I should reopen it.

@samuelmanzer
Copy link
Author

I apologize for the delay in my response - I can confirm that 0.3.4 on PyPi does not clobber the prometheus metrics - thanks!

@colmaengus
Copy link

I'm using 0.3.6 from PyPi and the /metrics endpoint is being used therefore clobbering the prometheus endpoint. Looking at the code it has indeed reverted back to /metrics. Are there plans to change this? Right now I have to choose between showing metrics to the developers or capturing metrics with prometheus whereas I would very much like to do both.

@jtpio
Copy link
Member

jtpio commented Nov 18, 2020

@colmaengus yes there will be a 0.4.0 release soon that should fix the clobbering: #68

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants