blob: 18bbc7746f20c5b8939f0fa13cf68bfbcfa6a544 (
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.14.0"
# Should resolve to "linux"
prometheus_os: "{{ansible_facts['system']|lower}}"
prometheus_checksum: ddf47223ec716594254df110ee26ad52e66d7d4471ae8edbf9020087396861e5
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
|