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

poc: integrate KeptnMetrics into Flagger analysis #3371

Closed
wants to merge 3 commits into from

Conversation

bacherfl
Copy link
Member

Draft PR for a PoC - DO NOT MERGE

Part of #3050

@github-actions github-actions bot added the documentation Improvements or additions to documentation label Mar 29, 2024
Copy link

codecov bot commented Mar 29, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 85.31%. Comparing base (a34b8e5) to head (86755e3).
Report is 292 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3371      +/-   ##
==========================================
- Coverage   88.04%   85.31%   -2.74%     
==========================================
  Files         176      167       -9     
  Lines        9604     7415    -2189     
==========================================
- Hits         8456     6326    -2130     
+ Misses        854      800      -54     
+ Partials      294      289       -5     

see 48 files with indirect coverage changes

Flag Coverage Δ
certificate-operator 69.23% <ø> (ø)
component-tests 58.04% <ø> (+0.16%) ⬆️
lifecycle-operator 83.42% <ø> (-4.66%) ⬇️
metrics-operator 88.32% <ø> (ø)
scheduler 34.74% <ø> (ø)

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

@mowies mowies added the on hold Do not merge yet label Apr 3, 2024
Signed-off-by: Florian Bacher <[email protected]>
In this example, we are making use of the Prometheus endpoint provided
by Keptn (i.e. the metrics-operator), which serves the values of all `KeptnMetrics`.

This way, we are able to use a Flagger `MetricTemplate` of type `prometheus`,
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
This way, we are able to use a Flagger `MetricTemplate` of type `prometheus`,
This enables us to use a Flagger `MetricTemplate` of type `prometheus`,

by Keptn (i.e. the metrics-operator), which serves the values of all `KeptnMetrics`.

This way, we are able to use a Flagger `MetricTemplate` of type `prometheus`,
which retrieves the value from a Prometheus instance that has access to the `KeptnMetrics`.
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
which retrieves the value from a Prometheus instance that has access to the `KeptnMetrics`.
which retrieves the value from a Prometheus instance that has access to the `KeptnMetrics` resource.

The example is based on the [Istio Canary Deployments tutorial](https://docs.flagger.app/tutorials/istio-progressive-delivery)
provided in the Flagger docs.

The difference to the tutorial is that instead of using the `request-duration` duration
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
The difference to the tutorial is that instead of using the `request-duration` duration
The difference from the tutorial is that, instead of using the `request-duration` duration

Signed-off-by: Florian Bacher <[email protected]>
Copy link

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud

Copy link
Contributor

This PR has been automatically marked as stale because it has not had recent activity. It will be
closed if no further activity occurs. Thank you for your contributions.

@github-actions github-actions bot added the stale label Oct 10, 2024
@mowies
Copy link
Member

mowies commented Oct 10, 2024

since this is an old PoC i believe we can close it, please re-open if needed

@mowies mowies closed this Oct 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation on hold Do not merge yet stale
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants