fix: Add flags for path & configure kafka for non-memberlist kv store (#14850)

pull/14406/head^2
benclive 6 months ago committed by GitHub
parent b2f3d2e36e
commit f2da621f72
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 2
      docs/sources/shared/configuration.md
  2. 1
      pkg/loki/common/common.go
  3. 1
      pkg/loki/config_wrapper.go

@ -1620,6 +1620,8 @@ The `chunk_store_config` block configures how chunks will be cached and how long
Common configuration to be shared between multiple modules. If a more specific configuration is given in other sections, the related configuration within this section will be ignored.
```yaml
# prefix for the path
# CLI flag: -common.path-prefix
[path_prefix: <string> | default = ""]
storage:

@ -66,6 +66,7 @@ func (c *Config) RegisterFlags(f *flag.FlagSet) {
f.StringVar(&c.CompactorAddress, "common.compactor-address", "", "the http address of the compactor in the form http://host:port")
f.StringVar(&c.CompactorGRPCAddress, "common.compactor-grpc-address", "", "the grpc address of the compactor in the form host:port")
f.StringVar(&c.PathPrefix, "common.path-prefix", "", "prefix for the path")
}
type Storage struct {

@ -244,6 +244,7 @@ func applyConfigToRings(r, defaults *ConfigWrapper, rc lokiring.RingConfig, merg
r.Ingester.LifecyclerConfig.Zone = rc.InstanceZone
r.Ingester.LifecyclerConfig.ListenPort = rc.ListenPort
r.Ingester.LifecyclerConfig.ObservePeriod = rc.ObservePeriod
r.Ingester.KafkaIngestion.PartitionRingConfig.KVStore = rc.KVStore
}
if mergeWithExisting {

Loading…
Cancel
Save