robusta
robusta copied to clipboard
Add labels as variables for foreign_logs_enricher
Is your feature request related to a problem? For foreign_logs_enricher it is not currently available to use labels as variables. It would be very useful to have this capability to create flexible playbooks.
Describe the solution you'd like Add the capability to use the labels/annotations in the template.
customPlaybooks:
- name: "ServiceLogErrors"
triggers:
- on_prometheus_alert:
alert_name: ServiceLogErrors
actions:
- foreign_logs_enricher:
label_selectors:
- 'app=$labels.service'
warn_on_missing_label: True
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!
Hi @balzat , this has been added to the main branch. It will be part of the next release 0.19.0