You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The data retention in medic monitoring is not working it is taking the default value of 2 months even though i changed the value to 6m in Prometheus image
#92
Open
vyshakssekhar opened this issue
Sep 28, 2023
· 1 comment
This is just a part of the docker-compose I'm provided from medic using where Prometheus image is used, here in the data retention part I have specified it as 6m but it is not taking that whenever more than 2 months of data comes it deletes the remaining data.I need at least 6 months of data to be there. so what to do
The text was updated successfully, but these errors were encountered:
I've moved your ticket from CHT Core to CHT Watchdog, as that's what you're asking about.
The correct way to do this is not edit the compose file, but instead edit the .env file and change this:
PROMETHEUS_RETENTION_TIME=60d
to this:
PROMETHEUS_RETENTION_TIME=180d
Assuming you have just one compose file and haven't added more compose files, shutdown with docker compose down and then start it up with docker compose up -d and then check live config at of promtheus if possible. If you're running it locally it'll be at http://localhost:9090/status:
This is just a part of the docker-compose I'm provided from medic using where Prometheus image is used, here in the data retention part I have specified it as 6m but it is not taking that whenever more than 2 months of data comes it deletes the remaining data.I need at least 6 months of data to be there. so what to do
The text was updated successfully, but these errors were encountered: