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

Multiples Teams Sink does not works as expected #1456

Closed
antikilahdjs opened this issue Jun 14, 2024 · 3 comments
Closed

Multiples Teams Sink does not works as expected #1456

antikilahdjs opened this issue Jun 14, 2024 · 3 comments

Comments

@antikilahdjs
Copy link

Describe the bug
Hello all.

It is possible Robusta works with 2 or more Teams sink as well? I am facing some issues and the alerts like medium/low is not reach me out. I do not know why , but just the debug works as well. For the high condition is never is routed to another sink like my yaml below

My configuration is

sinksConfig:
- ms_teams_sink:
    name: main_ms_teams_sink_general
    webhook_url: myteamshook1
    match:
      severity: [LOW, MEDIUM, DEBUG]
    default: true
- ms_teams_sink:
    name: main_ms_teams_sink_critical
    webhook_url: myteamshook2
    scope:
      exclude:
        - labels: "app/ioxxxxx.*"
    match:
      severity: [HIGH]
    default: false

To Reproduce
Steps to reproduce the behavior:

  1. Add the sink like described
  2. Install the helm as well

Expected behavior
If possible I would like to know how to configure to works correctly it because I had tried many approach.

If I configure just the single SINK it works normally

Screenshots
If applicable, add screenshots to help explain your problem.

@arikalon1
Copy link
Contributor

Hey @antikilahdjs

Can you please remove the matchers, so you'll get the alerts in teams, and share examples of an alert with a HIGH and LOW severities?

@arikalon1
Copy link
Contributor

@antikilahdjs , I think you should not use the default parameter
and I think you should use the scope for routing, and not the match which is the old format.

I think what you want is this:

sinksConfig:
- ms_teams_sink:
    name: main_ms_teams_sink_general
    webhook_url: myteamshook1
    scope:
      include:
        - severity:
            - DEBUG
            - INFO
            - LOW
- ms_teams_sink:
    name: main_ms_teams_sink_critical
    webhook_url: myteamshook2
    scope:
      include:
        - severity:
            - HIGH
            - MEDIUM

Does that help?

@antikilahdjs
Copy link
Author

@arikalon1 Hello,

I really appreciate that and sorry maybe I did not understood the documentation as well. I will test it , again thank you so much

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

No branches or pull requests

2 participants