Skip to content

Commit

Permalink
Merge pull request #68 from SumoLogic/hpal_k8s_metrics_deprecated
Browse files Browse the repository at this point in the history
Updated cpu utilisation metrics
  • Loading branch information
himsharma01 authored Oct 30, 2023
2 parents b4cf0db + 2afd83d commit 2da1b52
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion monitor_packages/kubernetes/kubernetes.json
Original file line number Diff line number Diff line change
Expand Up @@ -396,7 +396,7 @@
"queries": [
{
"rowId": "A",
"query": "$$kubernetes_data_source metric=node:node_cpu_utilisation:avg1m | sum by cluster,node"
"query": "$$kubernetes_data_source metric=node_cpu_seconds_total mode=idle | rate | avg by cluster,node | eval 1 - _value"
}
],
"triggers": [
Expand Down
2 changes: 1 addition & 1 deletion monitor_packages/kubernetes/kubernetes.tf
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,7 @@ module "NodeCPUUtilizationHigh" {

# Queries - Multiple queries allowed for Metrics monitor
queries = {
A = "${var.kubernetes_data_source} metric=node:node_cpu_utilisation:avg1m | sum by cluster,node"
A = "${var.kubernetes_data_source} metric=node_cpu_seconds_total mode=idle | rate | avg by cluster, node | eval 1 - _value"
}

# Triggers
Expand Down

0 comments on commit 2da1b52

Please sign in to comment.