Skip to content

Fix deprecated Prometheus --storage.tsdb.retention flag#27

Open
shungvo wants to merge 1 commit into
AleksK1NG:masterfrom
shungvo:fix/docker-prometheus-deprecated-flag
Open

Fix deprecated Prometheus --storage.tsdb.retention flag#27
shungvo wants to merge 1 commit into
AleksK1NG:masterfrom
shungvo:fix/docker-prometheus-deprecated-flag

Conversation

@shungvo

@shungvo shungvo commented Jun 29, 2026

Copy link
Copy Markdown

This occurs because newer versions of Prometheus have deprecated the old flag format.

Solution

Changed the flag from:

  • --storage.tsdb.retention=20d (deprecated)

To:

  • --storage.tsdb.retention.time=20d (current format)

Files Changed

  • docker-compose.local.yml
  • docker-compose.dev.yml
  • docker-compose.delve.yml

Testing

Run the following to verify:

docker-compose -f docker-compose.local.yml up prometheus

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant