-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Remove domain label from VMI metrics #3500
Conversation
|
@ArthurSens there is one test failing related to metrics in these lanes, maybe you need to adjust the functional test to your changes:
The other three lanes are failing due to unrelated problems we currently have when spinning up docker in docker tests. |
|
/retest |
2 similar comments
|
/retest |
|
/retest |
|
@ArthurSens: The following test failed, say
Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR. 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. I understand the commands that are listed here. |
|
@ArthurSens Can you squash commits? Anything else you want to do about this? |
|
After discussing with @fabiand and @danielBelenky, I think we might want to send a deprecation note about this label before applying this patch, I don't know if it is possible to merge without adding this patch to the next release though I don't know the procedure for this case 😬 |
|
@ArthurSens: PR needs rebase. 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. |
…s debug issues. Signed-off-by: Alexander Wels <awels@redhat.com>
Ginkgo containers body are evaluated at definition, i.e. at a pre-main stage. Running code at this stage is not recommended as some initializations are occurring only in the test `main` (which is auto-generated by the test framework). An example of such a scenario is the command line flag parsing. Libraries, tested code and the test infra is expected to declare the flags and the parsing is expected to be execute only once (at main usually). This change moves all code that executes in the containers body to the Before* setup bodies, while leaving on the containers body the variable declarations. Signed-off-by: Edward Haas <edwardh@redhat.com>
Current command line flags are setup at `init` but parsed multiple times by each test file. As the flags are bound to global variables and flag parsing should only be executed once (consequent calls are no-op), there is no point to execute the parse more than once. The test framework is expected to execute the parsing in its main function for its own flags, therefore, there should be no need to explicitly parse the flags in the tests. Signed-off-by: Edward Haas <edwardh@redhat.com>
Signed-off-by: Edward Haas <edwardh@redhat.com>
Basic implementation that adds all k8s metadata.labels and metadata.annotations into a metric labels, separated by commas(',')
Signed-off-by: arthursens <arthursens2005@gmail.com>
Signed-off-by: arthursens <arthursens2005@gmail.com>
The labels slice was repeating elements after the second scrape Signed-off-by: arthursens <arthursens2005@gmail.com>
Signed-off-by: arthursens <arthursens2005@gmail.com>
Signed-off-by: arthursens <arthursens2005@gmail.com>
Also correction of tryToPushMetric function which was always using memoryAvailableDesc to log errors Signed-off-by: arthursens <arthursens2005@gmail.com>
Signed-off-by: arthursens <arthursens2005@gmail.com>
Signed-off-by: arthursens <arthursens2005@gmail.com>
Signed-off-by: arthursens <arthursens2005@gmail.com>
Signed-off-by: arthursens <arthursens2005@gmail.com>
Signed-off-by: arthursens <arthursens2005@gmail.com>
Signed-off-by: arthursens <arthursens2005@gmail.com>
Also, metrics' labelset will only be populated when the domain stat is set Signed-off-by: arthursens <arthursens2005@gmail.com>
Signed-off-by: arthursens <arthursens2005@gmail.com>
Signed-off-by: arthursens <arthursens2005@gmail.com>
Signed-off-by: arthursens <arthursens2005@gmail.com>
This reverts commit ec0b542. Signed-off-by: Or Shoval <oshoval@redhat.com>
Changing emphemeral disk perm to 640. Changing container disk perm to 444. Signed-off-by: L. Pivarc <lpivarc@redhat.com>
Signed-off-by: arthursens <arthursens2005@gmail.com>
1d3f694
to
8d2d7c5
Compare
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
@ArthurSens: The following tests failed, say
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. I understand the commands that are listed here. |
|
Oh god I just messed up my rebase real bad |
What this PR does / why we need it:
This PR removes domain labels from VMI metrics. They are being removed because they originate from the original metrics implementation where the more useful labels like
nameandnamespacedid not exist and now can be removedWhich issue(s) this PR fixes (optional, in
fixes #<issue number>(, fixes #<issue_number>, ...)format, will close the issue(s) when PR gets merged):Fixes #3477
Special notes for your reviewer:
Release note: