lol

nixos/thanos: remove deprecations

* replaced store.grpc.series-sample-limit by store.limits.request-samples
* replaced query.replica-label by query.replica-labels
* replaced store.addresses by endpoints
* removed block-sync-concurrency (removed upstream)

+17 -20
+15 -18
nixos/modules/services/monitoring/thanos.nix
··· 266 266 Maximum size of concurrently allocatable bytes for chunks. 267 267 ''; 268 268 269 - store.grpc.series-sample-limit = mkParamDef types.int 0 '' 270 - Maximum amount of samples returned via a single Series call. 269 + store.limits.request-samples = mkParamDef types.int 0 '' 270 + The maximum samples allowed for a single Series request. 271 + The Series call fails if this limit is exceeded. 271 272 272 273 `0` means no limit. 273 274 274 - NOTE: for efficiency we take 120 as the number of samples in chunk (it 275 - cannot be bigger than that), so the actual number of samples might be 276 - lower, even though the maximum could be hit. 275 + NOTE: For efficiency the limit is internally implemented as 'chunks limit' 276 + considering each chunk contains a maximum of 120 samples. 277 277 ''; 278 278 279 279 store.grpc.series-max-concurrency = mkParamDef types.int 20 '' ··· 371 371 Maximum number of queries processed concurrently by query node. 372 372 ''; 373 373 374 - query.replica-label = mkParam types.str '' 375 - Label to treat as a replica indicator along which data is 374 + query.replica-labels = mkAttrsParam "query.replica-label" '' 375 + Labels to treat as a replica indicator along which data is 376 + 376 377 deduplicated. 377 378 378 379 Still you will be able to query without deduplication using 379 - `dedup=false` parameter. 380 + 'dedup=false' parameter. Data includes time series, recording 381 + rules, and alerting rules. 380 382 ''; 381 383 382 384 selector-labels = mkAttrsParam "selector-label" '' 383 385 Query selector labels that will be exposed in info endpoint. 384 386 ''; 385 387 386 - store.addresses = mkListParam "store" '' 387 - Addresses of statically configured store API servers. 388 + endpoints = mkListParam "endpoint" '' 389 + Addresses of statically configured Thanos API servers (repeatable). 388 390 389 - The scheme may be prefixed with `dns+` or 390 - `dnssrv+` to detect store API servers through 391 - respective DNS lookups. 391 + The scheme may be prefixed with 'dns+' or 'dnssrv+' to detect 392 + Thanos API servers through respective DNS lookups. 392 393 ''; 393 394 394 395 store.sd-files = mkListParam "store.sd-files" '' ··· 453 454 Rule files that should be used by rule manager. Can be in glob format. 454 455 ''; 455 456 456 - eval-interval = mkParamDef types.str "30s" '' 457 + eval-interval = mkParamDef types.str "1m" '' 457 458 The default evaluation interval to use. 458 459 ''; 459 460 ··· 601 602 This is not recommended as querying long time ranges without 602 603 non-downsampled data is not efficient and useful e.g it is not possible 603 604 to render all samples for a human eye anyway 604 - ''; 605 - 606 - block-sync-concurrency = mkParamDef types.int 20 '' 607 - Number of goroutines to use when syncing block metadata from object storage. 608 605 ''; 609 606 610 607 compact.concurrency = mkParamDef types.int 1 ''
+2 -2
nixos/tests/prometheus.nix
··· 153 153 services.thanos.query = { 154 154 enable = true; 155 155 http-address = "0.0.0.0:${toString queryPort}"; 156 - store.addresses = [ 156 + endpoints = [ 157 157 "prometheus:${toString grpcPort}" 158 158 ]; 159 159 }; ··· 184 184 services.thanos.query = { 185 185 enable = true; 186 186 http-address = "0.0.0.0:${toString queryPort}"; 187 - store.addresses = [ 187 + endpoints = [ 188 188 "localhost:${toString grpcPort}" 189 189 ]; 190 190 };