在loki yaml文件的cassandra.config类型中未找到字段

5ktev3wc  于 10个月前  发布在  Cassandra
关注(0)|答案(1)|浏览(99)

下面是我在config.yaml中的配置

storageConfig:
    cassandra:
      endpoint: https://api-test/v1/apps/tables/blobTable/blobs/
      client_cert: |

      client_key: |

      keyspace: loki
      table: logs
      batch_size: 1000
      batch_timeout: 1s
      max_retries: 3

字符串
我得到下面的错误

failed parsing config: /etc/loki/config/config.yaml: yaml: unmarshal errors:  
line 75: field batch_size not found in type cassandra.Config  
line 76: field batch_timeout not found in type cassandra.Config  
line 77: field client_cert not found in type cassandra.Config  
line 142: field client_key not found in type cassandra.Config  
line 173: field endpoint not found in type cassandra.Config  
line 176: field table not found in type cassandra.Config


从官方文档中,我无法在cassandra中找到端点选项,但从chatgpt中,我得到了该配置。
我在配置中缺少了什么吗?或者根本不允许端点?

daupos2t

daupos2t1#

如果您在文档中查找cassandra,您将找到该存储的所有可用配置选项。https://grafana.com/docs/loki/latest/configuration/#storage_config

相关问题