-
Notifications
You must be signed in to change notification settings - Fork 310
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
Prevent re-definition of prometheus metrics #210
Conversation
Terminal cwd failure is unrelated. |
Thanks Steve. I haven't worked with Prometheus and know hardly anything about it (other than what I've just read glossing over some of the docs), but the comments and changes imply that the metrics are scoped at a broader level. Just wondering if we should adjust (namespace) the metric names in juptyer_server so that the notebook-specific metrics are not included should there be a notebook server running on the same node (or network for that matter - since it appears Prometheus performs distributed rollups). I'm assuming we'd want these separated.
Could you please provide a reference to the tin label? This may help my understanding here - thank you. If what I said above is how things work (for the most part), but we do want stats cumulated across notebook and js instances, then these changes seem appropriate. My vote would be to keep these separated. |
Hi @kevin-bates, I haven't looked deeply into Prometheus either, I ran into this bug while working an Jupyter Telemetry, since I ended up importing the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good - addresses the immediate issue. We can revisit scoping via another issue/PR.
* Prevent re-definition of prometheus metrics
Fixes #209