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

Fw 2.9.0 migration #16

Open
wants to merge 60 commits into
base: 2.9.0_base
Choose a base branch
from
Open

Fw 2.9.0 migration #16

wants to merge 60 commits into from

Conversation

ajaywk7
Copy link
Collaborator

@ajaywk7 ajaywk7 commented Mar 9, 2023

No description provided.

Dockerfile Outdated

RUN pip show elastalert2

RUN echo "coming here..."
Copy link
Collaborator

Choose a reason for hiding this comment

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

can we remove this print statement?

Dockerfile Outdated
RUN echo "coming here..."
RUN ls /usr/local/lib/
RUN ls /usr/lib/
RUN ls /lib/
Copy link
Collaborator

Choose a reason for hiding this comment

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

these ls statement are required ?

commands.sh Outdated
@@ -0,0 +1,5 @@
#!/bin/bash
echo "creating elastalert indices"
python -m elastalert.create_index --config /data/elastalert/config.yaml --verbose
Copy link
Collaborator

Choose a reason for hiding this comment

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

--verbose should be removed from elastalert-create-index ?
verbose argument is not supported in old elastalert and throws an error. Is it working for new elastalert

Copy link
Collaborator

@aravind-musigumpula aravind-musigumpula left a comment

Choose a reason for hiding this comment

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

LGTM

@@ -32,30 +32,30 @@
packages=find_packages(exclude=["tests"]),
package_data={'elastalert': ['schema.yaml', 'es_mappings/**/*.json']},
install_requires=[
'apscheduler>=3.9.1.post1,<4.0',
'apscheduler>=3.8.1.post1,<4.0',
Copy link
Collaborator

Choose a reason for hiding this comment

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

why other dependencies are downgraded?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Python dependency issues were coming. these versions are what worked perfectly without issues.

elastalert/alerters/alertmanager.py Show resolved Hide resolved
elastalert/elastalert.py Outdated Show resolved Hide resolved
self.thread_data.total_hits = int(res['hits']['total']['value'])
try:
#using backwards compatibile msearch
res = self.thread_data.current_es.msearch(body=request)
Copy link
Collaborator

Choose a reason for hiding this comment

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

If we are removing scroll, how else we are querying again and again?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

yes. this is the first changes made on top of elastalert 0.1.35 - commit

Copy link
Collaborator

Choose a reason for hiding this comment

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

No. that was for exclusively error rate. Isn't it?

aravind-musigumpula and others added 30 commits May 12, 2023 18:50
elastalert error for default operator
[HAYS-4738] fix response and query for percentile query
* updated changes

* added except block in get_new_terms

* new-terms - composite field support added

* updated test-cases for new-term

* new-terms -  made default size 500

* new-terms -  updates test cases

* new-term - set limit for terms_size

* refresh interval - test cases added & other test case fixes

* added missing except block & increase request_timeout in get_all_terms

* bug fix - to avoid crash if new term initializaton fails

* making use_keyword_postfix False by default

* test cases fixed

* added testcase for upper and lower bounds

* moved get_msearch_query to utils

* unnecessary lines removal

* revert initialization exception bypass
[HAYS-4782]query_delay support in conf added
* changing percentage match query

* changing percentage match query in test cases

* changing dependency

* adding size param for percentagMatch rule to get num_hits
* New Term Optimisation - Threshold Feature enabled, removed use of refresh interval, Sliding Terms Window

* Test case updates




---------

Co-authored-by: RashmiRam <[email protected]>
[HAYS-5029] include using use_count_query
…pport, update docker file (#31)

* changing alert data to stingified dict

* checking query_key exist condition before adding

* changing condition to json_paylaod key

* removing extra fucntion

* removing log file

* removing print statement

* chaging count addition condition

* adding adv query support and changign count value of freq

* adding advance query rule

* removing print statements

* adding missed count print statements

* changing condition check

* adding changes to support for OS

* sticking to old version of image

* syntax change

* making all key values as strings

* hardcoding python base image as well

* reverting the change

* changing package version

* removing update

* installing fixed versions

* installing fixed versions

* removing distroless

* changign docker file
* Adding local datastore setup files

* Added header X-Env to router requests if configured

* Added header X-Env to router requests if configured

* Changed X_ENV env variable name to X-ENV

* Revert "Changed X_ENV env variable name to X-ENV"

This reverts commit be627e7.
* changing es package version

* changing elastalert to work for OS clusters
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.

5 participants