Skip to content

Commit

Permalink
Fixes #175: Allow configuration of Prometheus time series retention t…
Browse files Browse the repository at this point in the history
…ime.
  • Loading branch information
geerlingguy committed Nov 30, 2022
1 parent 35badb3 commit 414e672
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions example.config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ prometheus_monitor_prometheus: false
prometheus_node_exporter_targets:
- 'nodeexp:9100'
prometheus_extra_scrape_configs: ''
prometheus_tsdb_retention_time: 90d

# Shelly Plug configuration. (Also requires `monitoring_enable`)
shelly_plug_enable: false
Expand Down
2 changes: 1 addition & 1 deletion templates/docker-compose.yml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ services:
command:
- '--config.file=/etc/prometheus/prometheus.yml'
- '--storage.tsdb.path=/prometheus'
- '--storage.tsdb.retention.time=90d'
- '--storage.tsdb.retention.time={{ prometheus_tsdb_retention_time }}'
- '--web.console.libraries=/usr/share/prometheus/console_libraries'
- '--web.console.templates=/usr/share/prometheus/consoles'
ports:
Expand Down

0 comments on commit 414e672

Please sign in to comment.