-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Feature request: cache hit / miss metric #4445
Comments
How do you wish to expose such a metric? The history API record does have a counter for cached/total steps. |
I'm not entirely sure of the best approach. I currently have WIP where in a cmd/buildctl/build.go:L296, I
Makes it easy to grab that last line and just dump it into a metrics sink; could be a good idea to maybe log it to a different file. How do you feel about something like this ? Could this be its own command as well ? |
Hello there,
I'd like to add a cache hit / miss metric.
The only option I currently see without touching the code would be to pipe log lines and increment counters on
/^CACHED/
or/^DONE/
regexp matches.Would you have any pointers, for a different//better way to do this ? I will be looking for this, and may try to implement a few solutions, if possible.
The text was updated successfully, but these errors were encountered: