You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Query ingesters only for GetLabelNames and GetLabelValues if start time parameter is not specified (#6618)
* truncate getLabels and getSeries to max range if no start-end time provided
Signed-off-by: Ahmed Hassan <[email protected]>
* use prometheus api helper function for millisecond conversion
Signed-off-by: Ahmed Hassan <[email protected]>
* Revert "use prometheus api helper function for millisecond conversion"
This reverts commit 4301baf.
Signed-off-by: Ahmed Hassan <[email protected]>
* Revert "truncate getLabels and getSeries to max range if no start-end time provided"
This reverts commit 700b1c2.
Signed-off-by: Ahmed Hassan <[email protected]>
* label requests query ingesters only if start time not specified
Signed-off-by: Ahmed Hassan <[email protected]>
* update api docs
Signed-off-by: Ahmed Hassan <[email protected]>
* rerun tests
Signed-off-by: Ahmed Hassan <[email protected]>
* update changelog
Signed-off-by: Ahmed Hassan <[email protected]>
---------
Signed-off-by: Ahmed Hassan <[email protected]>
Signed-off-by: Ahmed Hassan <[email protected]>
Copy file name to clipboardExpand all lines: CHANGELOG.md
+1Lines changed: 1 addition & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -6,6 +6,7 @@
6
6
*[FEATURE] Querier/Ruler: Add `query_partial_data` and `rules_partial_data` limits to allow queries/rules to be evaluated with data from a single zone, if other zones are not available. #6526
7
7
*[FEATURE] Update prometheus alertmanager version to v0.28.0 and add new integration msteamsv2, jira, and rocketchat. #6590
8
8
*[FEATURE] Ingester: Add a `-ingester.enable-ooo-native-histograms` flag to enable out-of-order native histogram ingestion per tenant. It only takes effect when `-blocks-storage.tsdb.enable-native-histograms=true` and `-ingester.out-of-order-time-window` > 0. It is applied after the restart if it is changed at runtime through the runtime config. #6626
9
+
*[ENHANCEMENT] Querier: limit label APIs to query only ingesters if `start` param is not been specified. #6618
9
10
*[ENHANCEMENT] Alertmanager: Add new limits `-alertmanager.max-silences-count` and `-alertmanager.max-silences-size-bytes` for limiting silences per tenant. #6605
10
11
*[ENHANCEMENT] Update prometheus version to v3.1.0. #6583
11
12
*[ENHANCEMENT] Add `compactor.auto-forget-delay` for compactor to auto forget compactors after X minutes without heartbeat. #6533
Get label names of ingested series. Starting from release v1.18.0, Cortex by default honors the `start` and `end` request parameters and fetches label names from either ingester, store gateway or both.
393
+
Get label names of ingested series. Starting from release v1.18.0, Cortex by default honors the `start` and `end` request parameters and fetches label names from either ingester, store gateway or both. The special case is that if `start` param is not specified, Cortex currently fetches labels from data stored in the ingesters.
394
394
395
395
_For more information, please check out the Prometheus [get label names](https://prometheus.io/docs/prometheus/latest/querying/api/#getting-label-names) documentation._
396
396
@@ -405,7 +405,7 @@ GET <prometheus-http-prefix>/api/v1/label/{name}/values
405
405
GET <legacy-http-prefix>/api/v1/label/{name}/values
406
406
```
407
407
408
-
Get label values for a given label name. Starting from release v1.18.0, Cortex by default honors the `start` and `end` request parameters and fetches label values from either ingester, store gateway or both.
408
+
Get label values for a given label name. Starting from release v1.18.0, Cortex by default honors the `start` and `end` request parameters and fetches label values from either ingester, store gateway or both. The special case is that if `start` param is not specified, Cortex currently fetches label values from data stored in the ingesters.
409
409
410
410
_For more information, please check out the Prometheus [get label values](https://prometheus.io/docs/prometheus/latest/querying/api/#querying-label-values) documentation._
0 commit comments