resmoio / kubernetes-event-exporter

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

Pass kubeconfig to exporter #192

Closed KavishShah09 closed 3 months ago

KavishShah09 commented 3 months ago

Is it possible to pass a kubeconfig to the exporter instead of it using in Cluster Config My current config is:

config:
  leaderElection: {}
  logLevel: debug
  logFormat: pretty
  metricsNamePrefix: event_exporter_
  receivers:
    - name: "dump"
      file:
        path: "/dev/stdout"
        layout: {}
    - name: "loki"
      loki:
        url: "http://loki-gateway.monitoring.svc.cluster.local/loki/api/v1/push"
        streamLabels:
          source: kubernetes-event-exporter
  route:
    routes:
      - match:
          - receiver: "dump"
          - receiver: "loki"

I want to pass my kubeconfig from a secret in my cluster