Closed pycgo closed 7 months ago
version kubernetes-event-exporter v1.6.1 k8s:v1.28.6
pods logs
{"level":"info","time":"2024-01-28T06:24:51Z","message":"Reading config file /data/config.yaml"} {"level":"debug","time":"2024-01-28T06:24:51Z","message":"setting config.cacheSize=1024 (default)"} {"level":"debug","time":"2024-01-28T06:24:51Z","message":"setting config.kubeBurst=10 (default)"} {"level":"debug","time":"2024-01-28T06:24:51Z","message":"setting config.kubeQPS=5.00 (default)"} {"level":"info","time":"2024-01-28T06:24:51Z","message":"setting config.maxEventAgeSeconds=5 (default)"} {"level":"info","time":"2024-01-28T06:24:51Z","message":"config.metricsNamePrefix='event_exporter_'"} {"level":"info","time":"2024-01-28T06:24:51Z","message":"levelinfomsgListening onaddress[::]:2112"} {"level":"info","time":"2024-01-28T06:24:51Z","message":"levelinfomsgTLS is disabled.http2falseaddress[::]:2112"} {"level":"info","name":"syslog","type":"*sinks.SyslogSink","time":"2024-01-28T06:24:51Z","message":"Registering sink"} {"level":"debug","msg":"Stopping container event-exporter","namespace":"monitoring","reason":"Killing","involvedObject":"event-exporter-7dff89684b-ctqmg","time":"2024-01-28T06:24:51Z","message":"Received event"} {"level":"error","name":"dump","time":"2024-01-28T06:24:51Z","message":"There is no channel"} {"level":"debug","msg":"Successfully assigned monitoring/event-exporter-7dff89684b-jv7xh to master","namespace":"monitoring","reason":"Scheduled","involvedObject":"event-exporter-7dff89684b-jv7xh","time":"2024-01-28T06:24:51Z","message":"Received event"} {"level":"error","name":"dump","time":"2024-01-28T06:24:51Z","message":"There is no channel"} {"level":"debug","msg":"Container image \"ghcr.io/resmoio/kubernetes-event-exporter:latest\" already present on machine","namespace":"monitoring","reason":"Pulled","involvedObject":"event-exporter-7dff89684b-jv7xh","time":"2024-01-28T06:24:51Z","message":"Received event"} {"level":"error","name":"dump","time":"2024-01-28T06:24:51Z","message":"There is no channel"} {"level":"debug","msg":"Created container event-exporter","namespace":"monitoring","reason":"Created","involvedObject":"event-exporter-7dff89684b-jv7xh","time":"2024-01-28T06:24:51Z","message":"Received event"} {"level":"error","name":"dump","time":"2024-01-28T06:24:51Z","message":"There is no channel"} {"level":"debug","msg":"Started container event-exporter","namespace":"monitoring","reason":"Started","involvedObject":"event-exporter-7dff89684b-jv7xh","time":"2024-01-28T06:24:51Z","message":"Received event"} {"level":"error","name":"dump","time":"2024-01-28T06:24:51Z","message":"There is no channel"} {"level":"debug","msg":"Created pod: event-exporter-7dff89684b-jv7xh","namespace":"monitoring","reason":"SuccessfulCreate","involvedObject":"event-exporter-7dff89684b","time":"2024-01-28T06:24:51Z","message":"Received event"} {"level":"error","name":"dump","time":"2024-01-28T06:24:51Z","message":"There is no channel"}
yaml config
apiVersion: apps/v1 kind: Deployment metadata: name: event-exporter namespace: monitoring spec: progressDeadlineSeconds: 600 replicas: 1 revisionHistoryLimit: 10 selector: matchLabels: app: event-exporter version: v1 template: metadata: annotations: prometheus.io/path: /metrics prometheus.io/port: "2112" prometheus.io/scrape: "true" creationTimestamp: null labels: app: event-exporter version: v1 spec: containers: - args: - -conf=/data/config.yaml image: ghcr.io/resmoio/kubernetes-event-exporter:latest imagePullPolicy: IfNotPresent name: event-exporter resources: {} securityContext: allowPrivilegeEscalation: false capabilities: drop: - ALL terminationMessagePath: /dev/termination-log terminationMessagePolicy: File volumeMounts: - mountPath: /data name: cfg dnsPolicy: ClusterFirst restartPolicy: Always schedulerName: default-scheduler securityContext: runAsNonRoot: true seccompProfile: type: RuntimeDefault serviceAccount: event-exporter serviceAccountName: event-exporter terminationGracePeriodSeconds: 30 volumes: - configMap: defaultMode: 420 name: event-exporter-cfg name: cfg --- apiVersion: v1 data: config.yaml: | logLevel: trace logFormat: json metricsNamePrefix: event_exporter_ route: routes: - match: - receiver: "dump" receivers: - name: "syslog" syslog: network: "udp" address: "192.168.50.234:514" tag: "k8s.event" kind: ConfigMap metadata: name: event-exporter-cfg namespace: monitoring
version kubernetes-event-exporter v1.6.1 k8s:v1.28.6
pods logs
yaml config