Skip to content

Commit

Permalink
Merge pull request #952 from than-pet/k8s-resource-rule-group-split
Browse files Browse the repository at this point in the history
Split k8s container resource rule grouping
  • Loading branch information
povilasv committed Sep 2, 2024
2 parents 01d3966 + 33c8211 commit eca8d3f
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion rules/apps.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@
],
},
{
name: 'k8s.rules.container_resource',
name: 'k8s.rules.container_memory_requests',
rules: [
{
record: 'cluster:namespace:pod_memory:active:kube_pod_container_resource_requests',
Expand All @@ -106,6 +106,11 @@
)
||| % $._config,
},
],
},
{
name: 'k8s.rules.container_cpu_requests',
rules: [
{
record: 'cluster:namespace:pod_cpu:active:kube_pod_container_resource_requests',
expr: |||
Expand All @@ -129,6 +134,11 @@
)
||| % $._config,
},
],
},
{
name: 'k8s.rules.container_memory_limits',
rules: [
{
record: 'cluster:namespace:pod_memory:active:kube_pod_container_resource_limits',
expr: |||
Expand All @@ -152,6 +162,11 @@
)
||| % $._config,
},
],
},
{
name: 'k8s.rules.container_cpu_limits',
rules: [
{
record: 'cluster:namespace:pod_cpu:active:kube_pod_container_resource_limits',
expr: |||
Expand Down

0 comments on commit eca8d3f

Please sign in to comment.