apiVersion: coralogix.com/v1alpha1
kind: RecordingRuleGroupSet
metadata:
  name: rules
spec:
  groups:
    - name: k8s_rules
      rules:
        - expr: >-
            sum(rate(container_cpu_usage_seconds_total{job="kubelet",
            metrics_path="/metrics/cadvisor", image!="", container!="POD"}[5m]))
            by (namespace)
          record: 'namespace:container_cpu_usage_seconds_total:sum_rate'