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 the ref to "launch" events? #452

Closed
choldgraf opened this issue Feb 13, 2018 · 4 comments
Closed

Add the ref to "launch" events? #452

choldgraf opened this issue Feb 13, 2018 · 4 comments

Comments

@choldgraf
Copy link
Member

I was looking through the prometheus launch events, and wonder if it'd be relatively easy to add the label pod to each one:

e.g., couldn't we add something like ref=self.key (after adding key to self) here:

LAUNCH_TIME.labels(status='success').observe(time.perf_counter() - launch_starttime)

(here's key:

key = '%s:%s' % (provider_prefix, spec)
)

that way we could see if there are particular repos that are causing super long build times, and we could also quantify the number of launches for each repo...

@yuvipanda
Copy link
Collaborator

Nope, because you'll end up blowing through our resources pretty quickly. Each combination of metric keys will create a new metric, and if you add ref that's pretty much infinite numberof metrics. So we can't do that without slowing prometheus to a crawl.

https://prometheus.io/docs/practices/naming/ has more info.

@yuvipanda
Copy link
Collaborator

Specifically, from https://prometheus.io/docs/practices/naming/#labels:

CAUTION: Remember that every unique combination of key-value label pairs represents a new time series, which can dramatically increase the amount of data stored. Do not use labels to store dimensions with high cardinality (many different label values), such as user IDs, email addresses, or other unbounded sets of values.

@yuvipanda
Copy link
Collaborator

jupyterhub/mybinder.org-deploy#97 or similar is the work needed for us to actually be able to gather this data.

@choldgraf
Copy link
Member Author

ah ok :-(

I'm gonna remove all of that part of #453 then

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

No branches or pull requests

2 participants