-
Notifications
You must be signed in to change notification settings - Fork 54
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
Cannot easily use "all" GitHub labels as a dashboard variable #112
Comments
Would having a "custom all value" in the variable query work here? does it allow for emptystring? |
Directly on GitHub, adding |
Oh I understand now. Gotya. Yeah I'll see what I can come up with. |
Just to add - the exact same issue applies to Milestones too, so if you can figure out a fix it'd be cool to do for both. |
Still facing the same issue, any fix? |
is there any easy way to display the metrics of all repositories? |
Grafana: 7.4.3
Plugin version: 1.0.6
Browser: Firefox 85.0.1 for Ubuntu (actually elementaryOS)
What's happening:
I'm trying to use GitHub labels as a dashboard variable to filter on various things. Adding
label:$labels
for example to a panel query works fine if you select a label from the dropdown.However, if you want to not filter by any label, there doesn't seem to be an easy way to do that.
What I expected to happen:
If I select "All" for labels and my panel queries have
labels:$labels
as part of the query, I'd expect the query to return all results regardless of labels.What I think is causing it:
I don't think GitHub has the notion of a
labels:all
orlabels:*
(correct me if I'm wrong) - if you want all labels, you just don't addlabels
to your query, but that's hard to translate to a panel query as you either have it or you don't.Ideally, if I select "All" for labels and my panel queries have
labels:$labels
as part of the query, there could maybe be some logic to simply remove thelabels:
part of the query.The text was updated successfully, but these errors were encountered: