aboutsummaryrefslogtreecommitdiff
path: root/defaults
diff options
context:
space:
mode:
authorMitch Riedstra <mitch@riedstra.us>2019-09-28 21:06:36 -0400
committerMitch Riedstra <mitch@riedstra.us>2019-09-28 21:06:36 -0400
commit377df0b6841bf61f128c8b9098cc1bf6d506a5b7 (patch)
tree789bc2d3dc46cf1da0a4c62b8e6f49b1ad7fb83b /defaults
parent4d82dba8e2ce90364cb899a293c75ba37cbb791f (diff)
downloadprometheus-377df0b6841bf61f128c8b9098cc1bf6d506a5b7.tar.gz
prometheus-377df0b6841bf61f128c8b9098cc1bf6d506a5b7.tar.xz
Update the role, add some more documentation, and a license
Diffstat (limited to 'defaults')
-rw-r--r--defaults/main.yml19
1 files changed, 16 insertions, 3 deletions
diff --git a/defaults/main.yml b/defaults/main.yml
index 23bdc38..5c9be85 100644
--- a/defaults/main.yml
+++ b/defaults/main.yml
@@ -1,18 +1,31 @@
---
+# 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.7.2"
+prometheus_version: "2.12.0"
prometheus_os: "{{ansible_facts['system']|lower}}" # Should resolve to "linux"
-prometheus_checksum: fca1b17bef8bd19c2ad90caf13d7ffa85e8c4655aa03315fb5e228bd06c4e0ae
+prometheus_checksum: b9f57b6e64fb3048742cfa7dbcc727e1df906d8020ef246a5e81b7959ae97e08
prometheus_architecture: amd64
-# https://github.com/prometheus/prometheus/releases/download/v2.7.2/prometheus-2.7.2.linux-amd64.tar.gz
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