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

Dagger有必要支持多个Loki后端吗? #8

Open
LinkMaq opened this issue Nov 30, 2020 · 1 comment
Open

Dagger有必要支持多个Loki后端吗? #8

LinkMaq opened this issue Nov 30, 2020 · 1 comment
Assignees
Labels
question Further information is requested

Comments

@LinkMaq
Copy link
Contributor

LinkMaq commented Nov 30, 2020

grafana通过配置多个loki数据源来查询日志,但是由于不同的loki数据源中日志label并不一样,这也导致在grafana上查询日志还是具备一定的门槛。

dagger的目的是尽量简化日志查询过程中的条件选择,引入多个loki数据源可能会打破这样的初衷。

我这里另外一个解决方案,看各位有啥好的想法:

方案一、一套Loki集群收集多个集群日志,然后跟dagger对接

优势:

  1. dagger无变动,日志由loki集中管理,后期对于日志告警也可以集中管理
  2. 只改日志采集端label的逻辑

劣势:

  1. 日志量大的话,loki架构需要进行分布式集群设计。

方案二、dagger支持多个loki数据源

优势:

  1. 能集成多套环境,方便用户使用

劣势:

  1. 日志告警无法统一告警,也需要针对loki实例单独关联
  2. dagger些许的开发(不属于我们主要的feature)

有其他的想法,欢迎在下方留言讨论

@LinkMaq LinkMaq added the question Further information is requested label Nov 30, 2020
@LinkMaq LinkMaq self-assigned this Nov 30, 2020
@912988434
Copy link

实际上方案二应该好一点,配置成模块化的,loki的地址可以不再配置文件中定义,而是通过ui登陆后输入要使用的loki地址,告警的话可以考虑让报警规则可以关联到不同loki上,这样只需要管理报警规则就行了。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants