-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
*: match naming convention in metrics and documentation #3309
*: match naming convention in metrics and documentation #3309
Conversation
a283041
to
1b1cda7
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.
I think this is a fair change, but let's commit this right before 0.17.0 and announce it properly. cc @metalmatze next release shepherd. Also worth to change other components to have one breaking release changing metrics not man (:
Makes sense. So I guess it's time to fix references to Also, we need to add Thanos Query Frontend to the component naming! ( |
correct! (: |
Shall we also update the |
0912f3c
to
6538553
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. Thanks for doing this.
You just need to rebase and update the PR description to match recent changes.
Then we can merge this.
And also it'd be nice to add the link to the PR for record keeping purposes https://thanos.io/tip/contributing/contributing.md/#components-naming
6538553
to
deaf8ae
Compare
Hello @kakkoyun , This should be good now! I'm not sure how to link this PR in the CONTRIBUTING.md page. Simply linking it without context or anything would be annoying for users simply reading the page. |
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. Thanks a lot for this.
Let's give a chance to @bwplotka for having a final look and then we can merge it.
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.
Thanks, LGTM, but metric changes scares me a lot 😱 If someone has alerts or dashboards they don't want to change too often, they will kill us 😢
That's why I said:
We could duplicate the metrics for one version as a deprecation cycle. However, it will still break the metric history 😞 |
Rename compact to compactor Signed-off-by: Mathis Raguin <mathis@cri.epita.fr>
Some metrics used to be under thanos_compactor_* Signed-off-by: Mathis Raguin <mathis@cri.epita.fr>
Signed-off-by: Mathis Raguin <mathis@cri.epita.fr>
Signed-off-by: Mathis Raguin <mathis@cri.epita.fr>
Signed-off-by: Mathis Raguin <mathis@cri.epita.fr>
Signed-off-by: Mathis Raguin <mathis@cri.epita.fr>
Signed-off-by: Mathis Raguin <mathis@cri.epita.fr>
…enent Signed-off-by: Mathis Raguin <mathis@cri.epita.fr>
Signed-off-by: Mathis Raguin <mathis@cri.epita.fr>
tests were moved since the PR was created. Signed-off-by: Mathis Raguin <mathis@cri.epita.fr>
c1c2078
to
6f1fd1f
Compare
Rebased on master as one metric name was changed |
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.
I would say let's go with this. @metalmatze is it fine to get into release?
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.
Seems good to me. Let's get this into v0.17 then
* pkg/compact: Fix compactor name in comments Rename compact to compactor Signed-off-by: Mathis Raguin <mathis@cri.epita.fr> * pkg/compact: Rename metrics to thanos_compact_* Some metrics used to be under thanos_compactor_* Signed-off-by: Mathis Raguin <mathis@cri.epita.fr> * rule: match metrics name with convention Signed-off-by: Mathis Raguin <mathis@cri.epita.fr> * rule: match documentation with naming convention Signed-off-by: Mathis Raguin <mathis@cri.epita.fr> * query: match metrics name with convention Signed-off-by: Mathis Raguin <mathis@cri.epita.fr> * query: match documentation with naming convention Signed-off-by: Mathis Raguin <mathis@cri.epita.fr> * query: fix naming convention in examples Signed-off-by: Mathis Raguin <mathis@cri.epita.fr> * CONTRIBUTING: update naming convention with new query frontend componenent Signed-off-by: Mathis Raguin <mathis@cri.epita.fr> * update changelog for concerned metrics Signed-off-by: Mathis Raguin <mathis@cri.epita.fr> * compact: match naming convention for compactor tests were moved since the PR was created. Signed-off-by: Mathis Raguin <mathis@cri.epita.fr> Signed-off-by: Oghenebrume50 <raphlbrume@gmail.com>
Changes
Rename metrics not following the components naming convention:
thanos_compact_*
(fromthanos_compactor_*
)thanos_rule_*
(fromthanos_ruler_*
)thanos_query_*
(fromthanos_querier_*
)Also match the naming convention in the documentation and code comments
https://thanos.io/tip/contributing/contributing.md/#components-naming
Verification
Has yet to be tested.
Note
I feel like removing the metrics directly before any deprecation cycle has been done is a bit harsh. But before working on duplicating the two metrics, I'd like to have your opinion on this.