From 1103a07ba45e48ca61c24383f4cd3e88314f5d8b Mon Sep 17 00:00:00 2001 From: David Calvert Date: Sat, 27 Jul 2024 08:04:26 +0200 Subject: [PATCH] fix: created_by_name var in kubernetes-views-namespaces (#117) Signed-off-by: David Calvert --- .pre-commit-config.yaml | 2 +- dashboards/k8s-views-namespaces.json | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 6a1bc2d..d6f325d 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -14,7 +14,7 @@ repos: # Typos - repo: https://github.com/crate-ci/typos - rev: v1.23.2 + rev: v1.23.5 hooks: - id: typos diff --git a/dashboards/k8s-views-namespaces.json b/dashboards/k8s-views-namespaces.json index 62d2ce4..6dc9fef 100644 --- a/dashboards/k8s-views-namespaces.json +++ b/dashboards/k8s-views-namespaces.json @@ -2275,7 +2275,7 @@ "type": "prometheus", "uid": "${datasource}" }, - "definition": "label_values(kube_pod_info{namespace=~\"$namespace\", container!=\"\", cluster=\"$cluster\"},created_by_name)", + "definition": "label_values(kube_pod_info{namespace=~\"$namespace\", cluster=\"$cluster\"},created_by_name)", "description": "Can be used to filter on a specific deployment, statefulset or deamonset (only relevant panels).", "hide": 0, "includeAll": true, @@ -2283,7 +2283,7 @@ "name": "created_by", "options": [], "query": { - "query": "label_values(kube_pod_info{namespace=~\"$namespace\", container!=\"\", cluster=\"$cluster\"},created_by_name)", + "query": "label_values(kube_pod_info{namespace=~\"$namespace\", cluster=\"$cluster\"},created_by_name)", "refId": "PrometheusVariableQueryEditor-VariableQuery" }, "refresh": 2, @@ -2302,6 +2302,6 @@ "timezone": "", "title": "Kubernetes / Views / Namespaces", "uid": "k8s_views_ns", - "version": 34, + "version": 35, "weekStart": "" }