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

add total suffix in counter metrics #1055

Merged
merged 1 commit into from
Aug 5, 2019

Conversation

yeya24
Copy link
Contributor

@yeya24 yeya24 commented Aug 1, 2019

Signed-off-by: yeya24 yb532204897@gmail.com

I am wondering if this pr will cause compatibility problem. But I think we should follow the metrics naming . All counter metrics need add suffix total.


This change is Reviewable

@k8s-ci-robot
Copy link

Hi @yeya24. Thanks for your PR.

I'm waiting for a kubeflow member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

I understand the commands that are listed here.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@yeya24
Copy link
Contributor Author

yeya24 commented Aug 1, 2019

@krishnadurai Please take a look. 😄

@coveralls
Copy link

coveralls commented Aug 1, 2019

Coverage Status

Coverage remained the same at 76.744% when pulling c29af7c on yeya24:rename-metrics into c47c5ca on kubeflow:master.

@johnugeorge
Copy link
Member

Do you mean, compatibility problems with existing deployments?

@yeya24
Copy link
Contributor Author

yeya24 commented Aug 1, 2019

@johnugeorge Exactly. But add this suffix is important and we can know what the metric type is from its name.

@gaocegege
Copy link
Member

I think so. The PR LGTM.

/lgtm

Thanks for your contribution! 🎉 👍

@johnugeorge
Copy link
Member

/ok-to-test

@yeya24
Copy link
Contributor Author

yeya24 commented Aug 5, 2019

Forget to update the docs I will update it tomorrow.

@johnugeorge
Copy link
Member

Thanks @yeya24 Can you add the docs in the same PR

@yeya24
Copy link
Contributor Author

yeya24 commented Aug 5, 2019

@johnugeorge Done. PTAL

Copy link
Contributor

@krishnadurai krishnadurai left a comment

Choose a reason for hiding this comment

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

@yeya24 thanks for pointing this out. This will have a compatibility issue as v1 release will report on the earlier name, though I think the name change will always come with a new deployment.
The impact should be low.
Can you please make a note of the name change in the docs?

@@ -41,7 +41,7 @@ func (tc *TFController) addTFJob(obj interface{}) {

status := common.JobStatus{
Conditions: []common.JobCondition{
common.JobCondition{
Copy link
Contributor

Choose a reason for hiding this comment

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

Is this formatting change intentional?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes. This common.JobCondition is redundant and could be remove.

Signed-off-by: yeya24 <yb532204897@gmail.com>
@yeya24
Copy link
Contributor Author

yeya24 commented Aug 5, 2019

@krishnadurai I' m not sure if this note is enough. PTAL. Thanks!

@krishnadurai
Copy link
Contributor

This note is fine.

/lgtm

@johnugeorge
Copy link
Member

/approve

@k8s-ci-robot
Copy link

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: johnugeorge

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants