Skip to content

Support for match_enhancements in the helm chart #273

Locked Answered by jertel
tsboris asked this question in Q&A
Discussion options

You must be logged in to vote

You wouldn't normally modify the helm directory in this situation. Instead, use the volume mount settings:

Then, per the various Kubernetes volume mount methods, you would source the custom enhancement contents from a ConfigMap, Secret, host file, etc. A simple way to accomplish this is by using a ConfigMap. Ex:

apiVersion: v1
kind: ConfigMap
metadata:
  name: elastalert2-enhancements
  namespace: default
data:
  timestamp_conversion.py: |
    from elastalert.enhancements import BaseEnhancement

    class ConvertTime(BaseEnhancement):
    def process(self, match):
        # your custom converter code goes here

Apply that ConfigMap to your ElastAlert2 namespace. Then customize the volume…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@tsboris
Comment options

Answer selected by tsboris
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #272 on June 14, 2021 13:34.