robusta-dev / robusta

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

Robusta does not include tags when posting alerts to OpsGenie sink #1109

Open volver-13 opened 11 months ago

volver-13 commented 11 months ago

Describe the bug

Robusta does not include tags when posting alerts to OpsGenie sink

To Reproduce

I have the following sinks configuration:

sinksConfig:
- ms_teams_sink:
    name: main_ms_teams_sink_product_a
    webhook_url: xxxx
    match:
      labels: "business=product_a"
- ms_teams_sink:
    name: main_ms_teams_sink_product_b
    webhook_url: xxxx
    match:
      labels: "business=product_b"
- ms_teams_sink:
    name: main_ms_teams_sink_default
    webhook_url: xxxxx
    match:
      severity: [INFO, LOW, MEDIUM, HIGH]
- opsgenie_sink:
    name: opsgenie_sink
    api_key: <opsgenie_sink_token>
    teams:
    - "SRE-TEAM"
    tags:
    - "application-cluster"
- robusta_sink:
    name: robusta_ui_sink
    token: <robusta_sink_token>

Expected behavior

Sink configured acording to documentation Alerts are posted to OpsGenie with application-cluster tag.

Actual behavior

Unfortunately application-cluster is not included in the alerts in OpsGenie

Robusta version (please complete the following information):

I'm running latest robusta version 0.10.24

aantn commented 10 months ago

Hey, this looks like a bug. If you're interested in helping to fix it, please let us know! We'll be happy to guide you to the right place in the code + with instructions on building Robusta locally.