Skip to content

Commit

Permalink
Split k8s.rules group into three groups
Browse files Browse the repository at this point in the history
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 <stephen.lang@grafana.com>
  • Loading branch information
skl committed Oct 27, 2023
1 parent b70b97c commit 45678b5
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions rules/apps.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,11 @@
)
||| % $._config,
},
],
},
{
name: 'k8s.rules.container_resource',
rules: [
{
record: 'cluster:namespace:pod_memory:active:kube_pod_container_resource_requests',
expr: |||
Expand Down Expand Up @@ -150,6 +155,11 @@
)
||| % $._config,
},
],
},
{
name: 'k8s.rules.pod_owner',
rules: [
// workload aggregation for deployments
{
record: 'namespace_workload_pod:kube_pod_owner:relabel',
Expand Down

0 comments on commit 45678b5

Please sign in to comment.