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

Explicitly set allValue for all variables with includeAll #100

Merged
merged 1 commit into from
Feb 29, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions dashboards/user.jsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,10 @@ local templates = [
// Allow viewing dashboard for multiple users
includeAll=true,
multi=true
),
) + {
// Explicitly set '$user_pod' to be `.*` when 'All' is selected, as we always use `$user_pod` as a regex
allValue: '.*',
},
template.new(
// Queries should use the 'instance' label when querying metrics that
// come from collectors present on each node - such as node_exporter or
Expand All @@ -50,7 +53,10 @@ local templates = [
// Allow viewing dashboard for multiple nodes
includeAll=true,
multi=true
),
) + {
// Explicitly set '$instance' to be `.*` when 'All' is selected, as we always use `$instance` as a regex
allValue: '.*',
},
];


Expand Down