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

feat(conntrack-metrics): legacy control plane basic mode #1253

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

SRodi
Copy link
Member

@SRodi SRodi commented Jan 21, 2025

Description

Initial implementation of conntrack metrics for the legacy control plane in basic mode. The aggregation is at the node level, which makes the metric bounded.

Metrics:

  • conntrack_packets_reply
  • conntrack_bytes_forward
  • conntrack_bytes_reply
  • conntrack_packets_forward
  • conntrack_total_connections

Related Issue

fixes #1190

Checklist

  • I have read the contributing documentation.
  • I signed and signed-off the commits (git commit -S -s ...). See this documentation on signing commits.
  • I have correctly attributed the author(s) of the code.
  • I have tested the changes locally.
  • I have followed the project's style guidelines.
  • I have updated the documentation, if necessary.
  • I have added tests, if applicable.

Screenshots (if applicable) or Testing Completed

Bytes reply

image

Total connections metric

image

Additional Notes

Add any additional notes or context about the pull request here.


Please refer to the CONTRIBUTING.md file for more information on how to contribute to this project.

@SRodi SRodi self-assigned this Jan 21, 2025
@SRodi SRodi requested a review from a team as a code owner January 21, 2025 15:07
@SRodi SRodi requested a review from nddq January 21, 2025 16:52
@SRodi SRodi force-pushed the feat/ct-metrics-legacy-cp branch from 3fa4154 to bcc9773 Compare January 21, 2025 17:25
@@ -43,6 +43,13 @@ const (
// Control plane metrics
pluginManagerFailedToReconcileCounterDescription = "Number of times the plugin manager failed to reconcile the plugins"
lostEventsCounterDescription = "Number of events lost in control plane"

// Conntrack metrics
ConntrackPacketForwardDescription = "Number of forward packets"

Choose a reason for hiding this comment

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

forward or forwarded?

Copy link
Member Author

Choose a reason for hiding this comment

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

I think we should use ‘forward’ since in this context we refer to ‘direction’ more than ‘action’. We also want to be consistent with the actual metrics implementation in BPF, which uses 'forward' and 'reply'.

packets_*_count indicates the number of packets sent and received in the forward and reply direction.

@SRodi SRodi requested a review from MikeZappa87 January 22, 2025 19:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[conntrack] Legacy control plane metrics implementation
3 participants