Changing the performance data retention time
- Log in to the Control Center master host as a user with sudo and docker privileges.
Stop the openTSDB writer service.
serviced service stop opentsdb/writer
Execute the following command to list all the services and their SERVICEID values. Take
note of the SERVICEID for the openTSDB reader service. It will be used as an argument in
the following step.
serviced service list
Execute the following command, where $id is the openTSDB reader
SERVICEID and $ttl is your TTL value, in seconds.
serviced service shell $id /opt/opentsdb/set-opentsdb-table-ttl.sh $ttl
Start the openTSDB writer service.
serviced service start opentsdb/writer