Closed Manoharan-NMS closed 7 months ago
I am also running into a similar problem. I want to use cassandra for index and object storage but it seems like it isn't creating the proper tables.. In my logs I see:
level=error ts=2023-07-07T17:21:36.118890812Z caller=series_index_store.go:584 org_id=fake msg="error querying storage" err="unconfigured table loki_index2792"
ts=2023-07-07T17:21:36.118943423Z caller=spanlogger.go:85 user=fake level=info org_id=fake latency=fast query_type=labels length=1h0m0s duration=977.931µs status=500 label= query= splits=0 throughput=0B total_bytes=0B total_entries=0
and also during start-up:
level=info ts=2023-07-07T00:01:34.723641187Z caller=modules.go:1184 msg="failed to initialize usage report" err="Unrecognized storage client cassandra, choose one of: aws, s3, gcs, azure, filesystem"
I don't want to use any of these proprietary cloud solutions (aws, gcs, azure..) and with the scylladb operator set up it's fairly easy to maintain scylla/cassandra clusters, so I would much rather use an "all cassandra" setup than have to use any kind of filesystem storage.
@Manoharan-NMS I found my problem was that "all" with regards to the "target" in the start command really means "all services except table_manager"
Ref: https://grafana.com/docs/loki/latest/upgrading/#the-single-binary-no-longer-runs-a-table-manager
I had to add --target=all,table-manager
and then it created the tables
@Manoharan-NMS Hello! Do you still use cassandra for yor Loki cluster? Did you make any tuning for cassandra BD for Loki?
Closing as Cassandra was deprecated in 2.9. We do not plan any further development for Cassandra as a storage backend.
How to integrate Loki with Cassandra Database for High Availability.
Can u suggest the proper configuration for that.
My Loki Version 2.8.0 Cassandra Version: 4.0.8
File: /etc/loki/config.yml
Getting below error