-
Notifications
You must be signed in to change notification settings - Fork 9.3k
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
util/promlint: consider making it easier for 3rd parties to import #5317
Comments
Talked with @SuperQ on IRC and it appears I was wrong about needing to vendor the entire repo.
I do still think it'd be reasonable to move this to common, though. |
It's only used in one of our repos, so I see no need to move it to common. Common is for stuff shared across our repos. |
If Maybe we can move it to Involve @brancz here. |
@brian-brazil @mdlayher Thoughts on moving promlint into http://github.com/prometheus/client_golang like @RainbowMango suggested? Or maybe even http://github.com/prometheus/promlint ? Moving it out of |
As indicated in kubernetes/kubernetes#86477 you'd probably be best using it is a |
To be precise: |
In particular, client_golang would not be a good place for a stand-alone linter binary, but |
Go for it @RainbowMango :) |
I'll brace for impact then. (o: |
Working on it. Thanks. |
@beorn7 Can you assign this issue to me? It can help me find this issue quickly in the future. :) |
Sure, done. |
Proposal
I originally added
promlint
for use inpromtool check metrics
. It is very useful for that purpose, however, it would also be nice to allow the package to be easily vendored and used in other applications for unit tests and such.Because this main Prometheus repository is fairly large and also contains a great deal of unrelated code, I propose moving
util/promlint
github.com/prometheus/common/promlint
or similar. This way, library code lives with a library instead of an entire application, and is much easier to vendor.At that point, we can vendor in the updated copy of
common
and switch the import statements used withinpromtool
.The text was updated successfully, but these errors were encountered: