ansible-loki-role/templates/promtail.service.j2

20 lines
419 B
Plaintext
Raw Normal View History

2020-04-19 21:21:00 -03:00
{{ ansible_managed | comment }}
[Unit]
2020-05-04 18:48:42 -03:00
Description=Promtail
2020-04-19 21:21:00 -03:00
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 \
2020-05-04 18:48:42 -03:00
-config.file {{ loki_config_dir }}/promtail.yml
2020-04-19 21:21:00 -03:00
LimitNOFILE=65000
2020-05-04 18:48:42 -03:00
SyslogIdentifier=promtail
2020-04-19 21:21:00 -03:00
Restart=always
[Install]
WantedBy=multi-user.target