Usage of Elastic APIs to get Kubernetes node and container metrics

Hi All,

I am creating an automation script which will have metrics of all containers in kubernetes. Is there any Elastic API to get the data?

Thanks,
Raman