Track API requests to each pod on my kubernetes cluster

Viewed 74

I am trying to track all API requests to my kubernetes cluster running on some ec2 instances. How do I go about doing this?

I am basically trying to check which IP the request is sent from, any data sent and any other discerning information.

I tried using prometheus but have not had any luck so far.

2 Answers

You can enable Auditing on your cluster. For specific resource, use resourceNames in the audit policy to specify the resource name.

Related