influxdb icon indicating copy to clipboard operation
influxdb copied to clipboard

[Feature Request] Allow `WHERE` clause in `show field keys`

Open pkittenis opened this issue 9 years ago • 19 comments

Feature Request

Proposal:

Show field keys API currently only allows for a measurement to be specified.

It would be great to also be able to limit field key list on tag values via where clause, for example:

SHOW FIELD KEYS FROM <measurement> WHERE <tag key>='<tag value>'

Current behavior:

Show field keys only accepts FROM

Desired behavior:

Show field keys to also optionally accept WHERE <tag key>='<tag value>' [AND|OR <..>]

Use case:

Use case is client filtering of key list on a specific tag or set of tags, eg grafana field key list and other visualisation clients.

Without this it is not possible to retrieve a field key list on a specific tag value, all field keys for all tag values in the measurement are returned instead.

This makes it impossible for clients to get which field keys are valid for a particular tag and users are forced to go through a potentially very large field key list and try them out one by one to get which fields belong to the tags they are interested in.

pkittenis avatar May 05 '17 11:05 pkittenis

+1

powertronglobal avatar May 11 '17 14:05 powertronglobal

+1

qi-zhou avatar Jun 05 '17 08:06 qi-zhou

+1

bolausson avatar Jun 12 '17 17:06 bolausson

+1

vhdmsm avatar Jul 31 '17 13:07 vhdmsm

+1

hallvar avatar Mar 13 '18 14:03 hallvar

+1

colin-infersens avatar Jun 12 '18 23:06 colin-infersens

+1 @rbetts , Milestone 1.4.0 passed by. Still in progress?

micbuh avatar Jul 04 '18 13:07 micbuh

+1

samirkerbage avatar Jul 09 '18 18:07 samirkerbage

+1

rasanentimo avatar Sep 05 '18 10:09 rasanentimo

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Jul 24 '19 04:07 stale[bot]

This issue has been automatically closed because it has not had recent activity. Please reopen if this issue is still important to you. Thank you for your contributions.

stale[bot] avatar Jul 31 '19 05:07 stale[bot]

+1

xakrume avatar Sep 03 '19 15:09 xakrume

+1

Hortt avatar Dec 19 '19 13:12 Hortt

+1

klashagel avatar Feb 24 '20 07:02 klashagel

+1 - that would be really valuable

D0mc3k avatar Feb 25 '20 16:02 D0mc3k

+1

fgaetano avatar Mar 25 '20 12:03 fgaetano

+1

rmarabini avatar May 01 '20 07:05 rmarabini

+1

descilla avatar Jan 10 '21 13:01 descilla

+1 this will really be a big improvement! I work with thousands of fields and every time it is almost impossible to know which tag they are connected to. this upgrade would really save a lot of time. It would also be very useful for any troubleshooting regarding incorrect data entry. finally, if you work with grafana you know how precious this is for a thousand other reasons.

danielelopez1 avatar Dec 14 '22 10:12 danielelopez1