Skip to content

Commit

Permalink
chore(kromgo): reduce available metrics
Browse files Browse the repository at this point in the history
  • Loading branch information
buroa committed Dec 15, 2023
1 parent b7382a9 commit e2096ce
Showing 1 changed file with 6 additions and 25 deletions.
31 changes: 6 additions & 25 deletions kubernetes/apps/default/kromgo/app/configs/config.yaml
Original file line number Diff line number Diff line change
@@ -1,42 +1,23 @@
---
metrics:
- name: cluster_cpu_usage
- name: cluster_node_count
query: count(count by (node) (kube_node_status_condition{condition="Ready"}))

- name: cluster_node_cpu
query: round(cluster:node_cpu:ratio_rate5m * 100, 0.1)
suffix: "%"
colors:
- { color: "green", min: 0, max: 35 }
- { color: "orange", min: 36, max: 75 }
- { color: "red", min: 76, max: 1000 }

- name: cluster_node_count
query: count(count by (node) (kube_node_info))

- name: cluster_network_transmit_usage
query: round(avg(instance:node_network_transmit_bytes_excluding_lo:rate5m / 1024 / 1024), 0.1)
suffix: "MB/s"
colors:
- { color: "green", min: 0, max: 50 }
- { color: "orange", min: 51, max: 75 }
- { color: "red", min: 76, max: 1000 }

- name: cluster_network_receive_usage
query: round(avg(instance:node_network_receive_bytes_excluding_lo:rate5m / 1024 / 1024), 0.1)
suffix: "MB/s"
colors:
- { color: "green", min: 0, max: 50 }
- { color: "orange", min: 51, max: 75 }
- { color: "red", min: 76, max: 1000 }

- name: cluster_pods_running
- name: cluster_pods_count
query: sum(kube_pod_status_phase{phase="Running"})

- name: cluster_power_watts
- name: cluster_power_usage
query: round(avg_over_time(upsAdvanceOutputPower[5m]), 0.1)
suffix: "w"
colors:
- { color: "green", min: 0, max: 400 }
- { color: "orange", min: 401, max: 750 }
- { color: "red", min: 751, max: 2000 }

- name: plex_streams
query: sum(tautulli_stream_count)

0 comments on commit e2096ce

Please sign in to comment.