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 PidFile option #760
Comments
Hope to help, but I don't know how to implement the feature, could you give me some advice? thanks |
Happy to give some pointers. But you need to ask me for something more specific @sbookworm . @SuperQ for a starter, perhaps you could point to code using |
Sure, we have something like this in the haproxy_exporter code. |
@SuperQ sorry to bother, :) facing ERROR: Permission to prometheus/client_golang.git denied to sbookworm. |
You have to fork this repository and work in your own fork. From there, you can create a PR for this repo. You could search for tutorials how to contribute to OSS projects on GitHub. For example, https://parbhatpuri.com/git-workflow-to-contribute-to-an-open-source-project.html might be a good starter (just googled that, did not check if it is particularly good). |
@beorn7 thanks very much :) |
A common way to use
prometheus.NewProcessCollector()
is to use aPidFn
that reads a the PID from a file.It would be nice to have
PidFile
as a first-class feature. Or maybe include aNewPidFileFn()
helper.The text was updated successfully, but these errors were encountered: