prometheus node and haproxy exporter: fix the systemd unit.

This commit is contained in:
Andrea Dell'Amico 2019-06-05 19:03:35 +02:00
parent 0277b6a2be
commit de72fca3f7
2 changed files with 10 additions and 0 deletions

View File

@ -4,9 +4,14 @@ After=network.target
[Service] [Service]
Type=simple Type=simple
Restart=on-failure
User={{ prometheus_h_e_user }} User={{ prometheus_h_e_user }}
Group={{ prometheus_h_e_user }} Group={{ prometheus_h_e_user }}
ExecStart={{ prometheus_h_e_cmd }} {{ prometheus_h_e_opts }} {{ prometheus_h_e_additional_opts }} ExecStart={{ prometheus_h_e_cmd }} {{ prometheus_h_e_opts }} {{ prometheus_h_e_additional_opts }}
[Install]
WantedBy=multi-user.target
Alias=node_exporter.service

View File

@ -4,9 +4,14 @@ After=network.target
[Service] [Service]
Type=simple Type=simple
Restart=on-failure
User={{ prometheus_n_e_user }} User={{ prometheus_n_e_user }}
Group={{ 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 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