resmoio / kubernetes-event-exporter

Export Kubernetes events to multiple destinations with routing and filtering
Apache License 2.0
753 stars 149 forks source link

Only showing resources from the namespace where exporter is deployed #191

Open nikolaops opened 1 month ago

nikolaops commented 1 month ago

Hello, I can only see the events within the namespace where its exporter deployed (monitoring) and cant see any other event from other namespaces. Configuration:

config:
  logFormat: json
  logLevel: debug
  metricsNamePrefix: event_exporter_
  clusterName: ${eks_cluster}
  receivers:
  - name: loki
    webhook:
      endpoint: http://loki-stack:3100/loki/api/v1/push
      headers:
        Content-Type: application/json
        User-Agent: kube-event-exporter
      layout:
        streams:
        - stream:
            kind: kube-event
            type: '{{ .Type }}'
          values:
          - - '{{ mul .GetTimestampMs 1000000 }}'
            - level={{ lower .Type | replace "normal" "notice" }} namespace={{ .InvolvedObject.Namespace
              }} object={{ .InvolvedObject.Kind }}/{{ .InvolvedObject.Name }} reason={{
              .Reason }} message={{ quote .Message }}
LHozzan commented 1 month ago

Hi there. I think, but I am not sure, that you missing RBAC. Have you deployed the exporter via Bitnami HelmChart ? BR!