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

fix(metric): Update dynamic interface label to be constant #1078

Merged
merged 1 commit into from
Nov 27, 2024

Conversation

BeegiiK
Copy link
Contributor

@BeegiiK BeegiiK commented Nov 26, 2024

Description

Updated dynamic interface label for interface_stats metric to be set to all_interfaces. Also did some optimisation on the EthtoolStats struct. All stat names will be accumulated across all interface names

Related Issue

#1067

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

Please add any relevant screenshots or GIFs to showcase the changes made.

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.

@BeegiiK BeegiiK requested a review from a team as a code owner November 26, 2024 14:27
@BeegiiK BeegiiK requested review from jimassa and rbtr November 26, 2024 14:27
Copy link
Contributor

@huntergregory huntergregory left a comment

Choose a reason for hiding this comment

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

I'm assuming you need to modify e2e tests? If not, we have a test gap. Otherwise, lgtm, but I would also suggest you manually test this on a cluster and see the metric output before merging?

Also, not sure why tests are being skipped?
{DB6FF4F5-9494-4BA5-96CD-761F4D3320F5}

@BeegiiK
Copy link
Contributor Author

BeegiiK commented Nov 27, 2024

I'm assuming you need to modify e2e tests? If not, we have a test gap. Otherwise, lgtm, but I would also suggest you manually test this on a cluster and see the metric output before merging?

Also, not sure why tests are being skipped? {DB6FF4F5-9494-4BA5-96CD-761F4D3320F5}

I verified it manually on a cluster:
image

Although, I needed to prevent the processStats from being called to get these results as I could not find a clear approach to retrieve results without the filter being called. The unit tests also pass.

One thing I observed, I did a check to see what interfaces are being monitored (pre-filtering, i.e. before processStats is called) and found only two are watched, with my change it will be a 50% reduction. I guess since Retina is always filtering, leaving no stats unless criteria is met, we won't know the full impact of the change.

Those e2e tests are usually skipped at the PR level (not sure why) and it's been like this for quite some time.

@SRodi SRodi added this pull request to the merge queue Nov 27, 2024
Merged via the queue into microsoft:main with commit 3945951 Nov 27, 2024
25 checks passed
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.

4 participants