kubecost / features-bugs

A public repository for filing of Kubecost feature requests and bugs. Please read the issue guidelines before filing an issue here.
0 stars 0 forks source link

Request for filtering multiple field types using logical OR #96

Open jlamoree opened 1 year ago

jlamoree commented 1 year ago

Problem

I want to create an Allocation report showing costs from all of a given namespace, and also the costs from an arbitrary pod pattern regardless of namespace. Currently, the filter mechanism in the Kubecost UI imposes an AND operation on the criteria provided instead of OR.

kubecost-ui-filters

Desired Solution

I would like the Kubernetes UI to offer a filter choice:

The API also doesn't seem to function as I would expect, but perhaps I do not understand the documentation at Filter Parameters (v2). The following returns results, but does not include costs from the pods specified:

curl -G -u user:pass http://kubecost/model/allocation \
  -d window=3d \
  -d aggregate=namespace \
  -d 'filter=namespace:"kubecost"+pod:"tori*"'
teevans commented 1 year ago

@jlamoree - Thanks for the request! I don't have an exact timeline yet, but I do know this feature is coming in the next few months. Will keep you updated!

github-actions[bot] commented 11 months ago

This issue has been marked as stale because it has been open for 360 days with no activity. Please remove the stale label or comment or this issue will be closed in 5 days.

dwbrown2 commented 11 months ago

@teevans was this released in a recent build?

chipzoller commented 4 months ago

Don't see this is currently available as of 2.2.3. Transferred to features-bugs as this has been requested before.