aboutsummaryrefslogtreecommitdiff
path: root/defaults/main.yml
blob: afe262760fff44cd38491b65b1bf1b350c26b4e6 (plain) (blame)
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
---

# Use this to override the template for more complicated uses
prometheus_template_source: prometheus/prometheus.yml

prometheus_ui_listen: ':9090'
prometheus_home_dir: /var/lib/prometheus
prometheus_data_dir: '{{prometheus_home_dir}}/data'
prometheus_retention_time: "730d"
prometheus_log: '{{prometheus_home_dir}}/log'
prometheus_user: prometheus
prometheus_version: "2.15.1"
# Should resolve to "linux"
prometheus_os: "{{ansible_facts['system']|lower}}"
prometheus_checksum: f8d2b9e8f9551a3dd6f476a43ea9f699d18d2cc6558baf0eebe0143d8f9c1d5a
prometheus_architecture: amd64
prometheus_url: "https://github.com/prometheus/prometheus/releases/download/v{{prometheus_version}}/prometheus-{{prometheus_version}}.{{prometheus_os}}-{{prometheus_architecture}}.tar.gz"


# Newlines are automatically replaced with spaces
prometheus_opts: |
       --config.file "{{prometheus_home_dir}}/conf/prometheus.yml"
       --storage.tsdb.path "{{prometheus_data_dir}}"
       --storage.tsdb.retention.time "{{prometheus_retention_time}}"
       --web.listen-address "{{prometheus_ui_listen}}"
       --web.enable-admin-api


# The default template makes it easy to scrape Netdata from internal hosts
prometheus_netdata_hosts:
  - localhost:19999

# Only inserted into the template if defined
# prometheus_netdata_tls_hosts:
#   - example.com:19443