X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/fe79ab0df1b03383c52283a3dcd37020bebd08cb..0be244512a2de99fa3757990697d5bb01d9c6c6c:/tools/salt-install/config_examples/multi_host/aws/pillars/prometheus_server.sls diff --git a/tools/salt-install/config_examples/multi_host/aws/pillars/prometheus_server.sls b/tools/salt-install/config_examples/multi_host/aws/pillars/prometheus_server.sls index 9952e3bbc4..26877f35df 100644 --- a/tools/salt-install/config_examples/multi_host/aws/pillars/prometheus_server.sls +++ b/tools/salt-install/config_examples/multi_host/aws/pillars/prometheus_server.sls @@ -5,6 +5,7 @@ {%- set controller_nodes = "__CONTROLLER_NODES__".split(',') %} {%- set enable_balancer = ("__ENABLE_BALANCER__"|to_bool) %} +{%- set data_retention_time = "__PROMETHEUS_DATA_RETENTION_TIME__" %} ### PROMETHEUS prometheus: @@ -18,6 +19,9 @@ prometheus: use_upstream_archive: true component: prometheus: + service: + args: + storage.tsdb.retention.time: {{ data_retention_time }} config: global: scrape_interval: 15s @@ -95,6 +99,7 @@ prometheus: instance: arvados-dispatch-cloud.__CLUSTER__ cluster: __CLUSTER__ + {%- if "__DATABASE_INT_IP__" != "" %} # Database - job_name: postgresql static_configs: @@ -105,6 +110,7 @@ prometheus: labels: instance: database.__CLUSTER__ cluster: __CLUSTER__ + {%- endif %} # Nodes {%- set node_list = "__NODELIST__".split(',') %}