aloyszhang commented on code in PR #993: URL: https://github.com/apache/inlong-website/pull/993#discussion_r1774865412
########## i18n/zh-CN/docusaurus-plugin-content-docs/current/development/inlong_plugins_extension/agent.md: ########## @@ -1,15 +1,16 @@ --- -title: Agent 插件 +title: Agent 新增数据源 sidebar_position: 3 --- ## 概述 + 在 Standard Architecture 中,我们可以通过 InLong Agent 来采集各种类型的数据源。InLong Agent 支持以插件的方式扩展新的采集类型,本文将指导开发者如何自定义新的 Agent 采集数据源插件。 ## 核心概念 ### Task 和 Instance Task 和 Instance 是 Agent 最核心的两个概念,简单理解:Task 对应管理平台上配置的一个采集任务,而 Instance 则是由 Task 生成的一个具体的采集实例。举个例子,管理平台上有个采集任务的配置: `127.0.0.1 -> /data/log/YYMMDDhh.log._[0-9]+`,表示用户需要在 `127.0.0.1` 这台机器上采集符合 `/data/log/YYMMDDhh.log._[0-9]+`,这个路径规则的数据,**这就是一个 Task**。这个 Task 会根据这个路径规则去寻找满足条件的文件,**为每个符合条件的文件生成一个对应的 Instance**,比如说有`/data/log/2024040221.log.0,/data/log/2024040221.log.1,/data/log/2024040221.log.3` 3个文件,那么 Task 就会生成 3 个 Instance 分别采集这三个文件的数据。 - + Review Comment: please use a meaningful name for images -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
