robusta icon indicating copy to clipboard operation
robusta copied to clipboard

Add labels as variables for foreign_logs_enricher

Open balzat opened this issue 1 year ago • 1 comments

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

balzat avatar Aug 13 '24 12:08 balzat

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!

  • 💬 Slack Community: Join Robusta team and other contributors on Slack here.
  • 📖 Docs: Find our documentation here.
  • 🎥 YouTube Channel: Watch our videos here.

github-actions[bot] avatar Aug 13 '24 12:08 github-actions[bot]

Hi @balzat , this has been added to the main branch. It will be part of the next release 0.19.0

nherment avatar Oct 22 '24 04:10 nherment