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

feat: add ext_default_encoder with prometheus encoder #1704

Merged

Conversation

aiops1900
Copy link
Contributor

  1. [FEATURE]: iLogtail的extension新增encoder接口 [ 详见 [FEATURE]: iLogtail的extension新增encoder接口 #1660 ]
  2. [FEATURE]: iLogtail 新增 Prometheus Protocol Encoder 实现 [ 详见 [FEATURE]: iLogtail 新增 Prometheus Protocol Encoder 实现 #1661 ]
  3. [FEATURE]: iLogtail的extension插件新增encoder extension插件[ext_default_encoder] [ 详见 [FEATURE]: iLogtail的extension插件新增encoder extension插件[ext_default_encoder] #1662 ]

flusher_http的配置为例,集成Prometheus Encoder的配置示例

flushers:
- Type: flusher_http
  ...
  Encoder:
    Type: ext_default_encoder/prometheus
    ...
...
extensions:
- Type: ext_default_encoder/prometheus
  Format: 'prometheus'

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这个文件位置和endocoder不太对称,可以统一吗

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

和default_decoder.go统一一下?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

对应的文档,参考 https://github.com/alibaba/ilogtail/blob/2.0/docs/cn/plugins/extension/ext-default-decoder.md
加入overview docs/cn/plugins/overview.md
顺便把链接加一下(原来整个Extension都漏了)docs/cn/SUMMARY.md

@aiops1900 aiops1900 changed the title [FEATURE]: iLogtail的extension新增encoder接口,增加prometheus encoder实现,增加ext_default_encoder插件[通过配置使用prometheus encoder] feat: add ext_default_encoder with prometheus encoder which implements encoder extension interface Aug 20, 2024
@aiops1900 aiops1900 changed the title feat: add ext_default_encoder with prometheus encoder which implements encoder extension interface feat: add ext_default_encoder with prometheus encoder Aug 20, 2024
@yyuuttaaoo yyuuttaaoo added the enhancement Feature enhancement label Aug 22, 2024
@yyuuttaaoo yyuuttaaoo added this to the v2.2 milestone Aug 22, 2024
@yyuuttaaoo yyuuttaaoo merged commit e32c782 into alibaba:main Aug 22, 2024
15 checks passed
@yyuuttaaoo yyuuttaaoo modified the milestones: v2.2, v2.1 Aug 22, 2024
henryzhx8 pushed a commit that referenced this pull request Jan 20, 2025
本次代码评审主要涉及将系统中的配置管理从处理过程配置(ProcessConfig)全面迁移至实例配置(InstanceConfig),包括监控指标、配置处理、文件监控、单元测试等多个方面的更新,以支持更细粒度的配置管理。同时,增加了对flusher相关指标的监控,并调整了部分代码结构和逻辑,以适应配置管理的这一变更。
Link: https://code.alibaba-inc.com/sls/ilogtail/codereview/18058664
* Add some plugin metrics and alarms (#1697)

* add some metrics

* Rename ProcessConfig to InstanceConfig (#1711)

* feat: add ext_default_encoder with prometheus encoder (#1704)

* feat: add encoder extension interface in pkg/pipeline/extensions

* feat: add prometheus encoder whitch implements extension.Encoder interface

* feat: add ext_default_encoder extension plugin

* refactor: rename package name, var name of encoder

* docs: add docs for ext_default_encoder & update docs of other extensions

* docs: add ext_default_encoder doc in docs/cn/plugins/overview.md

* fix: fix build failed for package referenece

* chore: update pkg/go.mod to solve lint failed

* fix: fix ci-lint error

* Merge remote-tracking branch 'refs/remotes/github_alibaba/main' into merge-main-240822
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Feature enhancement
Projects
None yet
2 participants