Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] 关于click house flow_metrics中表与示例grafana中不符的问题。 #5952

Closed
3 tasks done
syzhang42 opened this issue Mar 29, 2024 · 5 comments
Closed
3 tasks done
Assignees
Labels
bug Something isn't working

Comments

@syzhang42
Copy link

Search before asking

  • I had searched in the issues and found no similar feature requirement.

DeepFlow Component

Grafana Dashbaord

What you expected to happen

我检查了grafana中的查询sql。比如:
image
image
我查看了clickhouse中flow_metrics中的表,非常疑惑的是只有下面这些表,并没有grafana中查询语句提到那些表:
image
是我环境有问题吗?我该如何修复他?

How to reproduce

使用官方部署单个集群案例。

DeepFlow version

v6.4.9

DeepFlow agent list

flannel

Kubernetes CNI

flannel

Operation-System/Kernel version

5.15.0-52-generic

Anything else

No response

Are you willing to submit a PR?

  • Yes I am willing to submit a PR!

Code of Conduct

@syzhang42 syzhang42 added the bug Something isn't working label Mar 29, 2024
@syzhang42
Copy link
Author

我的 agent list:
ID NAME TYPE CTRL_IP CTRL_MAC STATE GROUP EXCEPTIONS REVISION UPGRADE_REVISION
1 ebpf-node1-V2 K8S_VM 172.31.185.136 fa:16:3e:be:92:16 NORMAL default v6.4 9758

2 ebpf-node2-V3 K8S_VM 172.31.186.154 fa:16:3e:41:eb:5b NORMAL default v6.4 9758

@lzf575
Copy link
Contributor

lzf575 commented Mar 29, 2024

v6.5 和main 的 ck中的表名称 和v6.4 中不同了。 你的server使用v6.4版本,而grafana使用了main的,切换grafana为6.4版本的即可。 也可能是开源的grafana打包有问题 @1473371932 确认下

@lzf575 lzf575 assigned 1473371932 and unassigned lzf575 Mar 29, 2024
@1473371932
Copy link
Contributor

#5785

参考一下这个 issue

@sharang sharang closed this as completed Mar 29, 2024
@syzhang42
Copy link
Author

我导出了我的grafana配置:
kubectl get pod deepflow-grafana-746798d66-4g8kv -n deepflow -o yaml > deepflow-grafana-pod.yaml
然后修改了版本并apply,得到如下结果:
image
使用NODE_PORT=$(kubectl get --namespace deepflow -o jsonpath="{.spec.ports[0].nodePort}" services deepflow-grafana)
NODE_IP=$(kubectl get nodes -o jsonpath="{.items[0].status.addresses[0].address}")
echo -e "Grafana URL: http://$NODE_IP:$NODE_PORT \nGrafana auth: admin:deepflow"命令获得我的grafana地址,
遗憾的是我的grafana依旧是新的表
image
是因为grafana没有正常重新加载吗

@1473371932
Copy link
Contributor

Snipaste_2024-04-01_10-17-58
Snipaste_2024-04-01_10-19-05

我建议先把 grafana 重建一下(如果没有进行数据持久化),如果进行了数据持久化,建议先把 dashboard 目录里面的面板都删掉,然后再重建一下

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants