|
74 | 74 | 'store.engine': 'blocks', |
75 | 75 | }, |
76 | 76 |
|
| 77 | + // Ignore blocks in querier, ruler and store-gateways for the last 11h |
| 78 | + ignore_blocks_within: '11h', |
| 79 | + |
| 80 | + // No need to look at store for data younger than 12h, as ingesters have all of it. |
| 81 | + query_store_after: '12h', |
| 82 | + |
| 83 | + // Ingesters don't have data older than 13h, no need to ask them. |
| 84 | + query_ingesters_within: '13h', |
| 85 | + |
77 | 86 | queryBlocksStorageConfig:: { |
78 | 87 | 'blocks-storage.bucket-store.sync-dir': '/data/tsdb', |
| 88 | + 'blocks-storage.bucket-store.ignore-blocks-within': $._config.ignore_blocks_within, |
79 | 89 | 'blocks-storage.bucket-store.ignore-deletion-marks-delay': '1h', |
80 | 90 |
|
81 | 91 | 'store-gateway.sharding-enabled': true, |
|
116 | 126 | // type queries. 32 days to allow for comparision over the last month (31d) and |
117 | 127 | // then some. |
118 | 128 | 'store.max-query-length': '768h', |
119 | | - |
120 | | - // Ingesters don't have data older than 13h, no need to ask them. |
121 | | - 'querier.query-ingesters-within': '13h', |
122 | | - |
123 | | - // No need to look at store for data younger than 12h, as ingesters have all of it. |
124 | | - 'querier.query-store-after': '12h', |
| 129 | + 'querier.query-ingesters-within': $._config.query_ingesters_within, |
| 130 | + 'querier.query-store-after': $._config.query_store_after, |
125 | 131 | }, |
126 | 132 |
|
127 | 133 | // PromQL query engine config (shared between all services running PromQL engine, like the ruler and querier). |
|
0 commit comments