OP#189 add the services
This commit is contained in:
13
templates/prometheus-prune-service.erb
Normal file
13
templates/prometheus-prune-service.erb
Normal file
@@ -0,0 +1,13 @@
|
||||
[Unit]
|
||||
Description=Prometheus TSDB prune service
|
||||
Wants=network-online.target
|
||||
After=network-online.target
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
User=prometheus
|
||||
Group=prometheus
|
||||
EnvironmentFile=<%= @ps_env_file %>
|
||||
ExecStart=<%= @ps_pruning_file %>
|
||||
Nice=10
|
||||
IOWeight=80
|
||||
Reference in New Issue
Block a user