Skip to content

Commit

Permalink
Merge pull request #13 from grafana/skl/split-k8s-rules-even-more
Browse files Browse the repository at this point in the history
Split k8s.rules group into seven groups
  • Loading branch information
skl authored Nov 6, 2023
2 parents 5580799 + ca5c527 commit 126e460
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 126e460

Please sign in to comment.