ansible/roles/thanos/templates/thanos-query-frontend.service.j2
2022-08-30 07:51:26 -05:00

26 lines
765 B
Django/Jinja

{{ ansible_managed | comment }}
[Unit]
Description=Thanos Query Frontend
Wants=network-online.target
After=network-online.target
After=prometheus.service
[Service]
Type=simple
User={{ thanos_user }}
Group={{ thanos_group }}
SyslogIdentifier=thanos-query-frontend
ExecStart={{ thanos_bin_path }}/thanos query-frontend \
--query-range.response-cache-config-file={{ thanos_etc_path }}/cache.yaml \
--labels.response-cache-config-file={{ thanos_etc_path }}/cache.yaml \
{% if thanos_query_frontend_http_address %}
--http-address={{ thanos_query_frontend_http_address }} \
{% endif %}
{% if thanos_query_frontend_downstream_url %}
--query-frontend.downstream-url={{ thanos_query_frontend_downstream_url }} \
{% endif %}
[Install]
WantedBy=multi-user.target