Describes, the procedure to write new Kubernetes custom events collector.

  1. Create package for a custom collector, for example: k8s_custom_events_collector

  2. Inside the collector package, develop python code by implementing StreamColletor.

  3. Create or update the required configuration files. Refer the section Configurations

Example: To create a K8S custom events collector:

from collectors.stream_collector import StreamCollector 
class EventsCollector(StreamCollector)

See, sample code for k8s custom events collector in examples directory.