nebula/monitoring/nodeexporter.tf

44 lines
863 B
Terraform
Raw Normal View History

2019-05-12 12:43:48 +00:00
module "nodeexporter" {
name = "nodeexporter"
source = "../modules/container"
image = "prom/node-exporter:latest"
2018-02-09 20:56:31 +00:00
2019-05-12 12:43:48 +00:00
volumes = [
{
host_path = "/proc"
container_path = "/host/proc"
},
{
host_path = "/sys"
container_path = "/host/sys"
},
{
host_path = "/"
container_path = "/rootfs"
read_only = true
},
{
host_path = "/mnt/xwing"
container_path = "/host/mnt"
read_only = true
},
]
2019-03-09 07:52:54 +00:00
2018-02-09 20:56:31 +00:00
command = [
"--path.procfs=/host/proc",
"--path.sysfs=/host/sys",
"--collector.filesystem.ignored-mount-points=\"^/(sys|proc|dev|host|etc)($|/)\"",
2018-02-09 20:56:31 +00:00
]
# TODO FIXME
# networks = [
# docker_network.monitoring.id,
# ]
2018-06-04 14:10:58 +00:00
2018-02-09 20:56:31 +00:00
restart = "unless-stopped"
destroy_grace_seconds = 10
must_run = true
}