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(metrics-operator): expose analysis results as Prometheus Metric #2137

Merged
merged 21 commits into from
Sep 21, 2023

Conversation

bacherfl
Copy link
Member

This PR builds up on #2046 and moves the prometheus metrics aggregation to a separate component, which receives finished analyses via a channel

thisthat and others added 17 commits September 6, 2023 13:46
Signed-off-by: Giovanni Liva <[email protected]>
Signed-off-by: Giovanni Liva <[email protected]>
Signed-off-by: Giovanni Liva <[email protected]>
Signed-off-by: Giovanni Liva <[email protected]>
Signed-off-by: Giovanni Liva <[email protected]>
Signed-off-by: Giovanni Liva <[email protected]>
Signed-off-by: Giovanni Liva <[email protected]>
Signed-off-by: Giovanni Liva <[email protected]>
Signed-off-by: Giovanni Liva <[email protected]>
Signed-off-by: Giovanni Liva <[email protected]>
…ts-metrics

# Conflicts:
#	metrics-operator/controllers/common/analysis/types/types.go
#	test/integration/analysis-controller/01-assert.yaml
Signed-off-by: Florian Bacher <[email protected]>
# Conflicts:
#	metrics-operator/controllers/analysis/controller.go
#	metrics-operator/controllers/analysis/controller_test.go
Signed-off-by: Florian Bacher <[email protected]>
@netlify
Copy link

netlify bot commented Sep 20, 2023

Deploy Preview for keptn-lifecycle-toolkit ready!

Name Link
🔨 Latest commit 2ad1e55
🔍 Latest deploy log https://app.netlify.com/sites/keptn-lifecycle-toolkit/deploys/650ae3dc1b02b900082eabd1
😎 Deploy Preview https://deploy-preview-2137--keptn-lifecycle-toolkit.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@codecov
Copy link

codecov bot commented Sep 20, 2023

Codecov Report

Merging #2137 (f924635) into main (f9fc7c4) will increase coverage by 0.01%.
The diff coverage is 84.21%.

❗ Current head f924635 differs from pull request most recent head cc1e8e3. Consider uploading reports for the commit cc1e8e3 to get more accurate results

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2137      +/-   ##
==========================================
+ Coverage   84.44%   84.45%   +0.01%     
==========================================
  Files         150      151       +1     
  Lines        9634     9723      +89     
==========================================
+ Hits         8135     8212      +77     
- Misses       1217     1225       +8     
- Partials      282      286       +4     
Files Changed Coverage Δ
...perator/controllers/common/analysis/types/types.go 100.00% <ø> (ø)
metrics-operator/pkg/metrics/server.go 63.15% <25.00%> (-1.73%) ⬇️
metrics-operator/pkg/metrics/analysis/results.go 84.00% <84.00%> (ø)
...etrics-operator/controllers/analysis/controller.go 84.34% <100.00%> (+1.65%) ⬆️
...controllers/common/analysis/objective_evaluator.go 93.33% <100.00%> (+0.15%) ⬆️

... and 1 file with indirect coverage changes

Flag Coverage Δ
certificate-operator 65.91% <ø> (ø)
component-tests 58.27% <ø> (+0.20%) ⬆️
lifecycle-operator 84.94% <ø> (ø)
metrics-operator 87.40% <84.21%> (-0.15%) ⬇️
scheduler 32.12% <ø> (ø)

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

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

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 1 Code Smell

No Coverage information No Coverage information
0.0% 0.0% Duplication

@bacherfl bacherfl marked this pull request as ready for review September 20, 2023 13:41
@bacherfl bacherfl requested a review from a team as a code owner September 20, 2023 13:41
Copy link
Contributor

@odubajDT odubajDT left a comment

Choose a reason for hiding this comment

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

Nice work! :)

@bacherfl bacherfl merged commit 47b756c into keptn:main Sep 21, 2023
34 checks passed
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.

4 participants