Skip to content
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

hubble: Add "syn-only" option to flows-to-world metric #21571

Merged
merged 2 commits into from
Oct 6, 2022

Conversation

michi-covalent
Copy link
Contributor

@michi-covalent michi-covalent commented Oct 4, 2022

2 commits:

  • add syn-only option.
  • implement Status() method so that it prints option flags. for example:
    level=info msg="Configured metrics plugin" name=flows-to-world status="syn-only,destination=dns|reserved-identity,source=namespace" subsys=hubble
hubble: Add "syn-only" option to flows-to-world metric

@michi-covalent michi-covalent added the release-note/misc This PR makes changes that have no direct user impact. label Oct 4, 2022
@michi-covalent
Copy link
Contributor Author

/test

@michi-covalent
Copy link
Contributor Author

/test

@michi-covalent michi-covalent marked this pull request as ready for review October 4, 2022 23:21
@michi-covalent michi-covalent requested review from a team as code owners October 4, 2022 23:21
Use this option to exclude non-SYN drops that could occur transiently
from the flows-to-world metric.

Signed-off-by: Michi Mutsuzaki <michi@isovalent.com>
Include option flags in Status() output so that these flags show up
properly in the log message.

Signed-off-by: Michi Mutsuzaki <michi@isovalent.com>
@michi-covalent
Copy link
Contributor Author

michi-covalent commented Oct 5, 2022

/test

Job 'Cilium-PR-K8s-1.25-kernel-net-next' failed:

Click to show.

Test Name

K8sDatapathConfig Check BPF masquerading with ip-masq-agent DirectRouting

Failure Output

FAIL: Failed to add ip route

If it is a flake and a GitHub issue doesn't already exist to track it, comment /mlh new-flake Cilium-PR-K8s-1.25-kernel-net-next so I can create one.

@michi-covalent
Copy link
Contributor Author

@michi-covalent
Copy link
Contributor Author

/test-1.25-net-next

@michi-covalent
Copy link
Contributor Author

michi-covalent commented Oct 6, 2022

not sure why sig-policy team was added to review, this PR only touches hubble metrics. i'm marking it as ready-to-merge.

edit: i guess it's because it modifies a file under /Documentation/observability/. anyways this PR only updates documentation for flows-to-world metric ✅

@michi-covalent michi-covalent added the ready-to-merge This PR has passed all tests and received consensus from code owners to merge. label Oct 6, 2022
@ldelossa ldelossa merged commit 180fc0c into master Oct 6, 2022
@ldelossa ldelossa deleted the pr/michi/syn-only branch October 6, 2022 16:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready-to-merge This PR has passed all tests and received consensus from code owners to merge. release-note/misc This PR makes changes that have no direct user impact.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants