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

Network metrics: report client and server port #1015

Merged
merged 19 commits into from
Jul 16, 2024

Conversation

mariomac
Copy link
Contributor

For network metrics, this patch tracks which IP:port initiated the connection, then Beyla is able to reconstruct the newly added client_port and server_port metric attributes.

@mariomac mariomac requested review from grcevski and marctc as code owners July 15, 2024 09:15
@codecov-commenter
Copy link

codecov-commenter commented Jul 15, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 76.41%. Comparing base (67d69ea) to head (d387c84).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1015      +/-   ##
==========================================
- Coverage   80.30%   76.41%   -3.90%     
==========================================
  Files         137      137              
  Lines       10953    10980      +27     
==========================================
- Hits         8796     8390     -406     
- Misses       1675     2081     +406     
- Partials      482      509      +27     
Flag Coverage Δ
integration-test 56.05% <100.00%> (+0.99%) ⬆️
k8s-integration-test ?
oats-test 37.19% <7.40%> (-0.08%) ⬇️
unittests 50.78% <66.66%> (-0.02%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@@ -89,7 +89,7 @@ spec:
- name: BEYLA_NETWORK_METRICS
value: "true"
- name: BEYLA_NETWORK_SOURCE
value: "socket_filter"
value: "tc"
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Socket filter is now the default source, so we didn't have TC tests.

Copy link
Contributor

@grcevski grcevski left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Amazing.

@mariomac mariomac merged commit c54347b into grafana:main Jul 16, 2024
6 checks passed
@mariomac mariomac deleted the client-port-draft branch July 16, 2024 08:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants