forked from patrickjahns/ansible-role-promtail
-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.yml
66 lines (53 loc) · 1.94 KB
/
main.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
---
promtail_apt_update_cache: True
promtail_version: "3.0.0"
promtail_dist_url: "https://github.com/grafana/loki/releases/download/v{{ promtail_version }}/promtail-{{ os }}-{{ go_arch }}.zip"
promtail_custom_checksum: ""
promtail_config_dir: /etc/promtail
promtail_config_file_sd_dir: "{{ promtail_config_dir }}/file_sd"
promtail_config_file: "{{ promtail_config_dir }}/promtail.yml"
promtail_config_expand_env: False
promtail_system_user: promtail
promtail_system_group: "{{ promtail_system_user }}"
promtail_user_additional_groups: "{{ 'admin' if os == 'darwin' else 'adm' }}"
promtail_systemd_service_template_file: service.j2
promtail_systemd_service: promtail
promtail_launchd_service_template_file: service.plist.j2
promtail_launchd_service: promtail
promtail_extra_args: []
promtail_binary_local_dir: ""
promtail_binary_propagate: False
promtail_install_dir: /opt/promtail
promtail_tmp_dir: /tmp
promtail_log_level: info
# One of: debug, info, warn, error
promtail_config_server:
http_listen_port: 9080
promtail_loki_server_url: http://127.0.0.1:3100
promtail_config_clients:
- url: "{{ promtail_loki_server_url }}/loki/api/v1/push"
promtail_positions_directory: /var/lib/promtail
promtail_config_positions:
filename: "{{ promtail_positions_directory }}/positions.yml"
promtail_config_scrape_configs: []
# promtail_config_scrape_configs:
# - job_name: system
# entry_parser: raw
# static_configs:
# - targets:
# - localhost
# labels:
# job: varlogs
# host: {{ ansible_hostname }}
# __path__: /var/log/*log
promtail_config_include_default_file_sd_config: True
promtail_config_default_file_sd_config:
- job_name: file_sd
file_sd_configs:
- files:
- "{{ promtail_config_file_sd_dir }}/*.yml"
- "{{ promtail_config_file_sd_dir }}/*.yaml"
- "{{ promtail_config_file_sd_dir }}/*.json"
promtail_target_config: {}
# promtail_target_config:
# sync_period: "10s"