MongoDB 存储的 Loki 配置

Loki Configuration for MongoDB storage

我正在浏览 loki 文档。我遇到了存储部分,您可以在其中将存储设置为任何 DB/FileSystem/InMemory。目前,我需要将日志存储到 MongoDB。我该怎么做?

Loki Configuration

我没有看到任何用于将日志存储到 MongoDB 的配置文件。是否有任何 reference/configuration 文件可以帮助我将这些 loki 块和索引设置为存储在 MongoDB 中?

目前不支持

MongoDB。仅支持特定的一组数据库。

Storage Loki 中的选项

The following are supported for the index:

Single Store (boltdb-shipper) - Recommended for 2.0 and newer index store which stores boltdb index files in the object store

  • Amazon DynamoDB
  • Google Bigtable
  • Apache Cassandra
  • BoltDB (doesn’t work when clustering Loki)

The following are supported for the chunks:

  • Amazon DynamoDB
  • Google Bigtable
  • Apache Cassandra
  • Amazon S3
  • Google Cloud Storage
  • Filesystem