-
Notifications
You must be signed in to change notification settings - Fork 867
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
ALB Target Group name is not consistent with CloudWatch metrics dimensions #2589
Comments
Example fix: |
I took a quick peak at the AWS docs and this all seems to make sense would you mind opening a PR with the fix? |
Hi @zachaller , I've created the PR #2604 but the build step is failing. I've checked the error message and it seems irrelevant to my fix. Could you lookt at it, please? |
@zachaller I've rebased from the master but some tests are still failing with quite a vague error... Could you provide some hints, please? |
@danil-smirnov the TestWritebackInformer one you can ignore tha that is flakey but this test seems to be failing as well
|
Thank you @zachaller ! The checks are green now. |
@zachaller I've added one more unit test and all checks are green now. |
@danil-smirnov thank you, I should be able to review it later today or tomorrow |
Fixes #2589 (#2604) * Adding status.alb.canaryTargetGroup.fullName for ALB Signed-off-by: Danil Smirnov <[email protected]> * Fixes Signed-off-by: Danil Smirnov <[email protected]> * Formatting fix Signed-off-by: Danil Smirnov <[email protected]> * Fixes Signed-off-by: Danil Smirnov <[email protected]> * Fixes Signed-off-by: Danil Smirnov <[email protected]> * Fixes Signed-off-by: Danil Smirnov <[email protected]> * Formatting fix Signed-off-by: Danil Smirnov <[email protected]> * run make codegen Signed-off-by: zachaller <[email protected]> * run make codegen Signed-off-by: zachaller <[email protected]> * ALB tests fix Signed-off-by: Danil Smirnov <[email protected]> * ALB tests fix Signed-off-by: Danil Smirnov <[email protected]> * Fixes Signed-off-by: Danil Smirnov <[email protected]> * Adding unit test Signed-off-by: Danil Smirnov <[email protected]> --------- Signed-off-by: Danil Smirnov <[email protected]> Signed-off-by: zachaller <[email protected]> Co-authored-by: zachaller <[email protected]>
Checklist:
Describe the bug
We are trying to leverage the
status.alb.canaryTargetGroup.name
value taken from Rollout object in our AnalysisTemplate as suggested in #1242.We are going to use this value in a query to CloudWatch to filter metrics by a dimension representing the canary target group, e.g. like this:
It should be possible as per #1241 that says:
However, when trying to use the value we discovered that it differs from the metrics dimension used by CloudWatch, for example:
status.alb.canaryTargetGroup.name = k8s-default-damagere-a867372dec
while
CloudWatch metrics dimension = k8s-default-damagere-a867372dec/78abd55d69ba13b9
The latter value is a part of the
status.alb.canaryTargetGroup.arn
parameter but there seems no way to extract it from the value on the way from the Rollout object to the AnalysisTemplate query.Thus, we don't see how to use the
status.alb.canaryTargetGroup.name
in real life for CloudWatch metrics-based analysis.It would be great if we can fill in one more parameter
status.alb.canaryTargetGroup.fullName
with the full Target Group name that can be used in CW queries directly.To Reproduce
Expected behavior
Screenshots
Version
We use Argo Rollout helm chart v.2.22.2
Logs
Message from the maintainers:
Impacted by this bug? Give it a 👍. We prioritize the issues with the most 👍.
The text was updated successfully, but these errors were encountered: