From a709167beb9ddf13e755c628de4d4abce4821676 Mon Sep 17 00:00:00 2001 From: DeepFlow-pengbin <84362246+1473371932@users.noreply.github.com> Date: Mon, 25 Aug 2025 10:57:24 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E6=8E=A8=E8=8D=90?= =?UTF-8?q?=E9=83=A8=E7=BD=B2=E7=89=88=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../06-production-deployment.md | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/docs/zh/04-best-practice/06-production-deployment.md b/docs/zh/04-best-practice/06-production-deployment.md index 69f02d50..0ef3899a 100644 --- a/docs/zh/04-best-practice/06-production-deployment.md +++ b/docs/zh/04-best-practice/06-production-deployment.md @@ -9,7 +9,7 @@ DeepFlow 生产环境部署建议。 # 使用 LTS 版本 DeepFlow -helm 添加 --version 参数安装最新 LTS 版本 DeepFlow Server 和 Agent +通过 `helm search repo deepflow -l` 查看[最新的 LTS 版本](../release-notes/release-timeline) ## 安装 LTS 版本 DeepFlow Server @@ -21,7 +21,7 @@ helm 添加 --version 参数安装最新 LTS 版本 DeepFlow Server 和 Agent # helm repo add deepflow https://deepflowio.github.io/deepflow helm repo update deepflow # use `helm repo update` when helm < 3.7.0 -helm upgrade --install deepflow -n deepflow deepflow/deepflow --version 6.5.012 --create-namespace +helm upgrade --install deepflow -n deepflow deepflow/deepflow --version 7.0.014 --create-namespace ``` @tab Use Aliyun @@ -38,7 +38,7 @@ helm repo update deepflow # use `helm repo update` when helm < 3.7.0 # image: # repository: registry.cn-beijing.aliyuncs.com/deepflow-ce/grafana # EOF -helm upgrade --install deepflow -n deepflow deepflow/deepflow --version 6.5.012 --create-namespace \ +helm upgrade --install deepflow -n deepflow deepflow/deepflow --version 7.0.014 --create-namespace \ -f values-custom.yaml ``` @@ -63,7 +63,7 @@ helm upgrade --install deepflow -n deepflow deepflow/deepflow --version 6.5.012 # helm repo add deepflow https://deepflowio.github.io/deepflow helm repo update deepflow # use `helm repo update` when helm < 3.7.0 -helm upgrade --install deepflow-agent -n deepflow deepflow/deepflow-agent --version 6.5.012 --create-namespace -f values-custom.yaml +helm upgrade --install deepflow-agent -n deepflow deepflow/deepflow-agent --version 7.0.014 --create-namespace -f values-custom.yaml ``` @tab Use Aliyun @@ -81,7 +81,7 @@ helm upgrade --install deepflow-agent -n deepflow deepflow/deepflow-agent --vers # helm repo add deepflow https://deepflowio.github.io/deepflow helm repo update deepflow # use `helm repo update` when helm < 3.7.0 -helm upgrade --install deepflow-agent -n deepflow deepflow/deepflow-agent --version 6.5.012 --create-namespace -f values-custom.yaml +helm upgrade --install deepflow-agent -n deepflow deepflow/deepflow-agent --version 7.0.014 --create-namespace -f values-custom.yaml ``` ::: @@ -95,7 +95,7 @@ helm upgrade --install deepflow-agent -n deepflow deepflow/deepflow-agent --vers @tab rpm ```bash -curl -O https://deepflow-ce.oss-cn-beijing.aliyuncs.com/rpm/agent/v6.4.9/linux/$(arch | sed 's|x86_64|amd64|' | sed 's|aarch64|arm64|')/deepflow-agent-rpm.zip +curl -O https://deepflow-ce.oss-cn-beijing.aliyuncs.com/rpm/agent/v7.0/linux/$(arch | sed 's|x86_64|amd64|' | sed 's|aarch64|arm64|')/deepflow-agent-rpm.zip unzip deepflow-agent-rpm.zip yum -y localinstall x86_64/deepflow-agent-1.0*.rpm ``` @@ -103,7 +103,7 @@ yum -y localinstall x86_64/deepflow-agent-1.0*.rpm @tab deb ```bash -curl -O https://deepflow-ce.oss-cn-beijing.aliyuncs.com/deb/agent/v6.4.9/linux/$(arch | sed 's|x86_64|amd64|' | sed 's|aarch64|arm64|')/deepflow-agent-deb.zip +curl -O https://deepflow-ce.oss-cn-beijing.aliyuncs.com/deb/agent/v7.0/linux/$(arch | sed 's|x86_64|amd64|' | sed 's|aarch64|arm64|')/deepflow-agent-deb.zip unzip deepflow-agent-deb.zip dpkg -i x86_64/deepflow-agent-1.0*.systemd.deb ``` @@ -111,7 +111,7 @@ dpkg -i x86_64/deepflow-agent-1.0*.systemd.deb @tab binary file ```bash -curl -O https://deepflow-ce.oss-cn-beijing.aliyuncs.com/bin/agent/v6.4.9/linux/$(arch | sed 's|x86_64|amd64|' | sed 's|aarch64|arm64|')/deepflow-agent.tar.gz +curl -O https://deepflow-ce.oss-cn-beijing.aliyuncs.com/bin/agent/v7.0/linux/$(arch | sed 's|x86_64|amd64|' | sed 's|aarch64|arm64|')/deepflow-agent.tar.gz tar -zxvf deepflow-agent.tar.gz -C /usr/sbin/ cat << EOF > /etc/systemd/system/deepflow-agent.service @@ -141,7 +141,7 @@ systemctl daemon-reload 切换 Cli 下载链接至 LTS 版本: ```bash -curl -o /usr/bin/deepflow-ctl https://deepflow-ce.oss-cn-beijing.aliyuncs.com/bin/ctl/v6.4.9/linux/$(arch | sed 's|x86_64|amd64|' | sed 's|aarch64|arm64|')/deepflow-ctl +curl -o /usr/bin/deepflow-ctl https://deepflow-ce.oss-cn-beijing.aliyuncs.com/bin/ctl/v7.0/linux/$(arch | sed 's|x86_64|amd64|' | sed 's|aarch64|arm64|')/deepflow-ctl chmod a+x /usr/bin/deepflow-ctl ``` From 865695cec87d36b36181fd2c47786a3d7becc026 Mon Sep 17 00:00:00 2001 From: DeepFlow-pengbin <84362246+1473371932@users.noreply.github.com> Date: Mon, 25 Aug 2025 10:59:21 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20v6.6/7.0=20=E6=95=B0?= =?UTF-8?q?=E6=8D=AE=E9=87=8F=E6=9F=A5=E8=AF=A2=20SQL?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/zh/04-best-practice/04-reduce-storage-overhead.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/zh/04-best-practice/04-reduce-storage-overhead.md b/docs/zh/04-best-practice/04-reduce-storage-overhead.md index bdb6ccaa..883c4705 100644 --- a/docs/zh/04-best-practice/04-reduce-storage-overhead.md +++ b/docs/zh/04-best-practice/04-reduce-storage-overhead.md @@ -96,10 +96,10 @@ ORDER BY date DESC 根据某个字段的值,区分统计空间消耗。例如:查看 `l7_flow_log` 表中不同应用协议(`l7_protocol`)的行数,以及对应的 `request_resource` 字段的平均长度,评估是否关闭某种应用协议的解析: ```sql -SELECT dictGet(flow_tag.int_enum_map, 'name', ('l7_protocol', toUInt64(l7_protocol))) AS "应用协议", count(0) AS "行数", sum(length(request_resource))/count(l7_protocol) AS "平均 request_resource 长度", sum(length(request_resource))/sum(if(request_resource !='', 1, 0)) AS "平均非空 request_resource 长度" FROM flow_log.l7_flow_log WHERE time>now()-86400 GROUP BY l7_protocol ORDER BY "行数" DESC; +SELECT dictGet(flow_tag.int_enum_map, 'name_zh', ('l7_protocol', toUInt64(l7_protocol))) AS "应用协议", count(0) AS "行数", sum(length(request_resource))/count(l7_protocol) AS "平均 request_resource 长度", sum(length(request_resource))/sum(if(request_resource !='', 1, 0)) AS "平均非空 request_resource 长度" FROM flow_log.l7_flow_log WHERE time>now()-86400 GROUP BY l7_protocol ORDER BY "行数" DESC; SELECT - dictGet(flow_tag.int_enum_map, 'name', ('l7_protocol', toUInt64(l7_protocol))) AS `应用协议`, + dictGet(flow_tag.int_enum_map, 'name_zh', ('l7_protocol', toUInt64(l7_protocol))) AS `应用协议`, count(0) AS `行数`, sum(length(request_resource)) / count(l7_protocol) AS `平均 request_resource 长度`, sum(length(request_resource)) / sum(if(request_resource != '', 1, 0)) AS `平均非空 request_resource 长度` @@ -126,11 +126,11 @@ ORDER BY `行数` DESC 查看 `l7_flow_log` 表中不同观测点(`observation_point`)的行数,评估是否关闭某些观测点处采集的调用日志: ```sql -SELECT observation_point, dictGet(flow_tag.string_enum_map, 'name', ('observation_point', observation_point)) AS "观测点", count(0) AS "行数" FROM flow_log.l7_flow_log WHERE time>now()-86400 GROUP BY observation_point ORDER BY "行数" DESC; +SELECT observation_point, dictGet(flow_tag.string_enum_map, 'name_zh', ('observation_point', observation_point)) AS "观测点", count(0) AS "行数" FROM flow_log.l7_flow_log WHERE time>now()-86400 GROUP BY observation_point ORDER BY "行数" DESC; SELECT observation_point, - dictGet(flow_tag.string_enum_map, 'name', ('observation_point', observation_point)) AS `观测点`, + dictGet(flow_tag.string_enum_map, 'name_zh', ('observation_point', observation_point)) AS `观测点`, count(0) AS `行数` FROM flow_log.l7_flow_log WHERE time > (now() - 86400)