This repository has been archived by the owner on Dec 9, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
remove _name from recording rules (#19)
- Loading branch information
1 parent
dad1c0f
commit c52fa8e
Showing
1 changed file
with
6 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -379,15 +379,15 @@ namespace: "kubecost" | |
groups: | ||
- name: CPU | ||
rules: | ||
- expr: sum(rate(container_cpu_usage_seconds_total{container_name!=""}[5m])) | ||
- expr: sum(rate(container_cpu_usage_seconds_total{container!=""}[5m])) | ||
record: cluster:cpu_usage:rate5m | ||
- expr: rate(container_cpu_usage_seconds_total{container_name!=""}[5m]) | ||
- expr: rate(container_cpu_usage_seconds_total{container!=""}[5m]) | ||
record: cluster:cpu_usage_nosum:rate5m | ||
- expr: avg(irate(container_cpu_usage_seconds_total{container_name!="POD", container_name!=""}[5m])) by (container_name,pod_name,namespace) | ||
- expr: avg(irate(container_cpu_usage_seconds_total{container!="POD", container!=""}[5m])) by (container,pod,namespace) | ||
record: kubecost_container_cpu_usage_irate | ||
- expr: sum(container_memory_working_set_bytes{container_name!="POD",container_name!=""}) by (container_name,pod_name,namespace) | ||
- expr: sum(container_memory_working_set_bytes{container!="POD",container!=""}) by (container,pod,namespace) | ||
record: kubecost_container_memory_working_set_bytes | ||
- expr: sum(container_memory_working_set_bytes{container_name!="POD",container_name!=""}) | ||
- expr: sum(container_memory_working_set_bytes{container!="POD",container!=""}) | ||
record: kubecost_cluster_memory_working_set_bytes | ||
- name: Savings | ||
rules: | ||
|
@@ -451,4 +451,4 @@ Optionally, you can also add our [Kubecost Dashboard for Grafana Cloud](https:// | |
|
||
For advanced setup or if you have any questions, you can contact us on [Slack](https://join.slack.com/t/kubecost/shared_invite/enQtNTA2MjQ1NDUyODE5LWFjYzIzNWE4MDkzMmUyZGU4NjkwMzMyMjIyM2E0NGNmYjExZjBiNjk1YzY5ZDI0ZTNhZDg4NjlkMGRkYzFlZTU) or email at [email protected] | ||
|
||
To participate in our free Enterprise onboarding program, contact us at [email protected] to schedule these sessions! | ||
To participate in our free Enterprise onboarding program, contact us at [email protected] to schedule these sessions! |