From c0ccea9a3bbcea1f4b187c7b69eb493bb31baeea Mon Sep 17 00:00:00 2001 From: Julien Pivotto Date: Tue, 13 Oct 2020 01:05:28 +0200 Subject: [PATCH 1/5] Support metric_relabel_configs in distributor Signed-off-by: Julien Pivotto --- CHANGELOG.md | 1 + docs/configuration/config-file-reference.md | 6 ++ .../config-file-reference.template | 1 + pkg/distributor/distributor.go | 6 ++ pkg/distributor/distributor_test.go | 75 +++++++++++++++++++ pkg/util/validation/limits.go | 8 ++ tools/doc-generator/parser.go | 19 +++++ 7 files changed, 116 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 45d0f96f51e..d8039251a4e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -51,6 +51,7 @@ * [FEATURE] Shuffle sharding: added support for shuffle-sharding queriers in the query-frontend. When configured (`-frontend.max-queriers-per-tenant` globally, or using per-tenant limit `max_queriers_per_tenant`), each tenants's requests will be handled by different set of queriers. #3113 #3257 * [FEATURE] Shuffle sharding: added support for shuffle-sharding ingesters on the read path. When ingesters shuffle-sharding is enabled and `-querier.shuffle-sharding-ingesters-lookback-period` is set, queriers will fetch in-memory series from the minimum set of required ingesters, selecting only ingesters which may have received series since 'now - lookback period'. #3252 * [FEATURE] Query-frontend: added `compression` config to support results cache with compression. #3217 +* [FEATURE] Added support for applying Prometheus relabel configs on series received by the distributor. A `metric_relabel_configs` field has been added to the per-tenant limits configuration. #3329 * [ENHANCEMENT] Allow to specify multiple comma-separated Cortex services to `-target` CLI option (or its respective YAML config option). For example, `-target=all,compactor` can be used to start Cortex single-binary with compactor as well. #3275 * [ENHANCEMENT] Expose additional HTTP configs for the S3 backend client. New flag are listed below: #3244 - `-blocks-storage.s3.http.idle-conn-timeout` diff --git a/docs/configuration/config-file-reference.md b/docs/configuration/config-file-reference.md index f9f419a74e4..801a14f67ea 100644 --- a/docs/configuration/config-file-reference.md +++ b/docs/configuration/config-file-reference.md @@ -24,6 +24,7 @@ To specify which configuration file to load, pass the `-config.file` flag at the * ``: a regular string * ``: an URL * ``: a CLI flag prefix based on the context (look at the parent configuration block to see which CLI flags prefix should be used) +* ``: a [prometheus relabeling configuration](https://prometheus.io/docs/prometheus/latest/configuration/configuration/#relabel_config). * `