-
Notifications
You must be signed in to change notification settings - Fork 113
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 buildrunname label for custom metric #467
Add buildrunname label for custom metric #467
Conversation
@zhangtbj sorry, I almost missed this PR; let me review tomorrow. |
Thanks! |
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.
To have a consistent naming schema, the label would be buildrun
without the name
suffix.
Be aware that within our IBM Code Engine solution, we cannot use this new label, see the very last line in our internal ADR 6.
Hi Sascha, Yes, it is a CodeEngine or sysdig limitation, but for prometheus or other monitoring systems, it is not a limitation and we should allow end user to see the metric about buildrun name. I didn't choose to use |
Sorry, I mis-understood the comment. Yes, I think change the label from I will change it later. Thanks Sascha! |
@zhangtbj pr looks good, and @SaschaSchwarze0 requested changes should be addressed, +1. I might be having the full context on this PR, which is allow users that might have their own sysdig instance to get metrics based on:
but also on:
I´m not fully understanding the advantage of introducing "buildrun" . E.g. if you want to estimate an average on builds based on |
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.
Asking for more clarification on the use case behind this new label. See my above comment.
Yes, I think two reasons:
|
Change the label name from |
Ok, I see the use case on seeing all buildruns per namespace in sysdig. I guess that will help. I would have squash your commits, while renaming something that appeared on this PR doesnt needs another commit, but for you to decide @zhangtbj |
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
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.
We should maybe then also add build
in another PR to complete the picture.
/lgtm
/approve
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: SaschaSchwarze0 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 |
For the current custom metric, we have two labels:
buildStrategy
andnamespace
and we can configure to the controller deployment choose which label we want to collect.At the beginning, we just have two labels:
buildStrategy
andnamespace
because the metric limitation in Sysdig system, but it is not the limitation for other monitoring system and thebuildrunname
label is also important so that the end user can know more detail about each buildrun status.By default the default label is still
buildStrategy
, but after this PR, the end user can have the capability to choose one more label in custom metric to show more detail.