EOX GitLab Instance

Skip to content
Snippets Groups Projects
Commit e86ac20e authored by Karl Grube's avatar Karl Grube
Browse files

added option to set how long data is stored

parent 6dbb83d5
No related branches found
No related tags found
No related merge requests found
......@@ -4,3 +4,4 @@ fqdn: "{{inventory_hostname}}"
domain_name: "{{fqdn|replace((ansible_hostname + '.'),'')}}"
alertmanagers: "{{groups['alertmanager']}}"
blackbox_exporters: "{{groups['blackbox_exporter']}}"
prometheus_tsdb_retention_time: 15d
......@@ -10,3 +10,4 @@
dest: /etc/default/prometheus
src: default_prometheus.j2
notify: restart prometheus
tags: prometheus_conf
......@@ -3,6 +3,7 @@
- import_tasks: all.yml
- include_tasks: "{{ansible_os_family|lower}}.yml"
tags: prometheus_conf
- name: client certificates
import_role:
......
# Set the command-line arguments to pass to the server.
ARGS='--web.listen-address="[::1]:9090"'
ARGS='--web.listen-address="[::1]:9090" --storage.tsdb.retention.time="{{prometheus_tsdb_retention_time}}"'
# Prometheus supports the following options:
# --config.file="/etc/prometheus/prometheus.yml"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment