OpenTSDB / opentsdb

A scalable, distributed Time Series Database.
http://opentsdb.net
GNU Lesser General Public License v2.1
4.99k stars 1.25k forks source link

updating tag values in opentsdb #486

Open gsaray101 opened 9 years ago

gsaray101 commented 9 years ago

Hi group, I really need help updating tag values in opentsdb. I read through the docs but still not clear the best way to do this.

I am pushing cpu, memory utilization data to opentsdb. I would like to tag each server with app name so that I can organize my data based on application, server etc. There are instances of servers where I cannot classified for an application there I will tag the this metrics as other for example

pctCPU

At some point if I know the name of the application this server j2kdc1 belongs to, I want to be able update the tag from Other to some application name like Messaging.

pctCPU

Does any body have any idea, how could I easily do this? Any thoughts?

manolama commented 9 years ago

Unfortunately don't have a way to do that right now. It's pretty involved in that you need to scan all of the rows in HBase for the given metric, write new rows with the new tags, then delete the old ones. I may get to it eventually but if you have time to work on it, that'd be great!

gsaray101 commented 9 years ago

@manolama OpenTSDB is great idea for performance and storage but for it to be really enterprise ready, we have to be able to update the tags on the fly since tags are the integral part of this technology. If you have 10s of thousands of servers etc, writing rows with new tags and deleting the old ones would take very long time to complete and in the mean time stopping updating. That will not work. Is there any other way you could think of to address is this in the mean time?

gsaray101 commented 9 years ago

@manolama Also, you tagged this as medium but if you really use trees based on tags, I think this feature is extremely important to me.

biswaKL commented 6 years ago

Yes this is an very important feature, in data validation point of view, we should be able to tag the data as valid or invalid whenever we want. I am facing a lot of issue because of this and unable to update the tags.