tony2001 / pinba_engine

Pinba - MySQL plugin and storage engine
http://pinba.org
GNU General Public License v2.0
475 stars 41 forks source link

Request for pinba_clean() feature #47

Open nhatthm opened 9 years ago

nhatthm commented 9 years ago

Hi,

After 1.1.0, I see we can use PINBA_FLUSH_RESET_DATA with pinba_flush(). But I'd like to have pinba_clean() as well.

I have this scenario:

I start a long running script. In that script, I do many jobs but I only wants to get the data (tags, timer, etc) for each job. I don't want to get the data while initiating the script (before executing jobs) and shutting down (after finishing all the jobs). So as I understand, If I use pinba_flush() after initiating and before executing jobs, it'll send data to pinba server, same for shutting down with pinba.auto_flush. I don't need those data. Therefore, I need pinba_clean() and use it before executing jobs.

Is it ok? What do you think?

Thanks in advance

tony2001 commented 9 years ago

Ok, will do.

nhatthm commented 9 years ago

Thanks a lot man :+1: