diff options
author | Ilya Mashchenko <ilya@netdata.cloud> | 2022-06-02 22:49:36 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-02 22:49:36 +0300 |
commit | 7772d35db617fc268a5f8e79d85fc093bef43a8d (patch) | |
tree | 1b8a023d115c6fb9cc93f1b031d4ae5d6a190207 /collectors | |
parent | 446ac867e414da2c920e8ea7dbc9f7c9a7faebd1 (diff) |
fix(cgroup.plugin): read k8s_cluster_name label from the correct file (#13062)
Diffstat (limited to 'collectors')
-rwxr-xr-x | collectors/cgroups.plugin/cgroup-name.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/collectors/cgroups.plugin/cgroup-name.sh b/collectors/cgroups.plugin/cgroup-name.sh index 25d8ebd22b..00d7e614c4 100755 --- a/collectors/cgroups.plugin/cgroup-name.sh +++ b/collectors/cgroups.plugin/cgroup-name.sh @@ -261,7 +261,7 @@ function k8s_get_kubepod_name() { IFS= read -r kube_cluster_name 2>/dev/null <"$tmp_kube_cluster_name" else IFS= read -r kube_system_uid 2>/dev/null <"$tmp_kube_system_ns_uid_file" - IFS= read -r kube_cluster_name 2>/dev/null <"$tmp_kube_containers_file" + IFS= read -r kube_cluster_name 2>/dev/null <"$tmp_kube_cluster_name" [ -z "$kube_cluster_name" ] && ! kube_cluster_name=$(k8s_gcp_get_cluster_name) && kube_cluster_name="unknown" local kube_system_ns |