aboutsummaryrefslogtreecommitdiff
path: root/defaults/main.yml
blob: 938c6e76324035c8ab9166bb390326d3c4529d8d (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
---

# 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.13.0"
prometheus_os: "{{ansible_facts['system']|lower}}" # Should resolve to "linux"
prometheus_checksum: af9dea0a130b1b5eddf9f5c2d186e19e0b5493f6d8dde5aa897b46c7437942c7
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