chore: remove initialization of metastore (#14822)

pull/14823/head
George Robinson 7 months ago committed by GitHub
parent 869f7b5a41
commit 307603829c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 30
      docs/sources/shared/configuration.md
  2. 9
      pkg/loki/loki.go

@ -710,35 +710,6 @@ compactor_grpc_client:
# a ring unless otherwise specified in the component's configuration section.
[memberlist: <memberlist>]
metastore:
# CLI flag: -metastore.data-dir
[data_dir: <string> | default = "./data-metastore/data"]
raft:
# CLI flag: -metastore.raft.dir
[dir: <string> | default = "./data-metastore/raft"]
# CLI flag: -metastore.raft.bootstrap-peers
[bootstrap_peers: <list of strings> | default = []]
# CLI flag: -metastore.raft.server-id
[server_id: <string> | default = "localhost:9099"]
# CLI flag: -metastore.raft.bind-address
[bind_address: <string> | default = "localhost:9099"]
# CLI flag: -metastore.raft.advertise-address
[advertise_address: <string> | default = "localhost:9099"]
metastore_client:
# CLI flag: -metastore.address
[address: <string> | default = "localhost:9095"]
# Configures the gRPC client used to communicate with the metastore.
# The CLI flags prefix for this block configuration is:
# metastore.grpc-client-config
[grpc_client_config: <grpc_client>]
kafka_config:
# The Kafka backend address.
# CLI flag: -kafka.address
@ -2577,7 +2548,6 @@ The `grpc_client` block configures the gRPC client used to communicate between a
- `boltdb.shipper.index-gateway-client.grpc`
- `frontend.grpc-client-config`
- `ingester.client`
- `metastore.grpc-client-config`
- `pattern-ingester.client`
- `querier.frontend-client`
- `querier.frontend-grpc-client`

@ -39,8 +39,6 @@ import (
"github.com/grafana/loki/v3/pkg/distributor"
"github.com/grafana/loki/v3/pkg/indexgateway"
"github.com/grafana/loki/v3/pkg/ingester"
"github.com/grafana/loki/v3/pkg/ingester-rf1/metastore"
metastoreclient "github.com/grafana/loki/v3/pkg/ingester-rf1/metastore/client"
ingester_client "github.com/grafana/loki/v3/pkg/ingester/client"
"github.com/grafana/loki/v3/pkg/kafka"
"github.com/grafana/loki/v3/pkg/loghttp/push"
@ -105,8 +103,6 @@ type Config struct {
Worker worker.Config `yaml:"frontend_worker,omitempty"`
TableManager index.TableManagerConfig `yaml:"table_manager,omitempty"`
MemberlistKV memberlist.KVConfig `yaml:"memberlist"`
Metastore metastore.Config `yaml:"metastore,omitempty"`
MetastoreClient metastoreclient.Config `yaml:"metastore_client"`
KafkaConfig kafka.Config `yaml:"kafka_config,omitempty" category:"experimental"`
RuntimeConfig runtimeconfig.Config `yaml:"runtime_config,omitempty"`
@ -186,8 +182,6 @@ func (c *Config) RegisterFlags(f *flag.FlagSet) {
c.Analytics.RegisterFlags(f)
c.OperationalConfig.RegisterFlags(f)
c.Profiling.RegisterFlags(f)
c.Metastore.RegisterFlags(f)
c.MetastoreClient.RegisterFlags(f)
c.KafkaConfig.RegisterFlags(f)
}
@ -376,7 +370,6 @@ type Loki struct {
querySchedulerRingManager *lokiring.RingManager
usageReport *analytics.Reporter
indexGatewayRingManager *lokiring.RingManager
MetastoreClient *metastoreclient.Client
partitionRingWatcher *ring.PartitionRingWatcher
partitionRing *ring.PartitionInstanceRing
@ -417,8 +410,6 @@ func (t *Loki) setupAuthMiddleware() {
[]string{
"/grpc.health.v1.Health/Check",
"/grpc.health.v1.Health/Watch",
"/metastorepb.MetastoreService/AddBlock",
"/metastorepb.MetastoreService/ListBlocksForQuery",
"/logproto.StreamData/GetStreamRates",
"/frontend.Frontend/Process",
"/frontend.Frontend/NotifyClientShutdown",

Loading…
Cancel
Save