Skip to content

Conversation

FedeDP
Copy link
Contributor

@FedeDP FedeDP commented Sep 10, 2025

Fixes #288

Description

Implement a metricschecker for e2e tests.
It uses http GET calls to retrieve metrics from all tetragon pods. Note that i keep it simple and:

  • did not leverage existing multiplexer package since it seems built around grpc connections and didn't want to add a whole new implementation. Also, since we are just using http.Gets it is really not needed imho.
  • it is intended to be used as a last step in the test (before uninstalling the deployment) to check that desired metric has a certain value
  • for now, i did not cache the metrics, thus any invocation of Great("mymetric", 0) will make the GET request to each metrics endpoint again
  • Also, i didn't add support to filter the metric by labels

@FedeDP FedeDP force-pushed the new/e2e_tests_metrics_checker branch 8 times, most recently from 2cfb752 to aff6003 Compare September 10, 2025 10:37
@FedeDP FedeDP force-pushed the new/e2e_tests_metrics_checker branch from aff6003 to 162d399 Compare September 10, 2025 12:30
@FedeDP FedeDP marked this pull request as ready for review September 10, 2025 14:43
@FedeDP FedeDP requested a review from a team as a code owner September 10, 2025 14:43
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.

e2e-framework: implement metricschecker
1 participant