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

What's a way to obtain the TSUIDs in the database using the OTSBD API? #2265

Open
diegoquintanav opened this issue Jan 11, 2023 · 1 comment

Comments

@diegoquintanav
Copy link

I've read in http://opentsdb.net/docs/build/html/user_guide/uids.html that

When a data point is written to OpenTSDB, the row key is formatted as <metric_UID><tagk1_UID><tagv1_UID>[...<tagkN_UID><tagvN_UID>]

This tsuid value is needed in other queries but I can't manage to retrieve them using the API over HTTP. What's a query to obtain these values mapped to their metrics and tags?

Thanks

@diegoquintanav diegoquintanav changed the title What's a clean way to obtain the TSUIDs in the database? What's a way to obtain the TSUIDs in the database using the OTSBD API? Jan 13, 2023
@ylin30
Copy link

ylin30 commented Apr 16, 2023

/api/uid/tsmeta may help. http://opentsdb.net/docs/build/html/api_http/uid/tsmeta.html

GET requests accept tsuid or metric as parameter and returns tsmeta which includes tsuid.

e.g.,
http://localhost:4242/api/uid/tsmeta?m=sys.cpu.nice&dc=lga

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