On Sat, Jan 5, 2013 at 9:09 AM, Peter Speybrouck
<
peter.sp...@gmail.com> wrote:
> is there any way to do it using the HTTP API?
Not yet, although that could easily be added. Maybe we could add an
extra optional parameter to the /suggest endpoint so you can control
how many results you want back. Would that work for you?
> If I use this: /suggest?type=metrics&q=
> I only get 29 metrics, while
> ./tsdb uid grep metrics '' shows me that there are 120.
It's because the former is pre-configured to return only 25 results,
whereas the command line greps everything.
> A wild character like * doesn't help either.
The /suggest endpoint only does prefix matches.
> An interesting observation perhaps, if I do the same for tagv, I also get 29
> results (from 112 when using ./tsdb)
> Any idea why 29?
It should be 25. It returns 29 due to a bug that I fixed recently in
https://github.com/tsuna/opentsdb/commit/098ab0196be676285baea31e9eae435a14c38611
> Also, is there a way to scan for tags that are defined for a certain metric?
> The website seems to do something like that
This is not possible and would be hard to implement today, because
there is nothing that keeps track of associations between metric names
and tag names.
--
Benoit "tsuna" Sigoure