Skip to content

Commit

Permalink
more rules
Browse files Browse the repository at this point in the history
Signed-off-by: Thibault Mange <[email protected]>
  • Loading branch information
thibaultmg committed Dec 19, 2024
1 parent deb20f0 commit 9128c35
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ data:
"targets": [
{
"exemplar": true,
"expr": "(sum(cluster:kube_pod_container_resource_requests:cpu:sum{cluster=\"$cluster\"}) / sum(kube_node_status_allocatable{cluster=\"$cluster\", resource=\"cpu\"})) - (1 - avg(rate(node_cpu_seconds_total{mode=\"idle\",cluster=\"$cluster\"}[$__rate_interval])))",
"expr": "(sum(cluster:kube_pod_container_resource_requests:cpu:sum{cluster=\"$cluster\"}) / sum(kube_node_status_allocatable{cluster=\"$cluster\", resource=\"cpu\"})) - (1 - node_cpu_seconds_total:mode_idle:avg_rate5m)",
"format": "time_series",
"instant": true,
"interval": "",
Expand Down Expand Up @@ -372,7 +372,7 @@ data:
"pluginVersion": "8.5.20",
"targets": [
{
"expr": "1 - avg(rate(node_cpu_seconds_total{mode=\"idle\", cluster=\"$cluster\"}[$__rate_interval]))",
"expr": "1 - node_cpu_seconds_total:mode_idle:avg_rate5m",
"format": "time_series",
"instant": true,
"intervalFactor": 1,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ data:
"pluginVersion": "8.5.20",
"targets": [
{
"expr": "1 - avg(rate(node_cpu_seconds_total{mode=\"idle\", cluster=\"$cluster\"}[$__rate_interval]))",
"expr": "1 - node_cpu_seconds_total:mode_idle:avg_rate5m",
"format": "time_series",
"instant": true,
"intervalFactor": 1,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ data:
"steppedLine": false,
"targets": [
{
"expr": "sum(rate(grpc_server_started_total{cluster=\"$cluster\",job=\"etcd\",grpc_type=\"unary\"}[$__rate_interval]))",
"expr": "grpc_server_started_total:etcd_unary:sum_rate",
"format": "time_series",
"interval": "",
"intervalFactor": 2,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -194,3 +194,7 @@ spec:
record: node_namespace_pod_container:container_cpu_usage_seconds_total:sum_rate
- expr: histogram_quantile(0.99, sum(rate(workqueue_queue_duration_seconds_bucket{job="apiserver"}[5m])) by (instance, name, le))
record: workqueue_queue_duration_seconds_bucket:apiserver:histogram_quantile_99
- expr: sum(rate(grpc_server_started_total{job="etcd",grpc_type="unary"}[5m]))
record: grpc_server_started_total:etcd_unary:sum_rate
- expr: avg(rate(node_cpu_seconds_total{mode="idle"}[5m]))
record: node_cpu_seconds_total:mode_idle:avg_rate5m
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ spec:
- '{__name__="etcd_server_proposals_failed_total"}'
- '{__name__="etcd_server_proposals_pending"}'
- '{__name__="go_goroutines",job="apiserver"}'
- '{__name__="grpc_server_started_total"}'
- '{__name__="grpc_server_started_total:etcd_unary:sum_rate"}'
- '{__name__="instance:node_cpu_utilisation:rate1m"}'
- '{__name__="instance:node_load1_per_cpu:ratio"}'
- '{__name__="instance:node_memory_utilisation:ratio"}'
Expand All @@ -68,7 +68,7 @@ spec:
- '{__name__="kube_resourcequota"}'
- '{__name__="namespace_workload_pod:kube_pod_owner:relabel"}'
- '{__name__="namespace_workload_pod:kube_pod_owner:relabel:avg"}'
- '{__name__="node_cpu_seconds_total"}'
- '{__name__="node_cpu_seconds_total:mode_idle:avg_rate5m"}'
- '{__name__="node_filesystem_avail_bytes"}'
- '{__name__="node_filesystem_size_bytes"}'
- '{__name__="node_namespace_pod_container:container_cpu_usage_seconds_total:sum"}'
Expand Down

0 comments on commit 9128c35

Please sign in to comment.