Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add labels as variables for foreign_logs_enricher #1529

Closed
balzat opened this issue Aug 13, 2024 · 2 comments
Closed

Add labels as variables for foreign_logs_enricher #1529

balzat opened this issue Aug 13, 2024 · 2 comments

Comments

@balzat
Copy link

balzat commented Aug 13, 2024

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
Copy link

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.

@nherment
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants