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

Interface Metrics #468

Merged
merged 1 commit into from
Nov 10, 2023
Merged

Interface Metrics #468

merged 1 commit into from
Nov 10, 2023

Conversation

LionelJouin
Copy link
Member

@LionelJouin LionelJouin commented Oct 19, 2023

Description

Collect kernel rx_packets, tx_packets, rx_bytes, tx_bytes, rx_errors, tx_errors, rx_dropped, tx_dropped metrics of the interfaces Stateless-lb collects the metrics for the interfaces being created via NSM.

A new chain element has been implemented to watch/unwatch interfaces based on their name.

Frontend collects the metrics of the interface that is passed as environment variable.

Issue link

#428
#419

Checklist

  • Purpose
    • Bug fix
    • New functionality
    • Documentation
    • Refactoring
    • CI
  • Test
    • Unit test
    • E2E Test
    • Tested manually
  • Introduce a breaking change
    • Yes (description required)
    • No

@LionelJouin LionelJouin marked this pull request as ready for review October 19, 2023 12:49
@LionelJouin LionelJouin force-pushed the observability-intf branch 2 times, most recently from 3c4eee6 to 813b8f2 Compare October 19, 2023 14:02
@LionelJouin LionelJouin force-pushed the observability-intf branch 2 times, most recently from 9d3f335 to 34277f2 Compare November 2, 2023 09:13
@LionelJouin LionelJouin force-pushed the observability-intf branch 2 times, most recently from 6e0efab to b0e160a Compare November 7, 2023 15:36
@@ -155,6 +159,47 @@ func main() {
// start watching events of interest via NSP
go watchConfig(ctx, cancel, c, fe)

hostname, err := os.Hostname()
Copy link
Collaborator

@zolug zolug Nov 9, 2023

Choose a reason for hiding this comment

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

Would be better moving this to an earlier part of main()

Collect kernel rx_packets, tx_packets, rx_bytes, tx_bytes, rx_errors,
tx_errors, rx_dropped, tx_dropped metrics of the interfaces
Stateless-lb collects the metrics for the interfaces being created via
NSM. A new chain element has been implemented to watch/unwatch
interfaces based on their name.
Frontend collects the metrics of the interface that is passed as
environemnt variable.
@LionelJouin LionelJouin merged commit 20ba01c into master Nov 10, 2023
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants