canary-checker icon indicating copy to clipboard operation
canary-checker copied to clipboard

Topology property - improve lookups of min/max/etc..

Open yashmehrotra opened this issue 2 years ago • 1 comments

  • Allow lookups for min/max via prometheus/etc
  • Allow property values from CEL expression of children
  • Add lookup type option : valueLookup, propertiesLookup and componentsLookup
  • change from CanarySpec to LookupSpec

yashmehrotra avatar Oct 25 '23 10:10 yashmehrotra

- name: cpu
  lookups:
    - query: sum(node:node_num_cpu:sum)
   	  mapping:
         max: int(results[0].value
    - query:  '1000 * sum(rate(container_cpu_usage_seconds_total{container!=""{{.Values.prometheus.labels}}}[5m]))'
      connection: connection://{{ .Values.prometheus.connection }}
	  mapping:
          value: int(results[0].value
          headline: true
          unit: "'millicores'"

moshloop avatar Dec 18 '24 08:12 moshloop