Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign upNew retention config not working for old metrics? #4788
Comments
This comment has been minimized.
This comment has been minimized.
|
When have you changed Also with 15-days retention, you shouldn't have to change |
This comment has been minimized.
This comment has been minimized.
|
Could you run the https://github.com/prometheus/tsdb/tree/master/cmd/tsdb
also double check in |
This comment has been minimized.
This comment has been minimized.
|
@wolfzhaoshuai any progress with this? |
This comment has been minimized.
This comment has been minimized.
|
@wolfzhaoshuai closing for no activity. Please reopen if you are still facing this and will continue the troubleshooting. |
wolfzhaoshuai commentedOct 26, 2018
I set --storage.tsdb.retention=7d months ago, but this does not met our new need, so I adjusted --storage.tsdb.retention=15d. But when I queried metrics today, I can only find metrics of 7 days.
My config:
/data/apps/prometheus-2.1.0/prometheus --config.file="/data/apps/prometheus-2.1.0/prometheus.yml" --storage.tsdb.path=/data/data/prometheus --storage.tsdb.retention=15d --log.level=debug --storage.tsdb.min-block-duration=1h --storage.tsdb.max-block-duration=3h