Skip to content

Commit

Permalink
chore: use value field for cluster properties
Browse files Browse the repository at this point in the history
  • Loading branch information
yashmehrotra committed Nov 1, 2023
1 parent b4717c4 commit effc475
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions fixtures/topology/k8s-system.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,23 +16,21 @@ spec:
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
expr: |
[{'name': 'cpu', 'value': int(results[0].value), 'headline': true, 'unit': 'millicores'}].toJSON()
- 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
expr: |
[{'name': 'memory', 'value': int(results[0].value), 'headline': true, 'unit': 'bytes'}].toJSON()
components:
- name: nodes
icon: server
Expand Down

0 comments on commit effc475

Please sign in to comment.