resmoio / kubernetes-event-exporter

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

Help with loki #119

Open maxtacu opened 1 year ago

maxtacu commented 1 year ago

I have the following event-exporter configuration.

  config:
    logLevel: error
    logFormat: json
    maxEventAgeSeconds: 30
    kubeQPS: 100
    kubeBurst: 500
    route:
      routes:
        - match:
          - receiver: loki
    receivers:
      - name: "loki"
        loki:
          url: http://loki-write.loki.svc.cluster.local/loki/api/v1/push

and it seems that Loki is not receiving anything and the event-exporter is not showing any errors. What is wrong with this config(same as in readme)? Any help appreciated

himao commented 1 year ago

maybe you can set logLevel: debug also check the url port,80 or 3100.

zhujintao commented 1 year ago

need add streamLabels ,loki query {app=kube-event-exporter}

 receivers:
      - name: "loki"
        loki:
          streamLabels:
            app: kube-event-exporter