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

DEV-44293 - Support Logz Datasource #19

Merged
merged 7 commits into from
May 30, 2024

Conversation

yasmin-tr
Copy link

@yasmin-tr yasmin-tr commented May 7, 2024

What is this feature?

Support the Logz.io query datasources by adding necessary additions into the elasticsearch and prometheus calls and throughout the system.
Changes were added on the entry points of the different query APIs, to pass the headers of the requests, and in the client side, where the requests to the datasource is being sent.

Why do we need this feature?

To be able to query datasources that are managed in logzio we need to pass relevant headers and params so the query services APIs will accept the calls.

** PR Changes **:

  • Added required changes in elasticsearch and prometheus clients to add logz headers so we can call logz datasources
  • Refactored implementation in logz alert evaluation so we only pass headers because url change is no longer required
  • Added fix to alert evaluation to check if rule routine exists instead of getOrCreate which caused routines not to be created via scheduler if eval called before scheduler updates registry.
  • Added to custom.ini required configs for logz alert evaluation to work (we will probably remove in the future

Special notes for your reviewer:

Please check that:

  • It works as expected from a user's perspective.
  • If this is a pre-GA feature, it is behind a feature toggle.
  • The docs are updated, and if this is a notable improvement, it's added to our What's New doc.

* Added required changes in elasticsearch and prometheus clients to add logz headers so we can call logz datasources
* Refactored implementation in logz alert evaluation so we only pass headers because url change is no longer required
* Added fix to alert evaluation to check if rule routine exists instead of getOrCreate which caused routines not to be created via scheduler if eval called before scheduler updates registry.
* added to custom.ini required configs for logz alert evaluation to work
@yasmin-tr
Copy link
Author

run-test

* Added relevant header for m3 query ervice endpoints on prometheus client
* Added on elasticsearch the relevant queryParams for querySource
@yasmin-tr
Copy link
Author

run-test

@yasmin-tr
Copy link
Author

run-test

@yasmin-tr
Copy link
Author

run-test

2 similar comments
@yasmin-tr
Copy link
Author

run-test

@npololnskii
Copy link

run-test

@yasmin-tr
Copy link
Author

run-test

Fix for prometheus_test.go to work with changes
Logz comments in missing places
@yasmin-tr
Copy link
Author

run-test

@yasmin-tr yasmin-tr merged commit aefe843 into v10.4.x-logzio May 30, 2024
12 of 14 checks passed
@yasmin-tr yasmin-tr deleted the DEV-44293-support-logz-datasources branch September 22, 2024 13:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants