JSON Schema Thanos

Properties

PropertyTypeRequiredDescription
compactorCompactornoConfiguration options for Thanos Compactor.
queryQuerynoConfiguration options for Thanos Query.
query-frontendQuery FrontendnoConfiguration options for Thanos Query Frontend.

Compactor

Configuration options for Thanos Compactor.

PropertyTypeRequiredDescription
retention.daysintegernoRetention time for data in days for each resolution (5m, 1h, raw)

Query

Configuration options for Thanos Query.

PropertyTypeRequiredDescription
query.default-evaluation-intervalstringnoSet the default evaluation interval for subqueries.
query.lookback-deltastringnoThe maximum lookback duration for retrieving metrics during expression evaluations in PromQL. PromQL always evaluates the query for a certain timestamp, and it looks back for the given amount of time to get the latest sample. If it exceeds the maximum lookback delta, it assumes the series is stale and returns none (a gap). The lookback delta should be set to at least 2 times the slowest scrape interval. If unset, it will use the promql default of 5m.
query.metadata.default-time-rangestringnoThe default metadata time range duration for retrieving labels through Labels and Series API when the range parameters are not specified. The zero value means the range covers the time since the beginning.
query.timeoutstringnoMaximum time to process a query by the query node.
store.limits.request-samplesintegernoThe maximum samples allowed for a single Series request. The Series call fails if this limit is exceeded. Set to 0 for no limit. NOTE: For efficiency, the limit is internally implemented as ‘chunks limit’ considering each chunk contains a maximum of 120 samples. The default value is 100 * store.limits.request-series.
store.limits.request-seriesintegernoThe maximum series allowed for a single Series request. The Series call fails if this limit is exceeded. Set to 0 for no limit. The default value is 1000 * cpu_count.

Query Frontend

Configuration options for Thanos Query Frontend.

PropertyTypeRequiredDescription
query-range.align-range-with-stepbooleannoWhether to align the query range boundaries with the step. If enabled, the query range boundaries will be aligned to the step, providing more accurate results for queries with high-resolution data.
Last updated on