Suggest tagk based on metric chosen #276

Open
1tylermitchell opened this Issue Feb 4, 2014 · 4 comments

Projects

None yet

5 participants

@1tylermitchell

Is it possible to use a /suggest request with both a type=tagk and metric= in a request. The goal is to get a list of tags used with a specific metric.
It seems we have to actually run a query to get the valid etags list back, right?
Will some of this ability be in the metadata improvements coming down the pipe?

@jtamplin
Contributor
jtamplin commented Feb 4, 2014

On Tue, Feb 4, 2014 at 2:05 PM, Tyler Mitchell notifications@github.comwrote:

Is it possible to user /suggest request with both a type=tagk and metric=
in a request. Seems we have to actually run a query to get the valid etags
list back?

OpenTSDB doesn't store the notion of which tags/values go with which
metrics except when you actually write a datapoint (and in fact they can
vary). When we were using tags, we had to keep track of that externally.

John A. Tamplin

@1tylermitchell

Thanks John, that makes sense. Seems like something I'd love to push into a metadata table so I don't have to leave OpenTSDB :)
Since you can get the etags list back from a data query, it still looks/feels like there is an underlying way to get at such data...

@nickman
Contributor
nickman commented Feb 4, 2014

I built a Search plugin that maintains a SQL based catalog of metrics. It
eases finding cross-cuts of specific metric combinations or summaries.
It's not documented yet, but there's a brief write up here:
https://groups.google.com/d/msg/opentsdb/3f7u9knHV50/0oHRxzyxUi8J

I'm pushing to stabilize and interested in any feedback if you're
interested.

//Nicholas

On Tue, Feb 4, 2014 at 2:18 PM, Tyler Mitchell notifications@github.comwrote:

Thanks John, that makes sense. Seems like something I'd love to push into
a metadata table so I don't have to leave OpenTSDB :)

Reply to this email directly or view it on GitHubhttps://github.com/OpenTSDB/opentsdb/issues/276#issuecomment-34095909
.

@IzakMarais

Improving the suggest API has been listed as a requirement for Grafana to offer better OpenTSDB query completion support. See this grafana PR where the opentsdb/api/search/lookup was used to improve tagk and tagv suggestions. The PR was rejected since the work would be better done in OpenTSDB as part of the suggest API.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment