Ask Your Question
0

Ceilometer data in mongodb [closed]

asked 2015-01-20 20:09:04 -0500

anonymous user

Anonymous

Is there any feature to automatically delete the ceilometer record in mongodb ? I mean, How should we handle the increasing historical record ?

edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by takahashi
close date 2015-01-21 00:25:46.274437

1 answer

Sort by ยป oldest newest most voted
0

answered 2015-01-20 20:32:03 -0500

9lives gravatar image

Currently ceilometer do not have feature like periodically delete the record in mongodb,if you want delete some of the old record in mongo db, my suggestion is:

  1. backup the mongodb to a remote host via mongo shell scripting
  2. delete old records(eg: records created more than 1 month ago)
  3. create a cron job to make it periodically behavior

for mongo scripting you can find more on http://docs.mongodb.org/manual/refere...

hope that helps!

Vic

edit flag offensive delete link more

Comments

Vic, Thank you for answering my question. I understand it!

takahashi gravatar imagetakahashi ( 2015-01-21 00:25:27 -0500 )edit

i am glad to help, btw please mark this answer by click the 'right tick' symbol on the left side if you think this answer has resolved your question and this will also help other stackers as well if they met the same issue.thanks!

9lives gravatar image9lives ( 2015-01-21 05:24:13 -0500 )edit

Hi if possible, could you share the exact steps you went through to delete the old records?

Thanks

DaveJ gravatar imageDaveJ ( 2015-04-23 09:05:30 -0500 )edit

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2015-01-20 20:09:04 -0500

Seen: 755 times

Last updated: Jan 20 '15