-
Notifications
You must be signed in to change notification settings - Fork 308
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
Refactor toplevel functions #162
Conversation
b61cca1
to
4e56a4f
Compare
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.
LGTM with a couple small nits.
02ccb3e
to
1951885
Compare
db4f258
to
f7fc61d
Compare
@discordianfish Does this look ok to you? |
This removes top level 'New<Thing>' constructor functions in order to make the API slightly smaller and more consistent. Fixes issue prometheus#44 Also includes some minor readme and godoc updates. Signed-off-by: Paul Gier <pgier@redhat.com>
Split the file I/O and parsing into two separate functions for better maintenance. Also some minor refactoring/cleanup. Signed-off-by: Paul Gier <pgier@redhat.com>
72438fa
to
b9e9d29
Compare
Rebased and cleaned up the commits. |
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.
LGTM
Hello @pgier This breaks the client_golang pkg as NewStat has been renamed to Stat unless you are making changes to that at the same time? edit* Docs also still reference NewStat |
:sad: |
@sbramin @peterbourgon The plan is to update client_golang to match this updated API. client_golang should still be pointing to the older commit in its module config, are you automatically updating to latest? |
Depends on the expected time frame to update client_golang, If its a matter of hours then I can sit on my hands, if its days then perhaps its better to have procfs/golang_client being released at the same time? As I am sure I am not the only cowboy running off of master. Re-adding a deprecated section sounds like more trouble than its worth. |
Modules are not universally used. My vote would be for
|
Something needs to be done immediately, the Prometheus universe is currently broken. |
Add support for /proc/net/route
See issue #44