From 979c092ef68cb638e8a64f215312fcad741dc22f Mon Sep 17 00:00:00 2001 From: Dalton Hubble Date: Sun, 13 Sep 2020 01:40:27 -0700 Subject: [PATCH] Reduce apiserver metrics cardinality of non-core APIs * Reduce `apiserver_request_duration_seconds_count` cardinality by dropping series for non-core Kubernetes APIs. This is done to match `apiserver_request_duration_seconds_count` relabeling * These two relabels must be performed the same way to avoid affecting new SLO calculations (upcoming) * See https://github.com/kubernetes-monitoring/kubernetes-mixin/issues/498 Related: https://github.com/poseidon/typhoon/pull/596 --- CHANGES.md | 6 ++++++ addons/prometheus/config.yaml | 3 +++ 2 files changed, 9 insertions(+) diff --git a/CHANGES.md b/CHANGES.md index 276a9e0d3..eadf7befb 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -4,6 +4,12 @@ Notable changes between versions. ## Latest +### Addons + +* Reduce apiserver metrics cardinality for non-core APIs ([#830](https://github.com/poseidon/typhoon/pull/830)) + +## v1.19.1 + * Kubernetes [v1.19.1](https://github.com/kubernetes/kubernetes/blob/master/CHANGELOG/CHANGELOG-1.19.md#v1191) * Change control plane seccomp annotations to GA `seccompProfile` ([#822](https://github.com/poseidon/typhoon/pull/822)) * Update Cilium from v1.8.2 to [v1.8.3](https://github.com/cilium/cilium/releases/tag/v1.8.3) diff --git a/addons/prometheus/config.yaml b/addons/prometheus/config.yaml index 6183e1c62..b5d910917 100644 --- a/addons/prometheus/config.yaml +++ b/addons/prometheus/config.yaml @@ -68,6 +68,9 @@ data: - source_labels: [__name__, group] regex: apiserver_request_duration_seconds_bucket;.+ action: drop + - source_labels: [__name__, group] + regex: apiserver_request_duration_seconds_count;.+ + action: drop # Scrape config for node (i.e. kubelet) /metrics (e.g. 'kubelet_'). Explore # metrics from a node by scraping kubelet (127.0.0.1:10250/metrics).