alloy(role): enable node exporter textfile collector

Enable the node exporter textfile collector, which allows for collecting
custom statistics in a simple way.
https://github.com/prometheus/node_exporter#textfile-collector
This commit is contained in:
June 2026-11-03 02:12:18 +01:00 • committed by June
commit 52d3d8ecd9

View file

@ -1,6 +1,14 @@
---
- name: Deploy Grafana Alloy with config
block:
- name: Create directory for node_exporter textfile collector
ansible.builtin.file:
path: /var/lib/node_exporter_textfile
state: directory
mode: "0755"
owner: root
group: root
- name: Install Alloy
ansible.builtin.include_tasks: install.yaml