2.执行以下SQL查询不到数据
SELECT
dictGet(flow_tag.pod_ns_map, 'name', toUInt64(pod_ns_id)) AS value,
dictGet(flow_tag.pod_ns_map, 'name', toUInt64(pod_ns_id)) AS display_name
FROM flow_metrics.network.1m
PREWHERE (('any' IN ('disabled')) OR ('any' IN ('any')) OR (toUInt64(pod_cluster_id) IN (
SELECT id
FROM flow_tag.pod_cluster_map
WHERE name IN ('__any')
))) AND (time >= 1731398650) AND (time <= 1731399550) AND (pod_ns_id != 0)
GROUP BY value
LIMIT 99
3.flow_tag.pd_ns_map表可以查询到数据
DeepFlow version
Name: deepflow-server community edition
Branch: v6.6.6
CommitID: d5e26dd2618cf3dbac2c10594d06d75aab3a38e1
RevCount: 11227
Compiler: go version go1.21.13 linux/amd64
CompileTime: 2024-10-11 05:20:20
Search before asking
DeepFlow Component
Grafana Dashbaord
What you expected to happen
上面是在k8s1.20.3+flannel测试正常截图,但k8s 1.30.4+cilium环境下没有数据, 如下图所示
How to reproduce
1.部署完成后,打开pod map查看namespace变量,没有数据
2.执行以下SQL查询不到数据 SELECT dictGet(flow_tag.pod_ns_map, 'name', toUInt64(pod_ns_id)) AS value, dictGet(flow_tag.pod_ns_map, 'name', toUInt64(pod_ns_id)) AS display_name FROM flow_metrics.
network.1m
PREWHERE (('any' IN ('disabled')) OR ('any' IN ('any')) OR (toUInt64(pod_cluster_id) IN ( SELECT id FROM flow_tag.pod_cluster_map WHERE name IN ('__any') ))) AND (time >= 1731398650) AND (time <= 1731399550) AND (pod_ns_id != 0) GROUP BY value LIMIT 993.flow_tag.pd_ns_map表可以查询到数据
DeepFlow version
Name: deepflow-server community edition Branch: v6.6.6 CommitID: d5e26dd2618cf3dbac2c10594d06d75aab3a38e1 RevCount: 11227 Compiler: go version go1.21.13 linux/amd64 CompileTime: 2024-10-11 05:20:20
11234-36ec980d0212c86f2dedbfba3f067d834b9a2fb1 Name: deepflow-agent community edition Branch: v6.6.6 CommitId: 36ec980d0212c86f2dedbfba3f067d834b9a2fb1 RevCount: 11234 Compiler: rustc 1.77.1 (7cf61ebde 2024-03-27) CompileTime: 2024-10-25 09:22:09
DeepFlow agent list
Kubernetes CNI
cilium 1.16.1
Operation-System/Kernel version
"Anolis OS 8.8" 5.10.134-16.1.3.vip.an8.x86_64
Anything else
pod map,network map能够正常显示拓扑图,pod_namespace表也有数据,直接原因是flow_metrics.
network.1m
表没有相关数据导致,不知道什么原因Are you willing to submit a PR?
Code of Conduct