Delete informations MongoDB Ceilometer

Asked by salvosmat

How may you delete informations MongoDB for Ceiloeter?

Question information

Language:
English Edit question
Status:
Answered
For:
Fuel for OpenStack Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Fabrizio Soppelsa (fsoppelsa) said :
#1

Greetings Salvosmat,

the best way to clean the Ceilometer data in MongoDB is to let Ceilometer do for you through its periodic mechanisms. Configure in /etc/ceilometer/ceilometer.conf the following option to reflect how many seconds you want to save the data:

time_to_live=604800 #one week, should be fine with many installations

However, Ceilometer doesn't phisically delete the data. Find the ceilometer $password in the astute.yaml file on the masternode, and once Ceilometer has deleted the data, shrink physically the database size on the MongoDB master node with this command:

# mongo -u ceilometer -p $password ceilometer
> use admin
> db.repairDatabase()

Best regards,
Fabrizio
Mirantis Fuel Team

Can you help with this problem?

Provide an answer of your own, or ask salvosmat for more information if necessary.

To post a message you must log in.