Skip to content

Commit

Permalink
feat(dashboard): correct escaping for k8s vars
Browse files Browse the repository at this point in the history
  • Loading branch information
Atrax1 committed Apr 16, 2024
1 parent 512704d commit 4217618
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dashboard-lib/k8s-pods/component.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,15 +31,15 @@ func vars(p Props) []dashboard.Option {
query.DataSource(p.PrometheusDataSource),
query.Multiple(),
query.IncludeAll(),
query.Request("label_values(up{namespace=\"$namespace\"}, job)"),
query.Request(`label_values(up{namespace="$namespace"}, job)`),
query.Sort(query.NumericalAsc),
),
dashboard.VariableAsQuery(
"pod",
query.DataSource(p.PrometheusDataSource),
query.Multiple(),
query.IncludeAll(),
query.Request("label_values(up{namespace=\"$namespace\", job=\"$job\"}, pod)"),
query.Request(`label_values(up{namespace="$namespace", job="$job"}, pod)`),
query.Sort(query.NumericalAsc),
),
}
Expand Down

0 comments on commit 4217618

Please sign in to comment.