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
2 changed files with 16 additions and 2 deletions

View file

@ -50,7 +50,10 @@ alloy_config_default: |
}
prometheus.exporter.unix "local_system" {
enable_collectors = ["systemd"]
enable_collectors = ["systemd", "textfile"]
textfile {
directory = "/var/lib/node_exporter_textfile/"
}
}
prometheus.scrape "scrape_metrics" {

View file

@ -50,7 +50,10 @@ alloy_config_default: |
}
prometheus.exporter.unix "local_system" {
enable_collectors = ["systemd"]
enable_collectors = ["systemd", "textfile"]
textfile {
directory = "/var/lib/node_exporter_textfile/"
}
}
prometheus.scrape "scrape_metrics" {