From abde9dcd8cb31eed071d3e808a739b69448a8e34 Mon Sep 17 00:00:00 2001 From: Keshav Prasad <msknext@gmail.com> Date: Fri, 17 Apr 2020 21:41:45 +0530 Subject: [PATCH] fix: updating retention to 30d (#1399) --- ansible/roles/process-exporter-prometheus/defaults/main.yml | 2 +- .../templates/process_exporter_prometheus_stack.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ansible/roles/process-exporter-prometheus/defaults/main.yml b/ansible/roles/process-exporter-prometheus/defaults/main.yml index b08fcc4d3..35f8a35ee 100644 --- a/ansible/roles/process-exporter-prometheus/defaults/main.yml +++ b/ansible/roles/process-exporter-prometheus/defaults/main.yml @@ -1,6 +1,6 @@ process_exporter_prometheus_reservation_memory: 1G process_exporter_prometheus_limit_memory: 1G -process_exporter_prometheus_storage_retention_time: 90d +process_exporter_prometheus_storage_retention_time: 30d process_exporter_prometheus_stack_files: /opt/docker/stacks/process_exporter_prometheus/stack process_exporter_prometheus_config_files: /opt/docker/stacks/process_exporter_prometheus/config diff --git a/ansible/roles/process-exporter-prometheus/templates/process_exporter_prometheus_stack.yml b/ansible/roles/process-exporter-prometheus/templates/process_exporter_prometheus_stack.yml index ff7542bf3..7e04bcfc8 100644 --- a/ansible/roles/process-exporter-prometheus/templates/process_exporter_prometheus_stack.yml +++ b/ansible/roles/process-exporter-prometheus/templates/process_exporter_prometheus_stack.yml @@ -9,7 +9,7 @@ services: - application_default volumes: - "{{ process_exporter_prometheus_mount_point }}:/prometheus" - command: "--config.file=/etc/prometheus/prometheus.yml --storage.tsdb.path=/prometheus --web.console.libraries=/etc/prometheus/console_libraries --storage.tsdb.retention.time={{prometheus_storage_retention_time}} --web.console.templates=/etc/prometheus/consoles --web.route-prefix={{process_exporter_prometheus_route_prefix}} --web.external-url={{process_exporter_prometheus_web_external_url}} --web.enable-admin-api" + command: "--config.file=/etc/prometheus/prometheus.yml --storage.tsdb.path=/prometheus --web.console.libraries=/etc/prometheus/console_libraries --storage.tsdb.retention.time={{process_exporter_prometheus_storage_retention_time}} --web.console.templates=/etc/prometheus/consoles --web.route-prefix={{process_exporter_prometheus_route_prefix}} --web.external-url={{process_exporter_prometheus_web_external_url}} --web.enable-admin-api" configs: - source: process_exporter_prometheus.yml target: /etc/prometheus/prometheus.yml -- GitLab