OpenTSDB / opentsdb

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

Query API not returning results #429

Open wattwood opened 9 years ago

wattwood commented 9 years ago

Every request to the http query API returns []. Version: 2.1.0RC1 e.x.: { "queries": [ { "metric": "known.key.here", "tags": { "site":"knownsite" } } ] }

curl -H "Content-Type: application/json" --data @theabove.json http://somewhere:4242/api/query/last []

I have attempted multiple existing metrics, with and without tags. All data returns as [].

pau commented 9 years ago

Just tried /api/query/last in OpenTSDB 2.1.0 RC2, returns empty [] too.

manolama commented 9 years ago

It's been a while since I looked at this, but do you have the meta table setup and populated?

comenglish commented 8 years ago

Just tried /api/query/last in OpenTSDB 2.1.3, returns empty [] too.

manolama commented 8 years ago

@comenglish What are your TSD settings regarding meta data creation?

yuanzhao commented 8 years ago

we hit the same problem on 2.2. the /api/query/last works on our previous 2.1 deployment. after we upgrade it to 2.2, the query returns empty.

comenglish commented 8 years ago

thanks, i have resolve this problem. it's not the tsdb's problem.

2016-02-23 15:15 GMT+08:00 Yuan Zhao notifications@github.com:

we hit the same problem on 2.2. the /api/query/last works on our previous 2.1 deployment. after we upgrade it to 2.2, the query returns empty.

— Reply to this email directly or view it on GitHub https://github.com/OpenTSDB/opentsdb/issues/429#issuecomment-187577949.

胡相伟

geshido commented 8 years ago

Hello @comenglish, what was the problem anyway?

yuandghn commented 7 years ago

Hi team, I added a new property tsd.core.meta.enable_tsuid_tracking = true into opentsdb.conf file, then relaunched tsdb, new data points can be retrieved through /api/query/last without backScan parameter. But the query with backScan parameter still returns []. What the version I used is 2.3.0. Hope it helpful.