blob: 30cfc8fe5e4ee94b45466ae2e19f8bd5d45a9b41 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
[Unit]
Description=Export Consul service health to Prometheus
Requires=network-online.target
After=network-online.target
[Service]
User=consul_exporter
Restart=on-failure
EnvironmentFile=/etc/conf.d/prometheus-consul-exporter
ExecStart=/usr/bin/prometheus-consul-exporter $CONSUL_EXPORTER_ARGS
NoNewPrivileges=true
PrivateTmp=true
ProtectSystem=strict
ProtectHome=true
ProtectKernelTunables=true
[Install]
WantedBy=multi-user.target
|