Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

/api/search/lookup always return empty list #2052

Closed
tarjintor opened this issue Nov 25, 2020 · 4 comments
Closed

/api/search/lookup always return empty list #2052

tarjintor opened this issue Nov 25, 2020 · 4 comments

Comments

@tarjintor
Copy link

Hello,I am using opentsdb 2.3 and I trying to use grafana's variables,and it use
api/search/lookup
and I try alot of diffirent metrics,it always return empty list,am I use it wrong?

api/search/lookup?m=memory_cache_gauge
{"type":"LOOKUP","metric":"memory_cache_gauge","tags":[],"limit":25,"time":1.0,"results":[],"startIndex":0,"totalResults":0}
@deamerfire
Copy link

When you want to use the lookup function, you need to turn on tracking or increment to enable the meta table

@tarjintor
Copy link
Author

When you want to use the lookup function, you need to turn on tracking or increment to enable the meta table

#tsd.core.meta.enable_tsuid_tracking = true
#tsd.core.meta.enable_tsuid_incrementing = true

Do you mean these configs?

@deamerfire
Copy link

Yes, you should enable one of these config and you can use lookup endpoint

@tarjintor
Copy link
Author

Yes, you should enable one of these config and you can use lookup endpoint

thanks,our opentsdb operator says use these configs will make opentsdb lose performance,so I will try another way to get variables in grafana

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants