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

Add labels to Selector by clicking on labels in result set [React UI] #7995

Closed
Hixon10 opened this issue Sep 30, 2020 · 3 comments
Closed

Add labels to Selector by clicking on labels in result set [React UI] #7995

Hixon10 opened this issue Sep 30, 2020 · 3 comments

Comments

@Hixon10
Copy link

Hixon10 commented Sep 30, 2020

  1. I open the Web UI - http://localhost:9090/new/graph
  2. I enter a selector (for example, go_memstats_alloc_bytes)
  3. I receive some results in table. For example:
go_memstats_alloc_bytes{instance="localhost:9090", job="prometheus"} | 20346216
  1. I want to automatically change my selector to go_memstats_alloc_bytes{instance="localhost:9090"}, by click clicking on instance="localhost:9090" in result table.

prom
prom2

This feature dramatically improve my UX, because right now I need to copy labels, and it is really hard task (I need to select label without unnecessary symbols and so on).

@Hixon10 Hixon10 changed the title Add labels to Selector by clicking on labels in result set Add labels to Selector by clicking on labels in result set [React UI] Oct 4, 2020
@hagen1778
Copy link
Contributor

hagen1778 commented May 20, 2022

It might be not trivial to add filter automatically to the query, because the query itself could be very complex.
I'd be happy if label-value pair will be just copied to the buffer when I click on it, so I can decide myself where to paste it.

@roidelapluie
Copy link
Member

This makes sense, I have added the help wanted label.

@beorn7
Copy link
Member

beorn7 commented May 21, 2024

Hello from the bug scrub.

#11229 fixed this issue (more or less).

@beorn7 beorn7 closed this as completed May 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants