robusta-dev / robusta

Kubernetes observability and automation, with an awesome Prometheus integration
https://home.robusta.dev/
MIT License
2.5k stars 247 forks source link

Multiples Teams Sink does not works as expected #1456

Closed antikilahdjs closed 3 weeks ago

antikilahdjs commented 3 weeks ago

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 commented 3 weeks ago

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 commented 3 weeks ago

@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 commented 3 weeks ago

@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