Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add total stats for k8s cluster #1391

Merged
merged 2 commits into from
Oct 31, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading