Skip to content

Commit c5d82ef

Browse files
francoposanpazosmendez
authored andcommitted
bring in prometheus/parquet-common code to new package (#11490)
* bring in prometheus/parquet-common code to new package; replace efficient-go errors with pkg/errors; satisfy mimir-prometheus ChunkSeries interface * revert breaking upgrade to thanos/objstore * fix test require * attempt to update go version for strange errors * fix stringlabels issues * update license headers with AGPL and upstream attribution * fix errors.Is lints fix errors.Is lints * fix sort and cancel cause lints * correct go.mod & vendor in from main to solve conflicts * use env var to flag parquet promql acceptance * fix deps from main again * fix deps from main again * fix deps from main again * fix deps from main again implement new parquet-converter service (#11499) * bring in parquet-converter from parquet-mimir PoC * make docs * make reference-help * stop using the compactor's config * remove BlockRanges config, convert all levels of blocks * drop unused BlockWithExtension struct * rename ownBlock to own * move index fetch outside of for loop * lowercase logs * wording: compact => convert * some cleanup * skip blocks for which compaction mark failed download * simplfy convertBlock function * cleanup * Write Compact Mark * remove parquetIndex, we don't neeed it yet at least * use MetaFetcher to discover blocks * make reference-help and mark as experimental * cleanup: we don't need indexes anymore * revert index loader changes * basic TestParquetConverter * make reference-help * lint * happy linter * make docs * fix: correctly initialize memerlist KV for parquet converter * lint: sort lines * more wording fixes: compact => convert * licence header * version 1 * remove parquet-converter from 'backend' and 'all' modules it's experimental and meant to be run alone * address docs feedback * remove unused consts * increase timeout for a test TestPartitionReader_ShouldNotMissRecordsIfKafkaReturnsAFetchBothWithAnErrorAndSomeRecords parquet-converter: Introduce metrics and ring test (#11600) * parquet-converter: Introduce metrics and ring test This commit introduces a ring test to verify that sharding is working as expected. It also introduces metrics to measure total conversions, failures and durations. Signed-off-by: Jesus Vazquez <[email protected]> converter: proper error handling to measure failures parquet converter in docker compose (#11633) * add parquet-converter to docker-compose microservices setup * format jsonnet fix(parquet converter): close TSDB block after conversion (#11635) parquet: vendor back from parquet-common (#11644) introduce store-gateway.parquet-enabled flag & docs (#11722) upgrade prometheus parquet-common dependency (#11723) parquet store-gateways introduce stores interface (#11724) * declare Stores interface satisfied by BucketStores and future Parquet store * add casts to for uses of existing impl which are not protected by interface * stub out parquet bucket stores implementation * most minimal initialization of Parquet Bucket Stores when flag is enabled * license header parquet: Scaffolding for parquet bucket store Series() (#11729) * parquet: Scaffolding for parquet bucket store * use parquetshardopener and be sure to close them * gci pkg/storegateway/parquet_bucket_stores.go Signed-off-by: Jesus Vazquez <[email protected]> --------- Signed-off-by: Jesus Vazquez <[email protected]> fix split between Parquet Stores and each tenant's Store (#11735) fix split between Parquet Stores and each tenant's Store parquet store-gateways blocks sync and lazy reader (#11759) parquet-bucket-store: finish implementing Stores interface (#11772) We're trying to mirror the existing bucket store structure for the parquet implementation and in this PR i'm just trying to implement some of the necessary methods starting with building up the series sets for labels calls. - Series - LabelNames - LabelValues --------- Signed-off-by: Jesus Vazquez <[email protected]> Signed-off-by: Nicolás Pazos <[email protected]> Co-authored-by: Nicolas Pazos <[email protected]> Co-authored-by: Nicolás Pazos <[email protected]> fix(parquet): share `ReaderPoolMetrics` instance (#11851) We create multiple instances of `ReaderPool`, passing the registry and creating the metrics on the fly causes panics. fix(parquet store gateway): close things that should be closed (#11865) feat(parquet store gateway): support download labels file without validating (#11866) Signed-off-by: Nicolás Pazos <[email protected]> Co-authored-by: francoposa <[email protected]> fix(parquet store gateway): pass blockReader to bucket block constructor (#11875) fix: don't stop nil services fix(parquet store gateways): correctly locate labels parquet files locally (#11894) parquet bucket store: add some debug logging (#11925) Adding few log statements to the existing code path with useful information to understand when and why we are returning 0 series. Signed-off-by: Jesus Vazquez <[email protected]> parquet store gateways: several fixes and basic tests (#11929) Co-authored-by: francoposa <[email protected]> Co-authored-by: Jesus Vazquez <[email protected]> parquet converter: include user id in converter counter metrics (#11966) Adding user id to the converter metrics to better track converter progress through tenants. Signed-off-by: Jesus Vazquez <[email protected]> Parquet converter: Implement priority queue for block conversion (#11980) This PR redesigns the parquet converter to use a non-blocking priority queue that prioritises recently uploaded blocks for conversion. * Priority Queue Implementation: - Replaces blocking nested loops with a thread-safe priority queue using container/heap - Blocks are prioritized by ULID timestamp, ensuring older blocks are processed first * Separate block discovery: - There is a new discovery goroutine that periodically discovers users and blocks, enqueuing them for processing - If the block was previously processed it will be marked as converted and skipped the next time its discovered. - There is a new configuration flag `parquet-converter.max-block-age` that allows us to have a rolling window of blocks so we dont queue up all the work at once. We can set this to 30 days and only blocks up to 30 days old will be converted, when the work is completed we can go and increase that window again. - There is a new processing goroutine that continuously consumes from the priority queue and converts blocks - Main Loop remains responsive and handles only service lifecycle events * New metrics - Since we added a priority queue, I added 5 new metrics for queue monitoring: - cortex_parquet_converter_queue_size - Current queue depth - cortex_parquet_converter_queue_wait_time_seconds - Time blocks spend queued - cortex_parquet_converter_queue_items_enqueued_total - Total blocks enqueued - cortex_parquet_converter_queue_items_processed_total - Total blocks processed - cortex_parquet_converter_queue_items_dropped_total - Total blocks dropped when queue closed The idea here is that by looking at the queue metrics we can have an idea of how much scaling up we need to deal with the pending work. Also, before this PR we had no idea of how much work was left to be done but now we will. --------- Signed-off-by: Jesus Vazquez <[email protected]> fix(parquet store gateway): obey query sharding matchers (#12018) Inefficient, but at least correct query sharding. The new test on sharding fails on the base branch. It's not trivial to add caching to the hashes like the main path does, because we don't have a `SeriesRef` to use as a cache key at the block level (to match what the main path does). We could in theory use something like the row number in the parquet file, but we don't have easy access to that in this part of the code. In any case, the priority right now is correctness, we'll work on optimizing later as appropriate. For referece, see how query sharding is handled on the main path: https://github.com/grafana/mimir/blob/604775d447c0a9e893fa6930ef8f2d403ebe6757/pkg/storegateway/series_refs.go#L1021-L1047 fix(parquet store gateway): panic in Series call with SkipChunks (#12020) `chunksIt` is `nil` when `SkipChunks` is `true`. parquet-converter debug log messages (#12021) Co-authored-by: Jesus Vazquez <[email protected]> chore(parquet): Bump parquet-common dependency (#12023) Brings the last commit from parquet-common [0811a700a852759c16799358b4424d9888afec3f](prometheus-community/parquet-common@0811a70) See link for the diff between the two commits prometheus-community/parquet-common@76512c6...0811a70 --------- Co-authored-by: francoposa <[email protected]> feature(parquet): Implement store-gateway limits (#12040) This PR is based on the upstream work prometheus-community/parquet-common#81 The idea is to implement a set of basic quota limiters that can protect us against potential bad queries for the gateways. Note we had to bring bits of the code available in the querier in upstream because we have our own chunk querier in Mimir. --------- Signed-off-by: Jesus Vazquez <[email protected]>
1 parent 2e3b7f1 commit c5d82ef

File tree

340 files changed

+317766
-12
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

340 files changed

+317766
-12
lines changed

cmd/mimir/config-descriptor.json

Lines changed: 556 additions & 0 deletions
Large diffs are not rendered by default.

cmd/mimir/help-all.txt.tmpl

Lines changed: 92 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -609,6 +609,12 @@ Usage of ./cmd/mimir/mimir:
609609
How long to cache list of blocks for each tenant. (default 5m0s)
610610
-blocks-storage.bucket-store.metadata-cache.tenants-list-ttl duration
611611
How long to cache list of tenants in the bucket. (default 15m0s)
612+
-blocks-storage.bucket-store.parquet-max-chunk-size-bytes uint
613+
Maximum size in bytes that can be fetched from the parquet chunks file. If the size exceeds this value the query will stop with limit error.
614+
-blocks-storage.bucket-store.parquet-max-data-size-bytes uint
615+
Maximum size in bytes that can be fetched from the parquet labels and chunks data files combined in a single query. If the size exceeds this value the query will stop with limit error.
616+
-blocks-storage.bucket-store.parquet-max-row-count uint
617+
Maximum number of rows in a parquet file. If the number of rows exceeds this value the query will stop with limit error.
612618
-blocks-storage.bucket-store.partitioner-max-gap-bytes uint
613619
Max size - in bytes - of a gap for which the partitioner aggregates together two bucket GET object requests. (default 524288)
614620
-blocks-storage.bucket-store.posting-offsets-in-mem-sampling int
@@ -2023,6 +2029,90 @@ Usage of ./cmd/mimir/mimir:
20232029
Maximum time to wait for ring stability at startup. If the overrides-exporter ring keeps changing after this period of time, it will start anyway. (default 5m0s)
20242030
-overrides-exporter.ring.wait-stability-min-duration duration
20252031
Minimum time to wait for ring stability at startup, if set to positive value. Set to 0 to disable.
2032+
-parquet-converter.conversion-interval duration
2033+
The frequency at which the conversion runs. (default 1m0s)
2034+
-parquet-converter.data-dir string
2035+
Directory to temporarily store blocks during conversion. This directory is not required to persist between restarts. (default "./data-parquet-converter/")
2036+
-parquet-converter.disabled-tenants comma-separated-list-of-strings
2037+
Comma-separated list of tenants that cannot have their TSDB blocks converted into Parquet. If specified, and the Parquet-converter would normally pick a given tenant to convert the blocks to Parquet (via -parquet-converter.enabled-tenants or sharding), it is ignored instead.
2038+
-parquet-converter.discovery-interval duration
2039+
The frequency at which user and block discovery runs. (default 5m0s)
2040+
-parquet-converter.enabled-tenants comma-separated-list-of-strings
2041+
Comma-separated list of tenants that can have their TSDB blocks converted into Parquet. If specified, the Parquet-converter only converts these tenants. Otherwise, it converts all tenants. Subject to sharding.
2042+
-parquet-converter.max-block-age duration
2043+
Maximum age of blocks to convert. Blocks older than this will be skipped. Set to 0 to disable age filtering.
2044+
-parquet-converter.ring.consul.acl-token string
2045+
ACL Token used to interact with Consul.
2046+
-parquet-converter.ring.consul.cas-retry-delay duration
2047+
Maximum duration to wait before retrying a Compare And Swap (CAS) operation. (default 1s)
2048+
-parquet-converter.ring.consul.client-timeout duration
2049+
HTTP timeout when talking to Consul (default 20s)
2050+
-parquet-converter.ring.consul.consistent-reads
2051+
Enable consistent reads to Consul.
2052+
-parquet-converter.ring.consul.hostname string
2053+
Hostname and port of Consul. (default "localhost:8500")
2054+
-parquet-converter.ring.consul.watch-burst-size int
2055+
Burst size used in rate limit. Values less than 1 are treated as 1. (default 1)
2056+
-parquet-converter.ring.consul.watch-rate-limit float
2057+
Rate limit when watching key or prefix in Consul, in requests per second. 0 disables the rate limit. (default 1)
2058+
-parquet-converter.ring.etcd.dial-timeout duration
2059+
The dial timeout for the etcd connection. (default 10s)
2060+
-parquet-converter.ring.etcd.endpoints string
2061+
The etcd endpoints to connect to.
2062+
-parquet-converter.ring.etcd.max-retries int
2063+
The maximum number of retries to do for failed ops. (default 10)
2064+
-parquet-converter.ring.etcd.password string
2065+
Etcd password.
2066+
-parquet-converter.ring.etcd.tls-ca-path string
2067+
Path to the CA certificates to validate server certificate against. If not set, the host's root CA certificates are used.
2068+
-parquet-converter.ring.etcd.tls-cert-path string
2069+
Path to the client certificate, which will be used for authenticating with the server. Also requires the key path to be configured.
2070+
-parquet-converter.ring.etcd.tls-cipher-suites string
2071+
Override the default cipher suite list (separated by commas).
2072+
-parquet-converter.ring.etcd.tls-enabled
2073+
Enable TLS.
2074+
-parquet-converter.ring.etcd.tls-insecure-skip-verify
2075+
Skip validating server certificate.
2076+
-parquet-converter.ring.etcd.tls-key-path string
2077+
Path to the key for the client certificate. Also requires the client certificate to be configured.
2078+
-parquet-converter.ring.etcd.tls-min-version string
2079+
Override the default minimum TLS version. Allowed values: VersionTLS10, VersionTLS11, VersionTLS12, VersionTLS13
2080+
-parquet-converter.ring.etcd.tls-server-name string
2081+
Override the expected name on the server certificate.
2082+
-parquet-converter.ring.etcd.username string
2083+
Etcd username.
2084+
-parquet-converter.ring.heartbeat-period duration
2085+
Period at which to heartbeat to the ring. 0 = disabled. (default 15s)
2086+
-parquet-converter.ring.heartbeat-timeout duration
2087+
The heartbeat timeout after which parquet-converters are considered unhealthy within the ring. 0 = never (timeout disabled). (default 1m0s)
2088+
-parquet-converter.ring.instance-addr string
2089+
IP address to advertise in the ring. Default is auto-detected.
2090+
-parquet-converter.ring.instance-enable-ipv6
2091+
Enable using a IPv6 instance address. (default false)
2092+
-parquet-converter.ring.instance-id string
2093+
Instance ID to register in the ring. (default "<hostname>")
2094+
-parquet-converter.ring.instance-interface-names string
2095+
List of network interface names to look up when finding the instance IP address. (default [<private network interfaces>])
2096+
-parquet-converter.ring.instance-port int
2097+
Port to advertise in the ring (defaults to -server.grpc-listen-port).
2098+
-parquet-converter.ring.multi.mirror-enabled
2099+
Mirror writes to secondary store.
2100+
-parquet-converter.ring.multi.mirror-timeout duration
2101+
Timeout for storing value to secondary store. (default 2s)
2102+
-parquet-converter.ring.multi.primary string
2103+
Primary backend storage used by multi-client.
2104+
-parquet-converter.ring.multi.secondary string
2105+
Secondary backend storage used by multi-client.
2106+
-parquet-converter.ring.prefix string
2107+
The prefix for the keys in the store. Should end with a /. (default "parquet-converters/")
2108+
-parquet-converter.ring.store string
2109+
Backend storage to use for the ring. Supported values are: consul, etcd, inmemory, memberlist, multi. (default "memberlist")
2110+
-parquet-converter.ring.wait-active-instance-timeout duration
2111+
Timeout for waiting on Parquet-converter to become ACTIVE in the ring. (default 10m0s)
2112+
-parquet-converter.ring.wait-stability-max-duration duration
2113+
Maximum time to wait for ring stability at startup. If the Parquet-converter ring keeps changing after this period of time, the Parquet-converter starts anyway. (default 5m0s)
2114+
-parquet-converter.ring.wait-stability-min-duration duration
2115+
Minimum time to wait for ring stability at startup. Set to 0 to disable.
20262116
-print.config
20272117
Print the config and exit.
20282118
-querier.active-series-results-max-size-bytes int
@@ -3253,6 +3343,8 @@ Usage of ./cmd/mimir/mimir:
32533343
[experimental] Multiple of the default replication factor that should be used for recent blocks. Minimum value is 2 (default 5)
32543344
-store-gateway.enabled-tenants comma-separated-list-of-strings
32553345
Comma separated list of tenants that can be loaded by the store-gateway. If specified, only blocks for these tenants will be loaded by the store-gateway, otherwise all tenants can be loaded. Subject to sharding.
3346+
-store-gateway.parquet-enabled
3347+
[experimental] Whether to query Parquet files for block instead of the native Prometheus TSDB files.
32563348
-store-gateway.sharding-ring.auto-forget-enabled
32573349
[deprecated] When enabled, a store-gateway is automatically removed from the ring after failing to heartbeat the ring for a period longer than the configured -store-gateway.sharding-ring.auto-forget-unhealthy-periods times the configured -store-gateway.sharding-ring.heartbeat-timeout. This setting is deprecated. Set -store-gateway.sharding-ring.auto-forget-unhealthy-periods to 0 to disable auto-forget. (default true)
32583350
-store-gateway.sharding-ring.auto-forget-unhealthy-periods int

cmd/mimir/help.txt.tmpl

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -551,6 +551,26 @@ Usage of ./cmd/mimir/mimir:
551551
List of network interface names to look up when finding the instance IP address. (default [<private network interfaces>])
552552
-overrides-exporter.ring.store string
553553
Backend storage to use for the ring. Supported values are: consul, etcd, inmemory, memberlist, multi. (default "memberlist")
554+
-parquet-converter.conversion-interval duration
555+
The frequency at which the conversion runs. (default 1m0s)
556+
-parquet-converter.data-dir string
557+
Directory to temporarily store blocks during conversion. This directory is not required to persist between restarts. (default "./data-parquet-converter/")
558+
-parquet-converter.discovery-interval duration
559+
The frequency at which user and block discovery runs. (default 5m0s)
560+
-parquet-converter.max-block-age duration
561+
Maximum age of blocks to convert. Blocks older than this will be skipped. Set to 0 to disable age filtering.
562+
-parquet-converter.ring.consul.hostname string
563+
Hostname and port of Consul. (default "localhost:8500")
564+
-parquet-converter.ring.etcd.endpoints string
565+
The etcd endpoints to connect to.
566+
-parquet-converter.ring.etcd.password string
567+
Etcd password.
568+
-parquet-converter.ring.etcd.username string
569+
Etcd username.
570+
-parquet-converter.ring.instance-interface-names string
571+
List of network interface names to look up when finding the instance IP address. (default [<private network interfaces>])
572+
-parquet-converter.ring.store string
573+
Backend storage to use for the ring. Supported values are: consul, etcd, inmemory, memberlist, multi. (default "memberlist")
554574
-print.config
555575
Print the config and exit.
556576
-querier.cardinality-analysis-enabled

development/mimir-microservices-mode/docker-compose.jsonnet

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,9 @@ std.manifestYamlDoc({
3232

3333
// If true, a query-tee instance with a single backend is started.
3434
enable_query_tee: false,
35+
36+
// If true, start parquet-converter
37+
enable_parquet: false,
3538
},
3639

3740
// We explicitely list all important services here, so that it's easy to disable them by commenting out.
@@ -41,6 +44,7 @@ std.manifestYamlDoc({
4144
self.read_components + // querier, query-frontend, and query-scheduler.
4245
self.store_gateways(3) +
4346
self.compactor +
47+
(if $._config.enable_parquet then self.parquet_converter else {}) +
4448
self.rulers(2) +
4549
self.alertmanagers(3) +
4650
self.nginx +
@@ -128,6 +132,14 @@ std.manifestYamlDoc({
128132
}),
129133
},
130134

135+
parquet_converter:: {
136+
'parquet-converter': mimirService({
137+
name: 'parquet-converter',
138+
target: 'parquet-converter',
139+
httpPort: 8040,
140+
}),
141+
},
142+
131143
rulers(count):: if count <= 0 then {} else {
132144
['ruler-%d' % id]: mimirService({
133145
name: 'ruler-' + id,
@@ -156,6 +168,8 @@ std.manifestYamlDoc({
156168
target: 'store-gateway',
157169
httpPort: 8010 + id,
158170
jaegerApp: 'store-gateway-%d' % id,
171+
extraArguments:
172+
if $._config.enable_parquet then '-store-gateway.parquet-enabled=true' else '',
159173
})
160174
for id in std.range(1, count)
161175
},

docs/sources/mimir/configure/configuration-parameters/index.md

Lines changed: 141 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -451,6 +451,124 @@ overrides_exporter:
451451
# CLI flag: -overrides-exporter.enabled-metrics
452452
[enabled_metrics: <string> | default = "ingestion_rate,ingestion_burst_size,max_global_series_per_user,max_global_series_per_metric,max_global_exemplars_per_user,max_fetched_chunks_per_query,max_fetched_series_per_query,max_fetched_chunk_bytes_per_query,ruler_max_rules_per_rule_group,ruler_max_rule_groups_per_tenant"]
453453

454+
parquet_converter:
455+
# (advanced) Comma-separated list of tenants that can have their TSDB blocks
456+
# converted into Parquet. If specified, the Parquet-converter only converts
457+
# these tenants. Otherwise, it converts all tenants. Subject to sharding.
458+
# CLI flag: -parquet-converter.enabled-tenants
459+
[enabled_tenants: <string> | default = ""]
460+
461+
# (advanced) Comma-separated list of tenants that cannot have their TSDB
462+
# blocks converted into Parquet. If specified, and the Parquet-converter would
463+
# normally pick a given tenant to convert the blocks to Parquet (via
464+
# -parquet-converter.enabled-tenants or sharding), it is ignored instead.
465+
# CLI flag: -parquet-converter.disabled-tenants
466+
[disabled_tenants: <string> | default = ""]
467+
468+
# Directory to temporarily store blocks during conversion. This directory is
469+
# not required to persist between restarts.
470+
# CLI flag: -parquet-converter.data-dir
471+
[data_dir: <string> | default = "./data-parquet-converter/"]
472+
473+
# The frequency at which the conversion runs.
474+
# CLI flag: -parquet-converter.conversion-interval
475+
[conversion_interval: <duration> | default = 1m]
476+
477+
# The frequency at which user and block discovery runs.
478+
# CLI flag: -parquet-converter.discovery-interval
479+
[discovery_interval: <duration> | default = 5m]
480+
481+
# Maximum age of blocks to convert. Blocks older than this will be skipped.
482+
# Set to 0 to disable age filtering.
483+
# CLI flag: -parquet-converter.max-block-age
484+
[max_block_age: <duration> | default = 0s]
485+
486+
sharding_ring:
487+
# The key-value store used to share the hash ring across multiple instances.
488+
kvstore:
489+
# Backend storage to use for the ring. Supported values are: consul, etcd,
490+
# inmemory, memberlist, multi.
491+
# CLI flag: -parquet-converter.ring.store
492+
[store: <string> | default = "memberlist"]
493+
494+
# (advanced) The prefix for the keys in the store. Should end with a /.
495+
# CLI flag: -parquet-converter.ring.prefix
496+
[prefix: <string> | default = "parquet-converters/"]
497+
498+
# The consul block configures the consul client.
499+
# The CLI flags prefix for this block configuration is:
500+
# parquet-converter.ring
501+
[consul: <consul>]
502+
503+
# The etcd block configures the etcd client.
504+
# The CLI flags prefix for this block configuration is:
505+
# parquet-converter.ring
506+
[etcd: <etcd>]
507+
508+
multi:
509+
# (advanced) Primary backend storage used by multi-client.
510+
# CLI flag: -parquet-converter.ring.multi.primary
511+
[primary: <string> | default = ""]
512+
513+
# (advanced) Secondary backend storage used by multi-client.
514+
# CLI flag: -parquet-converter.ring.multi.secondary
515+
[secondary: <string> | default = ""]
516+
517+
# (advanced) Mirror writes to secondary store.
518+
# CLI flag: -parquet-converter.ring.multi.mirror-enabled
519+
[mirror_enabled: <boolean> | default = false]
520+
521+
# (advanced) Timeout for storing value to secondary store.
522+
# CLI flag: -parquet-converter.ring.multi.mirror-timeout
523+
[mirror_timeout: <duration> | default = 2s]
524+
525+
# (advanced) Period at which to heartbeat to the ring. 0 = disabled.
526+
# CLI flag: -parquet-converter.ring.heartbeat-period
527+
[heartbeat_period: <duration> | default = 15s]
528+
529+
# (advanced) The heartbeat timeout after which parquet-converters are
530+
# considered unhealthy within the ring. 0 = never (timeout disabled).
531+
# CLI flag: -parquet-converter.ring.heartbeat-timeout
532+
[heartbeat_timeout: <duration> | default = 1m]
533+
534+
# (advanced) Instance ID to register in the ring.
535+
# CLI flag: -parquet-converter.ring.instance-id
536+
[instance_id: <string> | default = "<hostname>"]
537+
538+
# List of network interface names to look up when finding the instance IP
539+
# address.
540+
# CLI flag: -parquet-converter.ring.instance-interface-names
541+
[instance_interface_names: <list of strings> | default = [<private network interfaces>]]
542+
543+
# (advanced) Port to advertise in the ring (defaults to
544+
# -server.grpc-listen-port).
545+
# CLI flag: -parquet-converter.ring.instance-port
546+
[instance_port: <int> | default = 0]
547+
548+
# (advanced) IP address to advertise in the ring. Default is auto-detected.
549+
# CLI flag: -parquet-converter.ring.instance-addr
550+
[instance_addr: <string> | default = ""]
551+
552+
# (advanced) Enable using a IPv6 instance address. (default false)
553+
# CLI flag: -parquet-converter.ring.instance-enable-ipv6
554+
[instance_enable_ipv6: <boolean> | default = false]
555+
556+
# (advanced) Minimum time to wait for ring stability at startup. Set to 0 to
557+
# disable.
558+
# CLI flag: -parquet-converter.ring.wait-stability-min-duration
559+
[wait_stability_min_duration: <duration> | default = 0s]
560+
561+
# (advanced) Maximum time to wait for ring stability at startup. If the
562+
# Parquet-converter ring keeps changing after this period of time, the
563+
# Parquet-converter starts anyway.
564+
# CLI flag: -parquet-converter.ring.wait-stability-max-duration
565+
[wait_stability_max_duration: <duration> | default = 5m]
566+
567+
# (advanced) Timeout for waiting on Parquet-converter to become ACTIVE in
568+
# the ring.
569+
# CLI flag: -parquet-converter.ring.wait-active-instance-timeout
570+
[wait_active_instance_timeout: <duration> | default = 10m]
571+
454572
# The common block holds configurations that configure multiple components at a
455573
# time.
456574
[common: <common>]
@@ -3122,6 +3240,7 @@ The `etcd` block configures the etcd client. The supported CLI flags `<prefix>`
31223240
- `ingester.ring`
31233241
- `overrides-exporter.ring`
31243242
- `querier.ring`
3243+
- `parquet-converter.ring`
31253244
- `query-scheduler.ring`
31263245
- `ruler.ring`
31273246
- `store-gateway.sharding-ring`
@@ -3228,6 +3347,7 @@ The `consul` block configures the consul client. The supported CLI flags `<prefi
32283347
- `ingester.ring`
32293348
- `overrides-exporter.ring`
32303349
- `querier.ring`
3350+
- `parquet-converter.ring`
32313351
- `query-scheduler.ring`
32323352
- `ruler.ring`
32333353
- `store-gateway.sharding-ring`
@@ -5007,6 +5127,22 @@ bucket_store:
50075127
# CLI flag: -blocks-storage.bucket-store.series-fetch-preference
50085128
[series_fetch_preference: <float> | default = 0.75]
50095129
5130+
# (advanced) Maximum number of rows in a parquet file. If the number of rows
5131+
# exceeds this value the query will stop with limit error.
5132+
# CLI flag: -blocks-storage.bucket-store.parquet-max-row-count
5133+
[parquet_max_row_count: <int> | default = 0]
5134+
5135+
# (advanced) Maximum size in bytes that can be fetched from the parquet chunks
5136+
# file. If the size exceeds this value the query will stop with limit error.
5137+
# CLI flag: -blocks-storage.bucket-store.parquet-max-chunk-size-bytes
5138+
[parquet_max_chunk_size_bytes: <int> | default = 0]
5139+
5140+
# (advanced) Maximum size in bytes that can be fetched from the parquet labels
5141+
# and chunks data files combined in a single query. If the size exceeds this
5142+
# value the query will stop with limit error.
5143+
# CLI flag: -blocks-storage.bucket-store.parquet-max-data-size-bytes
5144+
[parquet_max_data_size_bytes: <int> | default = 0]
5145+
50105146
tsdb:
50115147
# Directory to store TSDBs (including WAL) in the ingesters. This directory is
50125148
# required to be persisted between restarts.
@@ -5646,6 +5782,11 @@ dynamic_replication:
56465782
# ignored instead.
56475783
# CLI flag: -store-gateway.disabled-tenants
56485784
[disabled_tenants: <string> | default = ""]
5785+
5786+
# (experimental) Whether to query Parquet files for block instead of the native
5787+
# Prometheus TSDB files.
5788+
# CLI flag: -store-gateway.parquet-enabled
5789+
[parquet_enabled: <boolean> | default = false]
56495790
```
56505791

56515792
### memcached

0 commit comments

Comments
 (0)