deepflowio / deepflow

eBPF Observability - Distributed Tracing and Profiling
https://deepflow.io
Apache License 2.0
2.8k stars 308 forks source link

[BUG] Grafana distributed tracing, no k8s clusters display #5766

Closed DrAuYueng closed 6 months ago

DrAuYueng commented 6 months ago

Search before asking

DeepFlow Component

Grafana Dashbaord

What you expected to happen

image

Grafana distributed tracing, no k8s cluster display.

Version: v6.4
It looks like the reason is that the table doesn't exist. DB::Exception: Table flow_metrics.network.1mdoes not exist. (UNKNOWN_TABLE)

How to reproduce

No response

DeepFlow version

Name: deepflow-server community edition Branch: v6.4 CommitID: ae7405521a46f6e66843e70de89a678c4e8542c8 RevCount: 9700 Compiler: go version go1.20.14 linux/amd64 CompileTime: 2024-03-01 09:44:27

DeepFlow agent list

image

Kubernetes CNI

{ "name": "k8s-pod-network", "cniVersion": "0.3.1", "plugins": [ { "type": "calico", "datastore_type": "kubernetes", "mtu": 0, "nodename_file_optional": false, "log_level": "Info", "log_file_path": "/var/log/calico/cni/cni.log", "ipam": { "type": "calico-ipam", "assign_ipv4" : "true", "assign_ipv6" : "false"}, "container_settings": { "allow_ip_forwarding": false }, "policy": { "type": "k8s" }, "kubernetes": { "k8s_api_root":"https://10.96.0.1:443", "kubeconfig": "/etc/cni/net.d/calico-kubeconfig" } }, { "type": "bandwidth", "capabilities": {"bandwidth": true} }, {"type": "portmap", "snat": true, "capabilities": {"portMappings": true}} ] }

Operation-System/Kernel version

Ubuntu 20.04.6 LTS 5.4.0-167-generic

Anything else

No response

Are you willing to submit a PR?

Code of Conduct

1473371932 commented 6 months ago

Execute kubectl describe pods -n deepflow deepflow-grafana-xxx | grep Image: Check the image and init image version used by grafana, and check whether the tag of deepflowio-init-grafana-ds-dh is latest. If the deepflow version you are using is v6.4, you need to change the corresponding version to v6.4, because latest is for the latest version.

DrAuYueng commented 6 months ago

@1473371932 I've adjusted the version of deepflowio-init-grafana-ds-dh to v6.4 and it's working fine now. Thanks.