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

Update golangci-lint and add promlinter #3992

Merged
merged 1 commit into from
Mar 30, 2021

Conversation

yeya24
Copy link
Contributor

@yeya24 yeya24 commented Mar 30, 2021

Signed-off-by: yeya24 [email protected]

  • I added CHANGELOG entry for this change.
  • Change is not relevant to the end user.

Changes

Close #2430.
This pr updates current golangci-lint to master and add promlinter to check metrics naming.

Verification

@yeya24
Copy link
Contributor Author

yeya24 commented Mar 30, 2021

Let me know if a changelog entry is needed or not.

Copy link
Member

@GiedriusS GiedriusS left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great work @yeya24! 🎉 I have been waiting for this for a long time. I'm definitely expecting some tutorials or blog posts from you on this (: I gave a cursory glance at your linter. I guess it would be nice to explicitly mention what client_golang & k8s.io/kube-state-metrics versions are supported in the README on https://github.com/yeya24/promlinter. BTW, I think changelog is not needed as this change is not visible to end users.

@GiedriusS GiedriusS merged commit 42c38f8 into thanos-io:main Mar 30, 2021
@yeya24 yeya24 deleted the add-promlinter branch March 31, 2021 22:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add linter for ensuring correct Prometheus metric name.
2 participants