Changeset View
Changeset View
Standalone View
Standalone View
site-modules/profile/templates/thanos/store@.service.erb
- This file was moved from site-modules/profile/templates/thanos/gateway@.service.erb.
# File managed by puppet (class profile::thanos::gateway) | # File managed by puppet (class profile::thanos::store) | ||||
# Manual changes will be overwritten | # Manual changes will be overwritten | ||||
[Unit] | [Unit] | ||||
Description=Thanos gateway instance %i | Description=Thanos store instance %i | ||||
[Service] | [Service] | ||||
Environment=HTTP_ADDRESS= | Environment=HTTP_ADDRESS= | ||||
Environment=GRPC_ADDRESS= | Environment=GRPC_ADDRESS= | ||||
Restart=on-failure | Restart=on-failure | ||||
User=prometheus | User=prometheus | ||||
ExecStart=/opt/thanos/current/thanos store \ | ExecStart=/opt/thanos/current/thanos store \ | ||||
--data-dir $CACHE_DIRECTORY \ | --data-dir $CACHE_DIRECTORY \ | ||||
--objstore.config-file <%= @config_dir %>/objstore-%i.yml \ | --objstore.config-file <%= @config_dir %>/objstore-%i.yml \ | ||||
--http-address $HTTP_ADDRESS \ | --http-address $HTTP_ADDRESS \ | ||||
--grpc-server-tls-cert=<%= @cert_paths['fullchain'] %> --grpc-server-tls-key=<%= @cert_paths['privkey'] %> \ | --grpc-server-tls-cert=<%= @cert_paths['fullchain'] %> --grpc-server-tls-key=<%= @cert_paths['privkey'] %> \ | ||||
--grpc-address $GRPC_ADDRESS | --grpc-address $GRPC_ADDRESS | ||||
ExecReload=/bin/kill -HUP $MAINPID | ExecReload=/bin/kill -HUP $MAINPID | ||||
TimeoutStopSec=20s | TimeoutStopSec=20s | ||||
SendSIGKILL=no | SendSIGKILL=no | ||||
CacheDirectory=thanos/gateway-%i | CacheDirectory=thanos/store-%i | ||||
# systemd hardening-options | # systemd hardening-options | ||||
AmbientCapabilities= | AmbientCapabilities= | ||||
CapabilityBoundingSet= | CapabilityBoundingSet= | ||||
DeviceAllow=/dev/null rw | DeviceAllow=/dev/null rw | ||||
DevicePolicy=strict | DevicePolicy=strict | ||||
LimitMEMLOCK=0 | LimitMEMLOCK=0 | ||||
LimitNOFILE=8192 | LimitNOFILE=8192 | ||||
Show All 18 Lines |