Skip to content

Commit

Permalink
Adding "logs" into regex since enterprise-logs might be in use (#4438)
Browse files Browse the repository at this point in the history
Signed-off-by: Danny Kopping <danny.kopping@grafana.com>
  • Loading branch information
Danny Kopping authored Oct 8, 2021
1 parent d265e1d commit 1b0e3f8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6588,14 +6588,14 @@
{
"allValue": null,
"datasource": "$datasource",
"definition": "label_values(kube_pod_container_info{image=~\".*loki.*\", container!=\"loki-canary\"}, cluster)",
"definition": "label_values(kube_pod_container_info{image=~\".*(loki|logs).*\", container!=\"loki-canary\"}, cluster)",
"hide": 0,
"includeAll": false,
"label": null,
"multi": false,
"name": "cluster",
"options": [],
"query": "label_values(kube_pod_container_info{image=~\".*loki.*\", container!=\"loki-canary\"}, cluster)",
"query": "label_values(kube_pod_container_info{image=~\".*(loki|logs).*\", container!=\"loki-canary\"}, cluster)",
"refresh": 1,
"regex": "",
"skipUrlSync": false,
Expand All @@ -6609,14 +6609,14 @@
{
"allValue": null,
"datasource": "$datasource",
"definition": "label_values(kube_pod_container_info{image=~\".*loki.*\", cluster=\"$cluster\", container!=\"loki-canary\"}, namespace)",
"definition": "label_values(kube_pod_container_info{image=~\".*(loki|logs).*\", cluster=\"$cluster\", container!=\"loki-canary\"}, namespace)",
"hide": 0,
"includeAll": false,
"label": null,
"multi": false,
"name": "namespace",
"options": [],
"query": "label_values(kube_pod_container_info{image=~\".*loki.*\", cluster=\"$cluster\", container!=\"loki-canary\"}, namespace)",
"query": "label_values(kube_pod_container_info{image=~\".*(loki|logs).*\", cluster=\"$cluster\", container!=\"loki-canary\"}, namespace)",
"refresh": 1,
"regex": "",
"skipUrlSync": false,
Expand Down
4 changes: 2 additions & 2 deletions production/loki-mixin/dashboards/loki-operational.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ local utils = import 'mixin-utils/utils.libsonnet';
namespaceType:: 'query',
namespaceQuery::
if cfg.showMultiCluster then
'kube_pod_container_info{cluster="$cluster", image=~".*loki.*", container!="loki-canary"}'
'kube_pod_container_info{cluster="$cluster", image=~".*(loki|logs).*", container!="loki-canary"}'
else
'kube_pod_container_info',

Expand Down Expand Up @@ -45,7 +45,7 @@ local utils = import 'mixin-utils/utils.libsonnet';
{
variable:: 'cluster',
label:: cfg.clusterLabel,
query:: 'kube_pod_container_info{image=~".*loki.*", container!="loki-canary"}',
query:: 'kube_pod_container_info{image=~".*(loki|logs).*", container!="loki-canary"}',
datasource:: '$datasource',
type:: 'query',
},
Expand Down

0 comments on commit 1b0e3f8

Please sign in to comment.