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: aggregation functions support for metrics controller #1802

Conversation

rakshitgondwal
Copy link
Member

Fixes #1737

Changes made:

  • Added aggregation functions in the metrics controller.

Signed-off-by: Rakshit Gondwal <rakshitgondwal3@gmail.com>
@netlify
Copy link

netlify bot commented Jul 28, 2023

Deploy Preview for keptn-lifecycle-toolkit ready!

Name Link
🔨 Latest commit 157be77
🔍 Latest deploy log https://app.netlify.com/sites/keptn-lifecycle-toolkit/deploys/64f775b8957e310007dc6010
😎 Deploy Preview https://deploy-preview-1802--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 Jul 28, 2023

Codecov Report

Merging #1802 (028d998) into main (07cc3a9) will decrease coverage by 0.13%.
The diff coverage is 63.15%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1802      +/-   ##
==========================================
- Coverage   84.18%   84.06%   -0.13%     
==========================================
  Files         150      150              
  Lines        9525     9581      +56     
==========================================
+ Hits         8019     8054      +35     
- Misses       1221     1239      +18     
- Partials      285      288       +3     
Files Changed Coverage Δ
...-operator/controllers/common/providers/provider.go 100.00% <ø> (ø)
metrics-operator/controllers/metrics/controller.go 65.32% <63.15%> (-2.33%) ⬇️
Flag Coverage Δ
certificate-operator 68.55% <ø> (ø)
component-tests 59.17% <ø> (ø)
lifecycle-operator 84.94% <ø> (ø)
metrics-operator 85.33% <63.15%> (-0.53%) ⬇️
scheduler 32.12% <ø> (ø)

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

rakshitgondwal and others added 10 commits August 3, 2023 16:56
Signed-off-by: Rakshit Gondwal <rakshitgondwal3@gmail.com>
Signed-off-by: Rakshit Gondwal <98955085+rakshitgondwal@users.noreply.github.com>
Signed-off-by: Rakshit Gondwal <rakshitgondwal3@gmail.com>
Signed-off-by: Rakshit Gondwal <rakshitgondwal3@gmail.com>
Signed-off-by: Rakshit Gondwal <rakshitgondwal3@gmail.com>
Signed-off-by: Rakshit Gondwal <rakshitgondwal3@gmail.com>
@rakshitgondwal rakshitgondwal marked this pull request as ready for review August 24, 2023 12:41
@rakshitgondwal rakshitgondwal requested a review from a team as a code owner August 24, 2023 12:41
rakshitgondwal and others added 2 commits August 24, 2023 18:27
Signed-off-by: Rakshit Gondwal <98955085+rakshitgondwal@users.noreply.github.com>
Signed-off-by: Rakshit Gondwal <rakshitgondwal3@gmail.com>
rakshitgondwal and others added 3 commits August 25, 2023 22:20
Signed-off-by: Rakshit Gondwal <rakshitgondwal3@gmail.com>
Signed-off-by: Rakshit Gondwal <rakshitgondwal3@gmail.com>
bacherfl
bacherfl previously approved these changes Aug 29, 2023
Copy link
Member

@bacherfl bacherfl left a comment

Choose a reason for hiding this comment

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

LGTM! Just tried out this new functionality on my cluster. To also reach the getStepQueryResults function in the unit tests, we will need to do some refactoring, but this will exceed the scope of this PR. I will create a follow up issue to tackle the refactoring

thisthat
thisthat previously approved these changes Sep 4, 2023
Signed-off-by: Rakshit Gondwal <98955085+rakshitgondwal@users.noreply.github.com>
Signed-off-by: Rakshit Gondwal <rakshitgondwal3@gmail.com>
Signed-off-by: Rakshit Gondwal <rakshitgondwal3@gmail.com>
@sonarcloud
Copy link

sonarcloud bot commented Sep 5, 2023

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 2 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@odubajDT odubajDT merged commit 678c4c9 into keptn:main Sep 7, 2023
36 of 37 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.

Modify metrics-controller to apply Aggregation functions
4 participants