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

Statsd and multi imports #3095

Open
wants to merge 230 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
230 commits
Select commit Hold shift + click to select a range
0fd1f52
corrected spike aggregation support for avg,min,max
dylanjf Jan 11, 2019
49d9b05
correct order of variables for spike alert text
dylanjf Jan 14, 2019
6849cda
linebreak fix for travis CI
dylanjf Jan 14, 2019
ebd3f9e
force elasticsearch 6.3 on build
dylanjf Apr 23, 2019
885896c
Add Docs: Elasticsearch Security Privileges
abhishekjiitr Aug 19, 2019
5326ac9
Enabling to embed images into email alerter
fpompermaier Dec 11, 2019
fbce0fb
agg_type percentiles fixes 2713
Apr 21, 2020
b9963d9
Adjusting elastalert/ruletypes.py so that the functions 'append' and …
gminog-opap Apr 24, 2020
50bcd94
Adjusting elastalert/ruletypes.py so that the functions 'append' and …
gminog-opap Apr 24, 2020
cde4ac3
Add ca certs and ignore ssl to HTTP Post
Goggin Apr 27, 2020
ff899b9
Update Docs for Zabbix
nsano-rururu May 5, 2020
2444267
Add LineNotify to alerts mapping
nsano-rururu May 5, 2020
f6f57a5
Fix SNS Program & Docs
nsano-rururu May 9, 2020
c77c995
Fix SNS Program & Docs_2
nsano-rururu May 9, 2020
7270979
Adds --silence_qk_value option to elastalert
JasperJuergensen May 10, 2020
2c05393
Merge branch 'master' of https://github.com/nsano-rururu/elastalert i…
nsano-rururu May 14, 2020
496a04f
Sync requirements.txt and setup.py & update py-zabbix
nsano-rururu May 22, 2020
cc8d49e
t push origin sync-requirements-and-setupMerge branch 'master' of htt…
nsano-rururu Jun 2, 2020
f8b0415
Added Squadcast http post alert config
raghuchinnannan Jun 10, 2020
fa5a16b
Adjusted the space in the YAML config
raghuchinnannan Jun 10, 2020
c15364a
Replaced tabs with spaces
raghuchinnannan Jun 10, 2020
8a3fa30
Fixed the build error by matching the number of ~ to the length of th…
raghuchinnannan Jun 16, 2020
17ffe9a
Merge branch 'master' of https://github.com/nsano-rururu/elastalert i…
nsano-rururu Jun 21, 2020
a107491
fix attribute error is raised when query ran for future
Swapnil811 Jun 23, 2020
6b04f9e
Fix tests to include new kwarg verify to requests.post
Goggin Jul 9, 2020
a7144d1
Remove Stride integration
nsano-rururu Jul 25, 2020
ef8484c
Remove import HTMLParser
nsano-rururu Jul 25, 2020
d2cb0ed
Fixed checkstyle errors
fpompermaier Jul 27, 2020
b739aaa
kibana discover 7.4/7.5/7.6/7.7/7.8 support
nsano-rururu Aug 12, 2020
39a04aa
Kibana 7.9
nsano-rururu Aug 22, 2020
87ba1d1
TheHive alerter: Allow severity and tlp to be set by rule
defensivedepth Sep 2, 2020
205b735
Merge pull request #1 from defensivedepth/patch-4
jertel Sep 2, 2020
59ad4ac
fix a configuration options of docs
Sep 12, 2020
62924c4
Add support for custom_details in the PagerDuty alerter v2 module
Oct 1, 2020
ef22a8e
Merge branch 'master' of https://github.com/nsano-rururu/elastalert i…
nsano-rururu Oct 16, 2020
d818bfa
Fix initializing self.thread_data.alerts_sent for running elastalert-…
daichi703n Oct 19, 2020
1a42831
adding support for multiple imports and statsd metrics
eladamitpxi Oct 20, 2020
648f199
Add Jinja Requirement to setup.py
sherifabdlnaby Oct 21, 2020
1b4875b
Add Jinja2 Template option to `alert_text_type`
sherifabdlnaby Oct 17, 2020
8f0b5d9
Update Docs about using Jinja2 Template in `alert_text`.
sherifabdlnaby Oct 17, 2020
8f9cf30
fixing statsd reporting
eladamitpxi Oct 21, 2020
a7a0993
fixing statsd reporting
eladamitpxi Oct 21, 2020
be1ee8b
fixing statsd reporting
eladamitpxi Oct 21, 2020
efcbbc3
fixing statsd reporting
eladamitpxi Oct 21, 2020
c69f9ad
fixing statsd reporting
eladamitpxi Oct 21, 2020
a972cb4
fixing statsd reporting
eladamitpxi Oct 21, 2020
6388d67
Setting size to 0 avoids executing the fetch phase of the search maki…
clyfish Oct 22, 2020
a9f0d1d
Fix for the mapping error reported in #2899.
Oct 28, 2020
873f41b
Fix Stomp
nsano-rururu Nov 4, 2020
66d5d22
Del the forgotten code of new_style_string_format
nsano-rururu Nov 7, 2020
814b415
document SNS to AWS SNS
nsano-rururu Nov 7, 2020
c62c1a7
Fix elasticsearch-py versionup test_rule.py error
nsano-rururu Nov 22, 2020
af6e71a
Switch out abandoned blist lib for sortedcontainers lib
jertel Nov 25, 2020
015ee1f
Merge pull request #2 from Yelp/master
jertel Nov 25, 2020
292dcc4
Merge pull request #3 from jertel/master
jertel Nov 25, 2020
ff65ee0
Kibana 7.10
nsano-rururu Dec 9, 2020
b7dc75d
Fix docker test
nsano-rururu Dec 29, 2020
474c69c
Update loaders.py
nsano-rururu Jan 4, 2021
d38ebcd
Update loaders.py
nsano-rururu Jan 11, 2021
f77b746
Update requirements.txt
nsano-rururu Jan 11, 2021
d22e3e5
Update setup.py
nsano-rururu Jan 11, 2021
4b6e09d
Merge pull request #4 from nsano-rururu/fix-docker-test
jertel Jan 12, 2021
7a69cd9
Merge pull request #5 from nsano-rururu/fix_test_rule_error
jertel Jan 12, 2021
4ca0725
Merge pull request #6 from nsano-rururu/fix_stomp
jertel Jan 12, 2021
995e785
Merge pull request #7 from nsano-rururu/fix-linenotify-error
jertel Jan 12, 2021
83ecb8f
Merge remote-tracking branch 'upstream/master' into sync-requirements…
nsano-rururu Jan 12, 2021
f157207
Merge branch 'sync-requirements-and-setup' of https://github.com/nsan…
nsano-rururu Jan 12, 2021
39b5670
Merge remote-tracking branch 'upstream/master' into kibana-discover
nsano-rururu Jan 12, 2021
a6201e2
Merge remote-tracking branch 'upstream/master' into delete-stride-int…
nsano-rururu Jan 12, 2021
4ae95e4
Merge pull request #10 from nsano-rururu/delete-stride-integration
jertel Jan 12, 2021
f6e2364
Merge pull request #9 from daichi703n/fix/initialize_alerts_sent
jertel Jan 12, 2021
a028262
Merge pull request #8 from nsano-rururu/sync-requirements-and-setup
jertel Jan 12, 2021
84c93c8
Fix documents
nsano-rururu Jan 12, 2021
9eaa68e
Undo readme.md and elastalert.rst
nsano-rururu Jan 13, 2021
fc8a275
Merge pull request #12 from nsano-rururu/zabbix-docs-update
jertel Jan 13, 2021
4652409
Merge pull request #13 from nsano-rururu/fix-aws_profile-sns
jertel Jan 13, 2021
dfe7d61
Merge pull request #14 from nsano-rururu/kibana-discover
jertel Jan 13, 2021
c5234ab
Merge pull request #15 from nsano-rururu/fix-documents
jertel Jan 13, 2021
29ea671
Remove hipchat & Fix loaders.py
nsano-rururu Jan 13, 2021
77d301c
Merge pull request #16 from nsano-rururu/remove-hipchat
jertel Jan 13, 2021
5e22bff
Merge pull request #17 from JasperJuergensen/silence_qk_value
jertel Jan 13, 2021
f617c93
Merge branch 'alt' into jinja-engine
sherifabdlnaby Jan 13, 2021
b30a58e
Typo in example_rules/ssh.yaml
nsano-rururu Jan 13, 2021
a9a417c
Remove duplicate property in example config file
nsano-rururu Jan 13, 2021
4b928d7
Fixed the logging property in config.yaml.example
nsano-rururu Jan 13, 2021
5a5c49a
add tzlocal<3.0
nsano-rururu Jan 14, 2021
3bc7297
Update running_elastalert.rst
nsano-rururu Jan 14, 2021
26cc8a6
add opsgenie_addr to docs
nsano-rururu Jan 14, 2021
bb46314
fix ruletypes.rst typo
nsano-rururu Jan 14, 2021
9edf294
Remove Duplicate Key in Schema YAML
nsano-rururu Jan 14, 2021
fd160c5
Merge pull request #18 from sherifabdlnaby/jinja-engine
jertel Jan 14, 2021
a5cabed
Merge pull request #19 from nsano-rururu/fix-example
jertel Jan 14, 2021
b1ac379
Merge pull request #20 from nsano-rururu/add_tzlocal
jertel Jan 14, 2021
2ff1bb5
Merge pull request #21 from nsano-rururu/update_running_elastalert
jertel Jan 14, 2021
d343dd1
Merge pull request #22 from nsano-rururu/add_opsgenie_addr_to_docs
jertel Jan 14, 2021
41acedb
Merge pull request #23 from nsano-rururu/fix_ruletypes_rst
jertel Jan 14, 2021
96a2fa5
Merge pull request #24 from nsano-rururu/remove_duplicate_key_schema_…
jertel Jan 14, 2021
62efda0
fix zabbix
nsano-rururu Jan 14, 2021
3dc6188
Merge remote-tracking branch 'jertel/alt' into fix_zabbix
nsano-rururu Jan 14, 2021
d45a83f
update alert types and Third Party Tools
nsano-rururu Jan 14, 2021
84888b0
Fix Logging inconsistencies
nsano-rururu Jan 14, 2021
6e68281
Merge pull request #25 from nsano-rururu/update_readme
jertel Jan 14, 2021
2b9b815
Merge pull request #26 from nsano-rururu/fix_zabbix
jertel Jan 14, 2021
7ed2e63
Merge pull request #27 from nsano-rururu/fix_logging
jertel Jan 14, 2021
72201da
Fixing slack ssl verification
nsano-rururu Jan 15, 2021
deca0b0
Fix is_enabled not work with reload
nsano-rururu Jan 15, 2021
5b40532
Merge pull request #28 from drboone/fix2899
jertel Jan 15, 2021
cef1961
Merge pull request #29 from nsano-rururu/del_new_style_string_format
jertel Jan 15, 2021
17640fe
Merge pull request #30 from nsano-rururu/fix-slack-ssl-verification
jertel Jan 15, 2021
271f153
Merge pull request #31 from nsano-rururu/fix-is-enabled
jertel Jan 15, 2021
5293cad
adjusting indentation
eladamitpxi Jan 17, 2021
d3f2658
adjusting indentation
eladamitpxi Jan 17, 2021
283f379
fixing underline
eladamitpxi Jan 17, 2021
84a9282
Merge pull request #33 from raghuchinnannan/docs/squadcast-http-alerting
jertel Jan 17, 2021
ad198da
adding statsd to setup.py
eladamitpxi Jan 17, 2021
c41e610
add discord alerter
nsano-rururu Jan 17, 2021
3425e4a
fix ruletypes.rst
nsano-rururu Jan 17, 2021
3c00fac
Merge pull request #34 from nsano-rururu/add_discord
jertel Jan 17, 2021
62c1504
Add CI workflow
jertel Jan 17, 2021
49710aa
Update readme with fork information
jertel Jan 18, 2021
168b2f8
Merge pull request #35 from jertel/ci-test
jertel Jan 18, 2021
1da295b
Merge pull request #36 from Zentrust/master
jertel Jan 21, 2021
0ff08d0
Merge pull request #37 from gminog/master
jertel Jan 21, 2021
15c74e8
Merge pull request #38 from fpompermaier/master
jertel Jan 21, 2021
376ee8c
Merge pull request #39 from abhishekjiitr/add-es-permissions
jertel Jan 21, 2021
fdc6bb7
Merge pull request #40 from Goggin/http_cacerts
jertel Jan 21, 2021
f5298b2
Merge pull request #43 from durarumin/fix_manual
jertel Jan 21, 2021
75cba35
Merge pull request #44 from Swapnil811/bug_in_elastalert
jertel Jan 21, 2021
109c186
Merge pull request #41 from moix/master
jertel Jan 21, 2021
0bf055d
merge resolve
dylanjf Jan 21, 2021
0bcf518
Merge pull request #45 from dylanjf/master
jertel Jan 24, 2021
0bd5192
Add Dingtalk
nsano-rururu Jan 29, 2021
8173a70
Merge pull request #46 from nsano-rururu/add_dingtalk
jertel Jan 30, 2021
f61bb91
Add Chatwork Alerter / Fix a typo
nsano-rururu Jan 30, 2021
ca9d51c
Merge pull request #47 from nsano-rururu/add_chatwork
jertel Jan 30, 2021
6b6af45
Update requirements-dev.txt
nsano-rururu Feb 12, 2021
325d109
Merge pull request #49 from nsano-rururu/update_requirements-dev
jertel Feb 12, 2021
8744930
Creates a new rule config parameter that "use_local_time_for_query".
dilaverdemirel Feb 21, 2021
0fa2e9d
Adds information about the "use_local_time_for_query" parameter.
dilaverdemirel Feb 21, 2021
0dd8cd8
Fixes the documentation error.
dilaverdemirel Feb 21, 2021
b27a50e
Fixes styling problems.
dilaverdemirel Feb 21, 2021
55562c2
Rename "use_local_time_for_query" to "query_timezone".
dilaverdemirel Feb 23, 2021
b5a55ed
Fix styling problem.
dilaverdemirel Feb 23, 2021
1da7fe2
Merge pull request #51 from dilaverdemirel/alt
jertel Feb 23, 2021
6f35f82
allow alerta_severity to be set dynamically
mostafahussein Feb 24, 2021
48aef40
Merge pull request #52 from mostafahussein/alerta-pr
jertel Feb 25, 2021
d54ddf0
Kibana Discover support kibana 7.11
nsano-rururu Feb 25, 2021
9ad0555
Merge pull request #53 from nsano-rururu/kibana-discover711
jertel Feb 25, 2021
6c142ce
Update pylint and tox
nsano-rururu Feb 25, 2021
2424be8
Merge branch 'alt' into pylint27to28-and-tox3214to3220
jertel Feb 25, 2021
0b00df1
Merge pull request #54 from nsano-rururu/pylint27to28-and-tox3214to3220
jertel Feb 25, 2021
a786205
Add a default description for TheHive alerts if one isn't provided
Feb 26, 2021
85d1a7a
Merge pull request #55 from ferozsalam/add-default-thehive-description
jertel Feb 26, 2021
5ce0a44
added docs slack
nsano-rururu Feb 28, 2021
450ebe4
add docs jira_assignee
nsano-rururu Feb 28, 2021
00ff88c
Merge pull request #57 from nsano-rururu/add_docs_slack_parse_overrid…
jertel Feb 28, 2021
746e851
Merge branch 'alt' into add_docs_jira_assignee
jertel Feb 28, 2021
50ba1e0
Merge pull request #58 from nsano-rururu/add_docs_jira_assignee
jertel Feb 28, 2021
c5f1f1c
Update README to point to new docs, deprecate old README
ferozsalam Mar 1, 2021
19063f4
Merge branch 'alt' into update-docs-links
ferozsalam Mar 1, 2021
46e4818
Merge pull request #59 from ferozsalam/update-docs-links
jertel Mar 1, 2021
4f94769
Bump coverage from 5.4 to 5.5
nsano-rururu Mar 1, 2021
91fa14c
Merge pull request #60 from nsano-rururu/coverage54to55
jertel Mar 2, 2021
2f36a08
Remove mention of new alert platforms from the old README
ferozsalam Mar 2, 2021
d3fd9bb
Migrate the FAQ to Read the Docs
ferozsalam Mar 2, 2021
d701105
Docker test python 3.6 to 3.9
nsano-rururu Mar 2, 2021
0e7d68c
Add Markdown converter to dev dependency list
ferozsalam Mar 2, 2021
951c6c1
Format line lengths for readability
ferozsalam Mar 2, 2021
d07d183
Merge pull request #61 from ferozsalam/remove-new-readme-material
jertel Mar 2, 2021
570a24b
Merge branch 'alt' into docker-test_py36topy39
jertel Mar 2, 2021
1a45af9
Merge pull request #62 from nsano-rururu/docker-test_py36topy39
jertel Mar 2, 2021
0ee590f
Merge branch 'alt' into add-faq-documentation
jertel Mar 2, 2021
31f04f4
Update the docs configuration to work better with Markdown
ferozsalam Mar 2, 2021
7cd1055
Merge pull request #63 from ferozsalam/add-faq-documentation
jertel Mar 2, 2021
fb45753
Bump tox from 3.22.0 to 3.23.0
nsano-rururu Mar 4, 2021
0693c07
Merge pull request #64 from nsano-rururu/tox3220to3230
jertel Mar 4, 2021
f95b9d8
fix docs slack_timeout
nsano-rururu Mar 14, 2021
e438760
Remove unused items in alerta from schema.yaml
nsano-rururu Mar 14, 2021
a33afd3
Update schema.yaml
nsano-rururu Mar 14, 2021
c1081a5
Merge pull request #66 from nsano-rururu/fix_docs_slack_timeout
jertel Mar 14, 2021
a6d65f4
Merge branch 'alt' into delete_schema_yaml_alerta
jertel Mar 14, 2021
c41c2f9
Merge pull request #67 from nsano-rururu/delete_schema_yaml_alerta
jertel Mar 14, 2021
cde1644
Fix search syntax on aggregations
ferozsalam Mar 15, 2021
172bd5f
Update unit tests to match new query structure
ferozsalam Mar 15, 2021
2de4050
Merge pull request #68 from ferozsalam/fix-aggregation-syntax
jertel Mar 15, 2021
14cada5
Bump jinja2 from 2.10.1 to 2.11.3
dependabot[bot] Mar 20, 2021
b5278b0
Merge pull request #69 from jertel/dependabot/pip/jinja2-2.11.3
jertel Mar 20, 2021
0cfe1bf
allow loading jinja templates from filesystem - and to extend templates
drakaru Mar 21, 2021
f15b8aa
update docs
drakaru Mar 21, 2021
c8949c1
Merge pull request #70 from drakaru/alt
jertel Mar 22, 2021
24c6c98
Add alert handler to create Datadog Events
Apr 2, 2021
457501e
Kibana Discover support kibana 7.12
nsano-rururu Apr 4, 2021
ca26362
Merge pull request #72 from nsano-rururu/kibana-discover712
jertel Apr 4, 2021
ab39768
apscheduler>=3.3.0_to_>=3.3.0,<4.0
nsano-rururu Apr 12, 2021
e7f9d4e
Merge pull request #73 from nsano-rururu/apscheduler_version_setting
jertel Apr 13, 2021
45237cc
Update sphinx and elasticsearch-py
nsano-rururu Apr 13, 2021
a25a392
Merge pull request #74 from nsano-rururu/elasticsearch_py_version_up
jertel Apr 13, 2021
955f757
added optional Prometheus metrics endpoint
Apr 16, 2021
606f89e
fix build issues
Apr 19, 2021
7c2ddbe
Merge pull request #75 from nicholasgibson2/add_prometheus_metrics_je…
jertel Apr 19, 2021
63a7cc4
fix compound query key in metric aggregation
just1900 Mar 31, 2021
3d0a285
Unit Test added for metric_aggregation with complex query key and buc…
just1900 Apr 22, 2021
7b99e21
Merge pull request #71 from just1900/alt
jertel Apr 22, 2021
7127d01
Merge remote-tracking branch 'jertel/alt' into add-datadog-alerter
Apr 23, 2021
d348a2f
Add documentation for alert type
Apr 23, 2021
bb141fd
Add test for Datadog alert
Apr 23, 2021
a6e8673
Correct linting errors
Apr 23, 2021
1c6ed32
Merge pull request #81 from 3vanlock/add-datadog-alerter
jertel Apr 23, 2021
1525d85
Merge branch 'alt' into aggs-without-hits
jertel Apr 23, 2021
70933ad
Merge pull request #82 from clyfish/aggs-without-hits
jertel Apr 23, 2021
3c0ad1a
Merge pull request #84 from jertel/alt
jertel Apr 24, 2021
12cba14
Update for Elastalert 2
jertel Apr 24, 2021
9df402f
Switch action to use master branch
jertel Apr 24, 2021
cef5e2b
updated the import directive docs
Apr 24, 2021
7c1cff4
Merge elastalert-docker project; update README
jertel Apr 24, 2021
358a11c
Fix typographical errors.
jertel Apr 24, 2021
57ba69e
Add new issue template to help prevent unnecessary issues from being …
jertel Apr 24, 2021
0fc105e
Add new issue template to help prevent unnecessary issues from being …
jertel Apr 24, 2021
592d226
Correct helm repo instructions
jertel Apr 24, 2021
9f7f470
Correct version in Helm README
jertel Apr 24, 2021
6e1eba2
Create python-publish.yml
jertel Apr 25, 2021
8a55426
Update release procedure and scripts
jertel Apr 25, 2021
aa6bbf5
Update release procedure and scripts
jertel Apr 25, 2021
3778040
Split out release procedure from README into its own file
jertel Apr 25, 2021
df805fc
Split out release procedure from README into its own file
jertel Apr 25, 2021
4180fd4
Split out release procedure from README into its own file
jertel Apr 25, 2021
d47867d
Split out release procedure from README into its own file
jertel Apr 25, 2021
14a4c93
Prepare release 2.0.3 to verify publish actions
jertel Apr 25, 2021
92f84f7
Use consistent description for Helm Chart and Python PIP library
jertel Apr 25, 2021
93309ae
Merge branch 'master' into statsd_and_multi_imports
jertel Apr 25, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .github/ISSUE_TEMPLATE
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
PLEASE READ: The majority of topics are better suited for the Discussion forum. You can access this area by clicking The Discussions link above. Please search the discussions area first, for keywords that could be associated with the problem you are experiencing. If you do not see an existing discussion, please open a new discussion and include sufficient details for someone in the community to help you.

