robusta-dev / robusta

Better Prometheus alerts for Kubernetes - smart grouping, AI enrichment, and automatic remediation
https://home.robusta.dev/
MIT License
2.61k stars 254 forks source link

Failed to publish finding to sink ops_genie_sink #1635

Open micheleliabe opened 1 day ago

micheleliabe commented 1 day ago

I'm trying to configure an Opsgenie sink to receive notifications, but I'm getting the following error in robusta-runner

2024-11-14 20:14:25.875 ERROR    Failed to publish finding to sink ops_genie_sink
Traceback (most recent call last):
  File "/app/src/robusta/core/playbooks/playbooks_event_handler_impl.py", line 317, in __handle_findings
    sink.write_finding(finding_copy, self.registry.get_sinks().platform_enabled)
  File "/app/src/robusta/core/sinks/opsgenie/opsgenie_sink.py", line 80, in write_finding
    self.__open_alert(finding, platform_enabled)
  File "/app/src/robusta/core/sinks/opsgenie/opsgenie_sink.py", line 58, in __open_alert
    details = self.__to_details(finding)
              ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/app/src/robusta/core/sinks/opsgenie/opsgenie_sink.py", line 108, in __to_details
    if self.conf.extra_details_labels:
       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'Configuration' object has no attribute 'extra_details_labels'

Here’s my Helm configuration:

github-actions[bot] commented 1 day ago

Hi 👋, thanks for opening an issue! Please note, it may take some time for us to respond, but we'll get back to you as soon as we can!