Skip to content

Raw Exec

Tips

Cross platform support

task "node-exporter" {
    driver = "raw_exec"

    config {
        command = "local/node_exporter-1.5.0.linux-${attr.cpu.arch}/node_exporter"
        args = ["--collector.textfile.directory=/var/lib/node_exporter/textfile_collector"]
    }

    artifact {
        source = "https://github.com/prometheus/node_exporter/releases/download/v1.5.0/node_exporter-1.5.0.linux-${attr.cpu.arch}.tar.gz"
    }
}
  • Use the attr.cpu.arch Node attribute to download the correct binary for the node's architecture

Last update: August 12, 2023
Created: May 27, 2023