-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
Fix metrics labeling with only directed source/destination context op… #27792
Fix metrics labeling with only directed source/destination context op… #27792
Conversation
/test |
8e701d6
to
b419e85
Compare
Fixes: cilium#27717 Signed-off-by: Marek Chodor <mchodor@google.com>
b419e85
to
37e81ce
Compare
/test Edit: ci-ipsec-upgrade hit #27827, clearly unrelated to the PR since it doesn't affect the datapath or IPSec |
Not sure why Travis was not started. I don't see any failure or pending run in the dashboard https://app.travis-ci.com/github/cilium/cilium/pull_requests |
I'll close and re-open the PR to hopefully re-trigger Travis. This will invalidate the tests (which are all green at the momen ) unfortunately, but I don't think there is any other way. |
Travis is refusing to acknowledge the existence of this PR. Not sure what else we can do. I'll mark it ready to merge, since all other CI is green and the affected tests here seem to have passed in |
@gandro not sure if ready to merge yet, I built this PR and ran some manual validation from the scenario in #27717 with the flow enabled, node 1: agnhost-a
and it seems that ingress is working, both egress for source and destination don't report any metrics. In the case of sourceEgressContext, source="" is just empty string, and case of destinationEgressContext, destination="" is empty string as well hubble-metrics: flow:destinationIngressContext Node 1 hubble-metrics: flow:destinationEgressContext=pod Node 1 hubble-metrics: flow:sourceEgressContext=pod Node 1 hubble-metrics: flow:sourceIngressContext=pod Node 1 |
@matmerr I verified your scenario with these code changes and everything looks fine. test pods
network call:
Case 1cilium config:
metrics on node-A
metrics on the node-B
Case 2cilium config:
metrics on node-A
metrics on the node-B
|
fwiw I was also validating with just |
Case 3cilium config:
metrics on node-A
metrics on the node-B
Case 3.1cilium config:
metrics on node-A
metrics on the node-B
|
UT's seemed to be working for egress, and tested in fresh cluster which seems to be working. Not worth investigating the first one for the time being, lgtm. |
…tions set.
Fixes: #27717
Please ensure your pull request adheres to the following guidelines:
description and a
Fixes: #XXX
line if the commit addresses a particularGitHub issue.
In case only directed Source/Destination Ingress/Egress context options were specified, metrics were incorrectly labeled. this change ensures that correct labels are included when only directed options are specified in metrics configuration.
Fixes: #27717