Skip to content

Commit

Permalink
fix(kromgo): do not include other systems in reporting
Browse files Browse the repository at this point in the history
  • Loading branch information
onedr0p authored Nov 30, 2024
1 parent 439a212 commit a363664
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ metrics:
title: Pods

- name: cluster_cpu_usage
query: round(avg(instance:node_cpu_utilisation:rate5m) * 100, 0.1)
query: round(avg(instance:node_cpu_utilisation:rate5m{kubernetes_node!=""}) * 100, 0.1)
suffix: "%"
colors:
- { color: "green", min: 0, max: 35 }
Expand All @@ -37,7 +37,7 @@ metrics:
title: CPU

- name: cluster_memory_usage
query: round(sum(node_memory_MemTotal_bytes - node_memory_MemAvailable_bytes) / sum(node_memory_MemTotal_bytes) * 100, 0.1)
query: round(sum(node_memory_MemTotal_bytes{kubernetes_node!=""} - node_memory_MemAvailable_bytes{kubernetes_node!=""}) / sum(node_memory_MemTotal_bytes{kubernetes_node!=""}) * 100, 0.1)
suffix: "%"
colors:
- { color: green, min: 0, max: 35 }
Expand All @@ -64,7 +64,7 @@ metrics:
title: Age

- name: cluster_uptime_days
query: round(avg(node_time_seconds - node_boot_time_seconds) / 86400)
query: round(avg(node_time_seconds{kubernetes_node!=""} - node_boot_time_seconds{kubernetes_node!=""}) / 86400)
suffix: "d"
colors:
- { color: "green", min: 0, max: 180 }
Expand Down

0 comments on commit a363664

Please sign in to comment.