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 support prometheus Flusher [flusher_prometheus] #1663

Closed
aiops1900 opened this issue Aug 7, 2024 · 0 comments · Fixed by #1744
Closed

[FEATURE]: iLogtail support prometheus Flusher [flusher_prometheus] #1663

aiops1900 opened this issue Aug 7, 2024 · 0 comments · Fixed by #1744
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,

新增一个flusher插件[flusher_prometheus],用于将采集数据上报到支持Prometheus协议RemoteWrite的RemoteStorage(e.g. Prometheus, VictoriaMetrics, etc.)。

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

它的实现,需要依赖/组合多个其它插件(包括但不限于):
flusher_http [可以考虑作为flusher_prometheus的父类,并需要对flusher_http做一些增强,比如支持ext_default_encoder集成 #1662 ]
ext_default_encoder [比如基于增强的flusher_http]
prometheus encode实现 [ext_default_encoder的配置中指定 prometheus encode 实现]
[选]ext_basicauth [也可以直接用HTTP Header的Authentication字段来完成BasicAuth鉴权信息注入]
...

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

理想的配置用法:

flushers:
- Type: flusher_prometheus
  Endpoint: 'http://xxxx/api/v1/write'
  Authenticator:
    Type: ext_basicauth
extensions:
- Type: ext_basicauth
  Username: '$YOUR_USENAME'
  Password: '$YOUR_PASSWORD'

说明:考虑到pipeline配置的灵活性,且extension支持由pipeline全局初始化和插件局部初始化2种,所以上面只是其中一种配置示例。具体实现也取决于最终方案。

@aiops1900 aiops1900 added the feature request New feature request label Aug 7, 2024
@yyuuttaaoo yyuuttaaoo linked a pull request Sep 10, 2024 that will close this issue
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

Successfully merging a pull request may close this issue.

1 participant