hashi-ui icon indicating copy to clipboard operation
hashi-ui copied to clipboard

Consul - Search by key

Open bgilner opened this issue 8 years ago • 4 comments

A useful enhancement would be allowing a search on key for key / value pairs. It could also be implemented and combined with other search functionality into an omnibox.

bgilner avatar Jul 31 '17 19:07 bgilner

Yes, really wanted to do this for a while now :)

jippi avatar Aug 01 '17 07:08 jippi

I actually want to have this as well, so I can use it for linking the health tick marks to the actual service :)

hsmade avatar Sep 27 '17 19:09 hsmade

Proposal: add /consul/:datacenter/services/:service/key/:value Example:

  • /consul/global/services/my-service/tags/sometag
  • /consul/global/services/my-service/ServicePort/1234

If value starts with ~, match is used, else == is used

Notice that we can use the key ServiceID to match for specific allocations.

For KV: /consul/:datacenter/kv/*/:key will return any key in the tree that matches the name

hsmade avatar Sep 29 '17 07:09 hsmade

Are there any plans to support search in KV store?

digger18 avatar Feb 25 '19 07:02 digger18