问题描述
我正在阅读 loki 文档。我遇到了存储部分,您可以在其中将存储设置为任何 DB/FileSystem/InMemory。目前,我需要将日志存储到 MongoDB 中。我该怎么做?
我没有看到任何将日志存储到 MongoDB 的配置文件。是否有任何参考/配置文件可以帮助我设置这些 loki 块和索引以存储在 MongoDB 中?
解决方法
目前不支持 MongoDB。仅支持特定的 DB 集。
Storage Loki 中的选项
索引支持以下内容:
Single Store (boltdb-shipper) - 推荐用于 2.0 和更新的索引 对象存储中存储boltdb索引文件的store
- 亚马逊 DynamoDB
- Google Bigtable
- Apache Cassandra
- BoltDB(在集群 Loki 时不起作用)
块支持以下内容:
- 亚马逊 DynamoDB
- Google Bigtable
- Apache Cassandra
- 亚马逊 S3
- Google 云存储
- 文件系统