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

feature request: logcli: query label values with a selector from #12953

Open
Kamilcuk opened this issue May 13, 2024 · 0 comments
Open

feature request: logcli: query label values with a selector from #12953

Kamilcuk opened this issue May 13, 2024 · 0 comments
Labels
component/logcli type/feature Something new we should do

Comments

@Kamilcuk
Copy link

Is your feature request related to a problem? Please describe.
I want to know what are all possible values of job label for {source="test"}.

Describe the solution you'd like

logcli labels --since=78h job '{source="test"}'

Describe alternatives you've considered

$ curl -sS -u "$LOKI_USERNAME:$LOKI_PASSWORD" --data-urlencode since=78h --data-urlencode query='{source="test"}' "$LOKI_ADDR/loki/api/v1/label/job/values" | jq -r '.data[]'

Additional context

Hi, thanks, loki is great, I am just missing the feature to pass the query value when doing logcli labels call.

@JStickler JStickler added type/feature Something new we should do component/logcli labels May 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component/logcli type/feature Something new we should do
Projects
None yet
Development

No branches or pull requests

2 participants