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: update Prometheus API to query metrics over a range #1587

Merged

Conversation

rakshitgondwal
Copy link
Member

Partially Fixes (#1012)
Dependency: #1471

Changes made:

  • Updated prometheus.go to query metrics over a time frame

Signed-off-by: Rakshit Gondwal <[email protected]>
@netlify
Copy link

netlify bot commented Jun 20, 2023

Deploy Preview for keptn-lifecycle-toolkit ready!

Name Link
🔨 Latest commit ac9c8ee
🔍 Latest deploy log https://app.netlify.com/sites/keptn-lifecycle-toolkit/deploys/649c8ee5f11b610008e77872
😎 Deploy Preview https://deploy-preview-1587--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 Jun 20, 2023

Codecov Report

Merging #1587 (dff5fd4) into main (72f7038) will increase coverage by 0.10%.
The diff coverage is 84.61%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1587      +/-   ##
==========================================
+ Coverage   63.34%   63.45%   +0.10%     
==========================================
  Files         142      142              
  Lines       10822    10892      +70     
==========================================
+ Hits         6855     6911      +56     
- Misses       3710     3719       +9     
- Partials      257      262       +5     
Impacted Files Coverage Δ
...trollers/common/providers/prometheus/prometheus.go 82.88% <84.61%> (-2.49%) ⬇️

... and 2 files with indirect coverage changes

Flag Coverage Δ
certificate-operator 68.55% <ø> (ø)
component-tests 58.69% <ø> (-0.61%) ⬇️
lifecycle-operator 84.48% <ø> (ø)
metrics-operator 82.26% <84.61%> (-0.06%) ⬇️
scheduler 30.45% <ø> (ø)

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

Signed-off-by: Rakshit Gondwal <[email protected]>
Signed-off-by: Rakshit Gondwal <[email protected]>
rakshitgondwal and others added 8 commits June 26, 2023 17:30
Signed-off-by: Rakshit Gondwal <[email protected]>
Signed-off-by: Rakshit Gondwal <[email protected]>
Signed-off-by: Rakshit Gondwal <[email protected]>
Signed-off-by: Rakshit Gondwal <[email protected]>
Signed-off-by: Rakshit Gondwal <[email protected]>
Signed-off-by: Rakshit Gondwal <[email protected]>
@rakshitgondwal rakshitgondwal marked this pull request as ready for review June 28, 2023 10:32
@rakshitgondwal rakshitgondwal requested a review from a team as a code owner June 28, 2023 10:32
…theus.go

Co-authored-by: Florian Bacher <[email protected]>
Signed-off-by: Rakshit Gondwal <[email protected]>
Co-authored-by: Florian Bacher <[email protected]>
Signed-off-by: Rakshit Gondwal <[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 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

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.

nice work, I think this one is ready now!

@odubajDT odubajDT merged commit 47a3e06 into keptn:main Jun 30, 2023
@odubajDT
Copy link
Contributor

@rakshitgondwal thank you for contribution! :)

@rakshitgondwal
Copy link
Member Author

Thank you for the merge!

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.

3 participants