-
Notifications
You must be signed in to change notification settings - Fork 110
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to increase data retention duration in Prometheus? #114
Comments
It appears to be this flag |
Using this tag in prometheus.yml file, it is throwing error. Kindly help me where and how I need to configure this tag. |
I think it's a flag that you pass to Prometheus when you boot it up. |
Can you please brief me on where the parameters are passed to Prometheus(eg:setup or bin or etc folders or any file - as i couldn't find them) during the boot up. |
How does your Prometheus server start? Do you have a systemd unit file? |
I am starting Prometheus as a service, by clicking on prometheus.exe |
FYI, i am running on windows machine. |
Got it. So I'm unfamiliar with how Windows made that icon that you click. But if it's a text file that you see Basically you want to issue this to use 2 weeks, instead of just issuing
|
I successfully started prometheus with the following argument in the windows command prompt. and the console no longer announces prometheus is using the default 15 days data retention. |
I believe this is normal in that the system is compacting data and/or restructuring the data internally. So it's not removing data really, it's just shifting it around for optimizations.
I believe there's a config page you can navigate to. This may tell you what you're looking for. |
HI,
I am using Prometheus-2.32.1 version, in the prometheus.yml file how can I increase the duration for data retention.
Thanks,
Sravanthi MS
The text was updated successfully, but these errors were encountered: