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

Slack - Changes from messages #769

Closed
moshloop opened this issue Jul 19, 2024 · 0 comments · Fixed by #772
Closed

Slack - Changes from messages #769

moshloop opened this issue Jul 19, 2024 · 0 comments · Fixed by #772
Assignees

Comments

@moshloop
Copy link
Member

moshloop commented Jul 19, 2024

slack:
  token: xxx
  channels:
    - alerts-*
  rules:
    - mapping:
        severity:
          expr: >
            ":large_red_circle:" in text ? "high" : ":large_orange_circle:" in text ? "med" : "info"
        type:
          expr: >
            regexp.Find(":\w+: \w: (.*)\n|:", text)
        created_at:
        summary:
          expr: text
      config:
        # sequential list of selectors to attach the change to
        - name:
            value: regexp.Find("http://(\w+)", text)
          type:
            value: MongoDB
          tags:
            a: b
        - type:
            value: AWS::Account
      filter:
        #  matchitems: * for any bot, or bot name
        bot: mongodb-atlas-alert-app
        user:
          name: '!*' # skip user message
          displayName:
        # CEL filter
        expr:

The mapping and filtering rules should be externalized so they can be used for generic HTTP / S3 / etc to change lookups

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 a pull request may close this issue.

2 participants