Skip to content

Commit 414e672

Browse files
committed
Fixes #175: Allow configuration of Prometheus time series retention time.
1 parent 35badb3 commit 414e672

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

example.config.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ prometheus_monitor_prometheus: false
3030
prometheus_node_exporter_targets:
3131
- 'nodeexp:9100'
3232
prometheus_extra_scrape_configs: ''
33+
prometheus_tsdb_retention_time: 90d
3334

3435
# Shelly Plug configuration. (Also requires `monitoring_enable`)
3536
shelly_plug_enable: false

templates/docker-compose.yml.j2

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ services:
3535
command:
3636
- '--config.file=/etc/prometheus/prometheus.yml'
3737
- '--storage.tsdb.path=/prometheus'
38-
- '--storage.tsdb.retention.time=90d'
38+
- '--storage.tsdb.retention.time={{ prometheus_tsdb_retention_time }}'
3939
- '--web.console.libraries=/usr/share/prometheus/console_libraries'
4040
- '--web.console.templates=/usr/share/prometheus/consoles'
4141
ports:

0 commit comments

Comments
 (0)