Skip to content

k8seventreceiver should allow event types other than normal and warning #43401

@gaddas3

Description

@gaddas3

Component(s)

receiver/k8sevents

Describe the issue you're reporting

k8seventreceiver should allow event types other than normal and warning.
When our customer created the k8s event with type Critical, k8seventreceiver saved the log with type Normal.

apiVersion: v1
kind: Event
metadata:
  name: example-critical-event
  namespace: default
message: This is a sample critical event.
reason: CustomEvent
involvedObject:
  name: example-pod
  kind: Pod
  namespace: default
type: Critical 
source:
  component: custom-emitter
reportingInstance: custom-emitter-instance
firstTimestamp: "2025-10-09T17:00:00Z"
lastTimestamp: "2025-10-09T17:00:00Z"
eventTime: null
action: Custom Action
count: 1

In the k8s events output it is shown as Critical:
kubectl get events|grep "This is a sample critical event"
28m Critical CustomEvent pod/example-pod This is a sample critical event.

However, when k8seventreceiver converted to log, type was converted to Normal.

Tip

React with 👍 to help prioritize this issue. Please use comments to provide useful context, avoiding +1 or me too, to help us triage it. Learn more here.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions