VictoriaMetrics / ansible-playbooks

Ansible Playbooks for Victoria Metrics monorepo
Apache License 2.0
103 stars 34 forks source link

feat: template for vmalert rules configuration #41

Closed hunter9x closed 1 year ago

hunter9x commented 1 year ago

Overview

vmalert rules are currently fixed in roles/vmalert/files/alerts.yml. This is not flexible, so I changed it to use templates module to increase flexibility and reusability.

zekker6 commented 1 year ago

@hunter9x Thank you for contribution!

Would you mind extending this a little more? Current implementation configures one group called ansible managed..., it would be great if variable could store just an array of groups. That would allow users to configure rules and join those into groups as users would need it, but not how role defines it.