-
Notifications
You must be signed in to change notification settings - Fork 162
Expand file tree
/
Copy pathexporter.tmpl
More file actions
39 lines (38 loc) · 1.27 KB
/
exporter.tmpl
File metadata and controls
39 lines (38 loc) · 1.27 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# Autogenerated - DO NOT MODIFY THIS FILE DIRECTLY
# If you want to overwrite some of these values with your own customizations,
# please add them to `override/exporter.yml`.
#
# See https://docs.docker.com/compose/extends/#adding-and-overriding-configuration
# for more information on overriding specific parameters of docker-compose files.
services:
node-exporter:
image: {{.Exporter.ContainerTag}}
container_name: {{.Smartnode.ProjectName}}_exporter
cap_drop:
- ALL
user: "65534:65534"
restart: unless-stopped
command:
- "--path.procfs=/host/proc"
- "--path.sysfs=/host/sys"
- "--collector.textfile.directory=/host/textfile_collector"
- "--web.listen-address=:{{or .ExporterMetricsPort.Value "9103"}}"
{{- if .Exporter.RootFs.Value }}
- "--path.rootfs=/rootfs"
{{- end}}
{{- range $flag := .GetExporterAdditionalFlags}}
- "{{$flag}}"
{{- end}}
volumes:
- "/proc:/host/proc:ro,rslave"
- "/sys:/host/sys:ro,rslave"
- "/var/lib/node_exporter/textfile_collector:/host/textfile_collector:ro"
{{- if .Exporter.RootFs.Value }}
- "/:/rootfs:ro,rslave"
{{- end}}
network_mode: host
networks:
net:
{{- if .IsIPv6Enabled}}
enable_ipv6: true
{{- end}}