robusta icon indicating copy to clipboard operation
robusta copied to clipboard

Support filtering on more fields in events of type 'Normal'

Open asafhm opened this issue 2 years ago • 1 comments

Is your feature request related to a problem? It is currently impossible to use the on_event_* triggers when wanting to filter events by fields other than the ones in the metadata (name/namespace/labels).

Describe the solution you'd like Allow filtering by more fields, such as reason, message & involvedObject. It also be a great help if the filtering can support regex as well.

Describe alternatives you've considered None.

Additional context A good use case for this, is when dealing with events emitted by ArgoCD. For example: We want to annotate a Grafana dashboard whenever a Sync operation on an Application took place. Here's an example of such event data which we still can't discover:

apiVersion: v1
count: 1
eventTime: null
firstTimestamp: xxxxx
involvedObject:
  apiVersion: argoproj.io/v1alpha1
  kind: Application
  name: xxxxx
  namespace: xxxx
  resourceVersion: xxxxx
  uid: xxxxx
kind: Event
lastTimestamp: xxxxx
message: Sync operation to xxxxx succeeded
metadata:
  annotations:
    dest-namespace: xxxxx
    dest-server: xxxxx
  creationTimestamp: xxxxx
  name: xxxxx
  namespace: xxxxx
  resourceVersion: xxxxx
  uid: xxxxx
reason: OperationCompleted
reportingComponent: ""
reportingInstance: ""
source:
  component: argocd-application-controller
type: Normal

asafhm avatar Dec 21 '23 10:12 asafhm

Hi 👋, thanks for opening an issue! Please note, it may take some time for us to respond, but we'll get back to you as soon as we can!

  • 💬 Slack Community: Join Robusta team and other contributors on Slack here.
  • 📖 Docs: Find our documentation here.
  • 🎥 YouTube Channel: Watch our videos here.

github-actions[bot] avatar Dec 21 '23 10:12 github-actions[bot]