prometheus node and haproxy exporter: fix the systemd unit.
This commit is contained in:
parent
0277b6a2be
commit
de72fca3f7
|
@ -4,9 +4,14 @@ After=network.target
|
|||
|
||||
[Service]
|
||||
Type=simple
|
||||
Restart=on-failure
|
||||
|
||||
User={{ prometheus_h_e_user }}
|
||||
Group={{ prometheus_h_e_user }}
|
||||
|
||||
ExecStart={{ prometheus_h_e_cmd }} {{ prometheus_h_e_opts }} {{ prometheus_h_e_additional_opts }}
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
Alias=node_exporter.service
|
||||
|
||||
|
|
|
@ -4,9 +4,14 @@ After=network.target
|
|||
|
||||
[Service]
|
||||
Type=simple
|
||||
Restart=on-failure
|
||||
|
||||
User={{ prometheus_n_e_user }}
|
||||
Group={{ prometheus_n_e_user }}
|
||||
|
||||
ExecStart={{ prometheus_n_e_cmd }} {{ prometheus_n_e_opts }} {{ prometheus_n_e_additional_opts }} --collector.systemd
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
Alias=node_exporter.service
|
||||
|
||||
|
|
Loading…
Reference in New Issue