typo
This commit is contained in:
parent
ac1e893583
commit
309b9e0d04
9
main.tf
9
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")
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue