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 metrics endpoint for buildkitd #1544

Open
jsravn opened this issue Jun 26, 2020 · 6 comments
Open

Add metrics endpoint for buildkitd #1544

jsravn opened this issue Jun 26, 2020 · 6 comments

Comments

@jsravn
Copy link

jsravn commented Jun 26, 2020

It would be great if buildkitd exposed metrics that can be used to monitor it and debug issues.

Some useful metrics:

  • Build cache size
  • Build statistics per client
@jsravn
Copy link
Author

jsravn commented Jun 26, 2020

For per client statistics, it could use the client name in the client TLS certificate if used. Otherwise, maybe some metadata could be passed with the build request.

@jsravn
Copy link
Author

jsravn commented Jul 20, 2020

I was thinking about this more in the context of a Kubernetes cluster. A problem for registering metrics is buildkit does not know about the context (who is doing the build), so the metrics will have to be quite general. Would be acceptable to add Kubernetes support, such that buildkitd could determine the calling pod information from the peer IP on the gRPC request?

@alsterg
Copy link

alsterg commented Dec 5, 2022

+1

@errordeveloper
Copy link
Contributor

@jsravn is it correct to assume that you are implying Prometheus exposition format?

@jsravn
Copy link
Author

jsravn commented Feb 7, 2023

@jsravn is it correct to assume that you are implying Prometheus exposition format?

Yes, or I suppose openmetrics these days.

@halvorstein
Copy link

@jsravn Hi. Have you managed to find a workaround for this issue?

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

5 participants