This commit is contained in:
Patrick CAO HUU THIEN 2022-11-28 16:00:25 +01:00
parent ac1e893583
commit 309b9e0d04
2 changed files with 13 additions and 1 deletions

View File

@ -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")

View File

@ -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