ansible-loki-role/templates/promtail.service.j2
Diogenes Pelisson 38e4d7926f configs
2020-05-04 18:48:42 -03:00

20 lines
419 B
Django/Jinja

{{ ansible_managed | comment }}
[Unit]
Description=Promtail
After=network-online.target
[Service]
Type=simple
Environment="GOMAXPROCS={{ ansible_processor_vcpus|default(ansible_processor_count) }}"
ExecReload=/bin/kill -HUP $MAINPID
ExecStart=/usr/local/bin/promtail \
-config.file {{ loki_config_dir }}/promtail.yml
LimitNOFILE=65000
SyslogIdentifier=promtail
Restart=always
[Install]
WantedBy=multi-user.target