diff --git a/main.tf b/main.tf index 8601922..e0df238 100644 --- a/main.tf +++ b/main.tf @@ -1,3 +1,12 @@ +# +# module "node_exporter" { +# source = "git::https://git.dalembert.upmc.fr/terraform/module_alpine_prometheus_node_exporter" +# connection_ip = var.eth0_ip +# connection_private_key = file(var.pm_private_key) +# node_exporter_version = var.node_exporter_version +# } + + resource "null_resource" "alpine_prometheus_node_exporter" { triggers = { source = filesha256("${path.module}/node_exporter.initd") diff --git a/node_exporter.initd b/node_exporter.initd index 85bf99d..17ba63f 100644 --- a/node_exporter.initd +++ b/node_exporter.initd @@ -2,10 +2,13 @@ description="prometheus node exporter" command="/usr/sbin/node_exporter" + +# what to export +# See node_exporter --help command_args="--collector.disable-defaults --collector.cpu --collector.cpufreq --collector.diskstats --collector.filefd --collector.filesystem --collector.loadavg --collector.meminfo --collector.netclass --collector.netstat --collector.os --collector.time --collector.uname --collector.vmstat --web.disable-exporter-metrics " pidfile="/run/${RC_SVCNAME}.pid" # node_exporter stay in backgroud -command_background=true # make a pid for me +command_background=true