Skip to content

Commit

Permalink
Separate remaining expensive rules
Browse files Browse the repository at this point in the history
  • Loading branch information
skl committed Nov 3, 2023
1 parent 45678b5 commit d1a28fc
Showing 1 changed file with 21 additions and 1 deletion.
22 changes: 21 additions & 1 deletion rules/apps.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
prometheusRules+:: {
groups+: [
{
name: 'k8s.rules',
name: 'k8s.rules.container_cpu_usage_seconds_total',
rules: [
{
// Reduces cardinality of this timeseries by #cores, which makes it
Expand All @@ -22,6 +22,11 @@
)
||| % $._config,
},
],
},
{
name: 'k8s.rules.container_memory_working_set_bytes',
rules: [
{
record: 'node_namespace_pod_container:container_memory_working_set_bytes',
expr: |||
Expand All @@ -31,6 +36,11 @@
)
||| % $._config,
},
],
},
{
name: 'k8s.rules.container_memory_rss',
rules: [
{
record: 'node_namespace_pod_container:container_memory_rss',
expr: |||
Expand All @@ -40,6 +50,11 @@
)
||| % $._config,
},
],
},
{
name: 'k8s.rules.container_memory_cache',
rules: [
{
record: 'node_namespace_pod_container:container_memory_cache',
expr: |||
Expand All @@ -49,6 +64,11 @@
)
||| % $._config,
},
],
},
{
name: 'k8s.rules.container_memory_swap',
rules: [
{
record: 'node_namespace_pod_container:container_memory_swap',
expr: |||
Expand Down

0 comments on commit d1a28fc

Please sign in to comment.