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

expose CEL expression execution cost in ResourceGroup status #190

Open
a-hilaly opened this issue Jan 9, 2025 · 2 comments
Open

expose CEL expression execution cost in ResourceGroup status #190

a-hilaly opened this issue Jan 9, 2025 · 2 comments
Assignees
Labels
good first issue Good for newcomers help wanted Extra attention is needed kind/feature

Comments

@a-hilaly
Copy link
Member

a-hilaly commented Jan 9, 2025

Feature Description

Currently there's no visibility into the cost of CEL expression evaluation for a ResourceGroup. We need to add support for tracking and exposing the total cost of CEL expressions in the ResourceGroup status. This will help platform teams understand the performance impact of their expressions and allow for better optimization of complex ResourceGroups.

Example:

apiVersion: kro.run/v1alpha1
kind: ResourceGroup
metadata:
  name: my-application
spec: {...}
status:
  celMetrics:
    totalCost: 42      # Total cost across all expressions
    costPerResource:   # Breakdown per resource
      deployment: 12
      service: 8
      ingress: 22

Like the Kubernetes API server does today, we want to add budgeting for CEL cost in kro.

@a-hilaly a-hilaly added good first issue Good for newcomers help wanted Extra attention is needed labels Jan 29, 2025
@aneesh4995
Copy link

hey @a-hilaly i would like to try this can you assign it to me.

@a-hilaly
Copy link
Member Author

a-hilaly commented Feb 6, 2025

Thank you @aneesh4995 - let us know if you hit any blockers :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers help wanted Extra attention is needed kind/feature
Projects
None yet
Development

No branches or pull requests

2 participants