-
Notifications
You must be signed in to change notification settings - Fork 18
/
main.yml
47 lines (35 loc) · 1.65 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
---
prometheus_version: 2.1.0
prometheus_gomaxprocs: "{{ ansible_processor_vcpus|default(ansible_processor_count) }}"
prometheus_service_reload: true
prometheus_user: prometheus
prometheus_group: prometheus
prometheus_global_scrape_interval: 15s
prometheus_global_evaluation_interval: 15s
prometheus_global_scrape_timeout: 10s
prometheus_self_scrape_interval: "{{ prometheus_global_scrape_interval }}"
prometheus_self_evaluation_interval: "{{ prometheus_global_scrape_interval }}"
prometheus_release_name: "prometheus-{{ prometheus_version }}.linux-amd64"
prometheus_root_dir: /opt/prometheus
prometheus_dist_dir: "{{ prometheus_root_dir }}/dist"
prometheus_bin_dir: "{{ prometheus_root_dir }}/current"
prometheus_rules_dir: "{{ prometheus_config_dir }}/rules"
prometheus_file_sd_config_dir: "{{ prometheus_config_dir }}/tgroups"
prometheus_rules_src_dir: "{{ playbook_dir }}/files/rules"
prometheus_config_parts_src_dir: "{{ playbook_dir }}/files/config_parts"
prometheus_tgroups_src_dir: "{{ playbook_dir }}/files/tgroups"
prometheus_config_dir: /etc/prometheus
prometheus_log_dir: /var/log/prometheus
prometheus_pid_path: /var/run/prometheus.pid
prometheus_db_dir: /var/lib/prometheus
prometheus_rules_files: []
prometheus_web_listen_address: ":9090"
prometheus_web_external_url: 'http://localhost:9090/'
prometheus_config_flags:
'--config.file': '{{ prometheus_config_dir }}/prometheus.yml'
'--storage.tsdb.path': '{{ prometheus_db_dir }}'
'--web.listen-address': '{{ prometheus_web_listen_address }}'
'--web.external-url': '{{ prometheus_web_external_url }}'
prometheus_config_flags_extra: {}
prometheus_pam_domain: "prometheus"
prometheus_pam_nofile_value: "1024"