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

Update verify connection API call #42

Conversation

rsevilla87
Copy link
Member

@rsevilla87 rsevilla87 commented Feb 21, 2024

Type of change

  • Refactor
  • New feature
  • Bug fix
  • Optimization
  • Documentation Update

Description

The previous API call doesn't work in AKS's prometheus instances. Seems like endpoints from the /status path are not exposed

Related Tickets & Documents

  • Related Issue #
  • Closes #

Checklist before requesting a review

  • I have performed a self-review of my code.
  • If it is a core feature, I have added thorough tests.

Signed-off-by: Raul Sevilla <[email protected]>
@rsevilla87 rsevilla87 added the bug Something isn't working label Feb 21, 2024
Copy link

codecov bot commented Feb 21, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (33ff998) 84.79% compared to head (d851906) 84.66%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main      #42      +/-   ##
==========================================
- Coverage   84.79%   84.66%   -0.14%     
==========================================
  Files           6        6              
  Lines         342      339       -3     
==========================================
- Hits          290      287       -3     
  Misses         38       38              
  Partials       14       14              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

return err
}
return nil
_, err := p.Query("up{}", time.Now().UTC().UTC())

Choose a reason for hiding this comment

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

Yes this works, but on a large scale cluster it returns a bulk of data as it checks all target endpoints, hope that is fine.

Copy link

@mukrishn mukrishn left a comment

Choose a reason for hiding this comment

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

lgtm

Copy link
Collaborator

@vishnuchalla vishnuchalla left a comment

Choose a reason for hiding this comment

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

lgtm

@vishnuchalla vishnuchalla merged commit 0140b10 into cloud-bulldozer:main Feb 21, 2024
6 checks passed
@rsevilla87 rsevilla87 deleted the update-prometheus-connection-verify branch February 21, 2024 14:40
vishnuchalla pushed a commit to kube-burner/kube-burner that referenced this pull request Feb 21, 2024
## Type of change

- [ ] Refactor
- [ ] New feature
- [ ] Bug fix
- [x] Optimization
- [ ] Documentation Update

## Description

Includes fix cloud-bulldozer/go-commons#42
cc:  @mukrishn 

## Related Tickets & Documents

- Related Issue #
- Closes #

Signed-off-by: Raul Sevilla <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants