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

HTTP API Delete Bug #1028

Open karrilamb opened 7 years ago

karrilamb commented 7 years ago

I am using the http api to delete a metric, but after the deletion, the metric still shows in queries. In addition, after deleting the metric, the metric's datapoints are empty and the last timestamp has been set to zero.

I am running the delete from a Node.js delete request with a url like the following: https://tsdb-server:9443/api/query?start=1y-ago&,m=sum:testMetric

I get a 200 response even though the metric still appears in subsequent queries.

manolama commented 7 years ago

Hi, are you calling that url with the DELETE verb? And have you configured tsd.http.query.allow_delete=true in your TSD conf?

karrilamb commented 7 years ago

@manolama Yes, calling with DELETE verb. And yes, configured tsd.http.query.allow_delete=true