Skip to content

Commit

Permalink
feat: add total stats for k8s cluster
Browse files Browse the repository at this point in the history
  • Loading branch information
yashmehrotra committed Oct 31, 2023
1 parent 8e8a108 commit 2a13576
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions fixtures/topology/k8s-system.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,25 @@ spec:
configs:
- name: flanksource-canary-cluster
type: EKS
properties:
- name: cpu
headline: true
unit: millicores
lookup:
prometheus:
- query: '1000 * max(rate(container_cpu_usage_seconds_total{container!=""}[5m]))'
url: 'http://prometheus-k8s.monitoring:9090'
display:
expr: results[0].value
- name: memory
headline: true
unit: bytes
lookup:
prometheus:
- query: 'max(avg_over_time(container_memory_working_set_bytes{container!=""}[5m]))'
url: 'http://prometheus-k8s.monitoring:9090'
display:
expr: results[0].value
components:
- name: nodes
icon: server
Expand Down

0 comments on commit 2a13576

Please sign in to comment.