Add grafana_alloy role: scrape log files to Loki
This commit is contained in:
10
roles/grafana_alloy/tasks/configure.yml
Normal file
10
roles/grafana_alloy/tasks/configure.yml
Normal file
@@ -0,0 +1,10 @@
|
||||
---
|
||||
- name: "Configure | Deploy Alloy configuration"
|
||||
notify: "(Re)start Alloy service"
|
||||
ansible.builtin.template:
|
||||
src: config.alloy.j2
|
||||
dest: "{{ grafana_alloy_config_dir }}/config.alloy"
|
||||
owner: "alloy"
|
||||
group: "alloy"
|
||||
mode: "0660"
|
||||
validate: "alloy fmt %s"
|
||||
Reference in New Issue
Block a user