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

[FEATURE]: iLogtail 新增 Prometheus Protocol Encoder 实现 #1661

Open
aiops1900 opened this issue Aug 7, 2024 · 0 comments
Open

[FEATURE]: iLogtail 新增 Prometheus Protocol Encoder 实现 #1661

aiops1900 opened this issue Aug 7, 2024 · 0 comments
Labels
feature request New feature request

Comments

@aiops1900
Copy link
Contributor

Concisely describe the proposed feature
A clear and concise description of what you want. For example,

Logtail当前未支持 Prometheus Protocol encode,需要 Prometheus Encoder 实现(基于 #1660 ),用于将采集到的数据转成Prometheus Protocol,可用于发往支持Prometheus Protocol的Storage Prometheus RemoteWrite

Describe the solution you'd like (if any)
A clear and concise description of what you want to achieve and implement. For example,

参考Prometheus Protocol decode,在pkg/protocol目录下创建decoder/prometheus目录,实现写在pkg/protocol/decoder/prometheus目录中。

Additional comments
Add any other context or screenshots about the feature request here.
For example, the ideal input and output logs.

尽管pkg/protocol/converter中有很多开源协议的encode实现(e.g. Influxdb、SLS等),但和http耦合,不是纯粹的encode实现(职责不单一,不便于pipeline extension组合使用),且这个package未来会逐渐废弃,可以考虑将里面和 protocol encode 相关的实现单独解耦出来,以 Encoder 为接口( #1660 ),做成可插拔的 XX encoder extension插件

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request New feature request
Projects
None yet
Development

No branches or pull requests

1 participant