If you are confident you have discovered a legitimate issue, attach logs and reproduction steps to this issue. Failure to provide sufficient information will likely cause this issue to go stale and eventually be deleted.
28 changes: 28 additions & 0 deletions .github/workflows/master_build_test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: master_build_test

# Controls when the action will run.
on:
# Triggers the workflow on push or pull request events but only for the master branch
push:
branches: [ master ]
pull_request:
branches: [ master ]

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
build:
# The type of runner that the job will run on
runs-on: ubuntu-latest

# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2

# Runs a single command using the runners shell
- name: Build and run tests
run: make test-docker
31 changes: 31 additions & 0 deletions .github/workflows/python-publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# This workflow will upload a Python Package using Twine when a release is created
# For more information see: https://help.github.com/en/actions/language-and-framework-guides/using-python-with-github-actions#publishing-to-package-registries

name: upload_python_package

on:
release:
types: [created]

jobs:
deploy:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.x'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install setuptools wheel twine
- name: Build and publish
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }}
run: |
python setup.py sdist bdist_wheel
twine upload dist/*
19 changes: 19 additions & 0 deletions .github/workflows/upload_chart.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: upload_chart

on:
release:
types: [created]

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Helm push chart
env:
HELM_REPO_ACCESS_TOKEN: ${{ secrets.HELM_REPO_ACCESS_TOKEN }}
run: |
wget https://get.helm.sh/helm-v3.2.1-linux-amd64.tar.gz
tar xf helm-v3.2.1-linux-amd64.tar.gz
linux-amd64/helm plugin install https://github.com/chartmuseum/helm-push
linux-amd64/helm push chart/elastalert2 https://charts.banzaicloud.io/gh/Codesim-LLC
27 changes: 0 additions & 27 deletions .secrets.baseline

This file was deleted.

42 changes: 0 additions & 42 deletions .travis.yml

This file was deleted.

36 changes: 36 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
FROM python:alpine as builder

LABEL description="Elastalert 2 suitable for Kubernetes and Helm"
LABEL maintainer="Jason Ertel (jertel at codesim.com)"

RUN apk --update upgrade && \
apk add git && \
rm -rf /var/cache/apk/*

RUN mkdir -p /opt/elastalert && \
git clone https://github.com/jertel/elastalert2 /tmp/elastalert && \
cd /tmp/elastalert && \
pip install setuptools wheel && \
python setup.py sdist bdist_wheel

FROM python:alpine

COPY --from=builder /tmp/elastalert/dist/*.tar.gz /tmp/

RUN apk --update upgrade && \
apk add gcc libffi-dev musl-dev python3-dev openssl-dev tzdata libmagic cargo && \
pip install /tmp/*.tar.gz && \
apk del gcc libffi-dev musl-dev python3-dev openssl-dev cargo && \
rm -rf /var/cache/apk/*

RUN mkdir -p /opt/elastalert && \
echo "#!/bin/sh" >> /opt/elastalert/run.sh && \
echo "set -e" >> /opt/elastalert/run.sh && \
echo "elastalert-create-index --config /opt/config/elastalert_config.yaml" >> /opt/elastalert/run.sh && \
echo "elastalert --config /opt/config/elastalert_config.yaml \"\$@\"" >> /opt/elastalert/run.sh && \
chmod +x /opt/elastalert/run.sh

ENV TZ "UTC"

WORKDIR /opt/elastalert
ENTRYPOINT ["/opt/elastalert/run.sh"]
6 changes: 4 additions & 2 deletions Dockerfile-test
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
FROM ubuntu:latest

RUN apt-get update && apt-get upgrade -y
RUN apt-get -y install build-essential python3.6 python3.6-dev python3-pip libssl-dev git
RUN apt update && apt upgrade -y
RUN apt install software-properties-common -y
RUN add-apt-repository ppa:deadsnakes/ppa
RUN apt -y install build-essential python3.9 python3.9-dev python3-pip libssl-dev git

WORKDIR /home/elastalert

Expand Down
Loading