apiVersion: v1
kind: ConfigMap
metadata:
  name: elastalert-unhandledpromise
data:
  unhandledpromise.yaml: |
    name: Unhandled Promise
    type: any
    index: logstash-*
    filter:
    - query:
        query_string:
          query: "*UnhandledPromiseRejection*"
    alert:
    - "post"
    http_post_url: "https://sentry.wu2.prague.office-int.com/api/2/store/?sentry_version=7&sentry_key=25f5c231660f474fb85fb4daeb070029&sentry_secret=3301d25c7ed9434688e4f5bd998b9739&sentry_client=elastalert"
    http_post_payload:
        timestamp: timestamp
        logger: kubernetes.pod_name
        level: level
        message: message
        extra: stack