diff --git a/ansible/roles/process-exporter-prometheus/defaults/main.yml b/ansible/roles/process-exporter-prometheus/defaults/main.yml index b08fcc4d3173220aec6bcefe0ea670e35ebadc4e..35f8a35ee62ddc2fae4758e316c102dfd4e4bf00 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 ff7542bf35207264ae7c69e2dba398eb95390e7c..7e04bcfc8f494055c5bff91e235fb81825dc2b1f 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