-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
feat: add ability to include reason in count metrics #7060
feat: add ability to include reason in count metrics #7060
Conversation
Hi @AverageMarcus. Thanks for your PR. I'm waiting for a tektoncd member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the 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. |
d490073
to
e8bb945
Compare
The following is the coverage report on the affected files.
|
The following is the coverage report on the affected files.
|
e8bb945
to
b169232
Compare
/test pull-tekton-pipeline-go-coverage-df |
@AverageMarcus: Cannot trigger testing until a trusted user reviews the PR and leaves an In response to this:
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. |
The following is the coverage report on the affected files.
|
The following is the coverage report on the affected files.
|
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.
/ok-to-test
The following is the coverage report on the affected files.
|
/test tekton-pipeline-unit-tests |
b169232
to
17a7fe3
Compare
Sorry, looks like I left in a small typo. 🤦 Updated now. |
The following is the coverage report on the affected files.
|
The following is the coverage report on the affected files.
|
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.
/approve
/assign @dibyom |
17a7fe3
to
4daeb05
Compare
Rebased! ✅ Is anyone available for a review? |
The following is the coverage report on the affected files.
|
The following is the coverage report on the affected files.
|
4daeb05
to
6d87b80
Compare
The following is the coverage report on the affected files.
|
The following is the coverage report on the affected files.
|
@AverageMarcus thanks for the PR (and sorry for the delay in reviewing) - I think this looks good and only have some naming nitpicks. @vdemeester @khrm what do you think? |
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.
@dibyom Yes, this looks good to me.
I don't see any other comments. Do you still have them as pending or something gone wrong with GitHub? |
docs/metrics.md
Outdated
@@ -40,6 +40,7 @@ A sample config-map has been provided as [config-observability](./../config/conf | |||
metrics.taskrun.duration-type: "histogram" | |||
metrics.pipelinerun.level: "pipeline" | |||
metrics.pipelinerun.duration-type: "histogram" | |||
metrics.count.reason: "false" |
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.
nit: maybe metrics.count.enable-reason
to be more explicit that this is for enabling this vs something else
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.
Makes sense! 👍 Updated.
yup, was pending 🤦 |
Adds a configuration flag to enable including the `reason` for a TaskRun or PipelineRun status on their count metrics. This allows for more fine-grained monitoring and alerting of run failures. Signed-off-by: Marcus Noble <[email protected]>
6d87b80
to
aaa8e41
Compare
The following is the coverage report on the affected files.
|
The following is the coverage report on the affected files.
|
@dibyom any chance I could get another review please? |
Looks good to me, thanks for your patience @AverageMarcus 🙏 /approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: dibyom, khrm 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 |
Thanks @dibyom 🎉 It looks like tide also requires a |
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
Changes
Fixes #7059
Introduces the ability to include a
reason
label along with the currentstatus
label on the PipelineRun and TaskRun count metrics.Submitter Checklist
As the author of this PR, please check off the items in this checklist:
/kind <type>
. Valid types are bug, cleanup, design, documentation, feature, flake, misc, question, tepRelease Notes
/kind feature