Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

The kubepodcontainer_info metric in Prometheus can be used to monitor Kubernetes Deployments by providing information about the running containers in a pod. This metric can be used to track container memory and CPU usage, network traffic, and other relevant information.

To use kubepodcontainer_info for monitoring Deployments, create a Prometheus query that filters for the desired deployment name and container name. For example, the query:

kube_pod_container_info{deployment="example", container="web"}

will return information about the running container with the name "web" in the Deployment named "example".

This information can then be used to set up alerts, create graphs and dashboards, and perform other monitoring tasks. By monitoring kubepodcontainer_info for each container in a Deployment, you can gain insight into the health and performance of your Kubernetes application.