summarylogtreecommitdiffstats
path: root/thanos.service
blob: 1340f503b0e2336b189b2cfa3d16e674d5d40b63 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
[Unit]
Description=Thanos for Prometheus 
Requires=network-online.target
After=network-online.target

[Service]
User=thanos
Group=thanos
Restart=on-failure
EnvironmentFile=-/etc/thanos/%i.conf
ExecStart=/usr/bin/thanos %i $THANOS_ARGS $CLUSTER_ARGS
ExecReload=/bin/kill -HUP $MAINPID
NoNewPrivileges=true
ProtectHome=true
ProtectSystem=strict
ReadWritePaths=/var/lib/prometheus
ConfigurationDirectory=etc/thanos
StateDirectory=var/lib/thanos

[Install]
WantedBy=multi-user.target