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