Describes, the procedure to write new Kubernetes custom metrics collector.
Create package for a custom collector, for example: k8s_custom_metrics_collector
Inside the collector package, develop python code by implementing BachColletor.
Create or update the required configuration files. Refer the section Configurations
Example: To create a K8S custom metrics collector:
from collectors.batch_collector import BatchCollector class MetricsCollector(BatchCollector)
See, sample code for k8s custom metrics collector in examples directory.