From 45678b5605e0f0e9056c3e4af999132c7afec52f Mon Sep 17 00:00:00 2001 From: Stephen Lang Date: Fri, 27 Oct 2023 18:05:48 +0100 Subject: [PATCH] Split k8s.rules group into three groups In order to prevent missed deadlines of some rules affecting the entire group, split the k8s.rules group into three groups. Signed-off-by: Stephen Lang --- rules/apps.libsonnet | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/rules/apps.libsonnet b/rules/apps.libsonnet index 5399fae98..fc0385125 100644 --- a/rules/apps.libsonnet +++ b/rules/apps.libsonnet @@ -58,6 +58,11 @@ ) ||| % $._config, }, + ], + }, + { + name: 'k8s.rules.container_resource', + rules: [ { record: 'cluster:namespace:pod_memory:active:kube_pod_container_resource_requests', expr: ||| @@ -150,6 +155,11 @@ ) ||| % $._config, }, + ], + }, + { + name: 'k8s.rules.pod_owner', + rules: [ // workload aggregation for deployments { record: 'namespace_workload_pod:kube_pod_owner:relabel',