Actions190
- Auth Actions
- Backup Actions
- Custom Templates Actions
- Docker Actions
- Edge Groups Actions
- Edge Jobs Actions
- Edge Stacks Actions
- Endpoint Groups Actions
- Endpoints Actions
- Endpoint Delete Batch
- Endpoint List
- Endpoint Create
- Endpoint Delete
- Endpoint Inspect
- Endpoint Update
- Endpoint Association Delete
- Endpoint Dockerhub Status
- Endpoint Edge Status Inspect
- Endpoint Force Update Service
- Endpoint Registries List
- Endpoint Registry Access
- Endpoint Settings Update
- Endpoint Snapshot
- Endpoint Update Relations
- Gitops Actions
- Helm Actions
- Intel Actions
- Kubernetes Actions
- Get All Kubernetes Applications
- Get All Kubernetes Applications Count
- Delete Cluster Role Bindings
- Delete Cluster Roles
- Get All Kubernetes Cluster Role Bindings
- Get All Kubernetes Cluster Roles
- Get All Kubernetes Config Maps
- Get All Kubernetes Config Maps Count
- Get Kubernetes Cron Jobs
- Delete Cron Jobs
- Get Kubernetes Dashboard
- Get All Kubernetes Ingress Controllers
- Update Kubernetes Ingress Controllers
- Get All Kubernetes Cluster Ingresses
- Get All Kubernetes Cluster Ingresses Count
- Delete Kubernetes Ingresses
- Get Kubernetes Jobs
- Delete Jobs
- Get Kubernetes Max Resource Limits
- Get Applications Resources
- Get Kubernetes Metrics For All Nodes
- Get Kubernetes Metrics For Node
- Get Kubernetes Metrics For All Pods
- Get Kubernetes Metrics For Pod
- Delete Kubernetes Namespace
- Get Kubernetes Namespaces
- Create Kubernetes Namespace
- Update Kubernetes Namespace Deprecated
- Get Kubernetes Namespace
- Update Kubernetes Namespace
- Get Kubernetes Config Map
- Get Kubernetes Ingress Controllers By Namespace
- Update Kubernetes Ingress Controllers By Namespace
- Get All Kubernetes Ingresses
- Create Kubernetes Ingress
- Update Kubernetes Ingress
- Get Kubernetes Ingress
- Get Kubernetes Secret
- Get Kubernetes Services By Namespace
- Create Kubernetes Service
- Update Kubernetes Service
- Kubernetes Namespaces Toggle System
- Get Kubernetes Volumes In Namespace
- Get Kubernetes Namespaces Count
- Get Kubernetes Nodes Limits
- Get Kubernetes RBAC Status
- Delete Role Bindings
- Get Kubernetes Role Bindings
- Get Kubernetes Roles
- Delete Roles
- Get Kubernetes Secrets
- Get Kubernetes Secrets Count
- Delete Service Accounts
- Get Kubernetes Service Accounts
- Get Kubernetes Services
- Get All Kubernetes Services Count
- Delete Kubernetes Services
- Get All Kubernetes Volumes
- Get Kubernetes Volume
- Get All Kubernetes Volumes Count
- Get Kubernetes Config
- Ldap Actions
- Registries Actions
- Resource Controls Actions
- Settings Actions
- Ssl Actions
- Stacks Actions
- Stack List
- Stack Delete
- Stack Inspect
- Stack Update
- Stack Associate
- Stack File Inspect
- Stack Update Git
- Stack Git Redeploy
- Stack Migrate
- Stack Start
- Stack Stop
- Stack Create Kubernetes Git
- Stack Create Kubernetes File
- Stack Create Kubernetes Url
- Stack Create Docker Standalone File
- Stack Create Docker Standalone Repository
- Stack Create Docker Standalone String
- Stack Create Docker Swarm File
- Stack Create Docker Swarm Repository
- Stack Create Docker Swarm String
- Stack Delete Kubernetes By Name
- Webhook Invoke
- Tags Actions
- Team Memberships Actions
- Teams Actions
- Templates Actions
- Upload Actions
- Users Actions
Kubernetes → Get Kubernetes Metrics For Pod
AI-generatedOverview
This node operation retrieves Kubernetes metrics for a specific pod within a given namespace. It is useful for monitoring and analyzing the resource usage (such as CPU and memory) of individual pods in a Kubernetes cluster. Practical applications include performance monitoring, troubleshooting resource bottlenecks, and integrating pod metrics into automated workflows or dashboards.
Properties
| Name | Meaning |
|---|---|
| Id | Environment identifier (a numeric ID representing the Kubernetes environment to query) |
| Namespace | The Kubernetes namespace where the pod resides |
| Name | The identifier (name) of the pod to retrieve metrics for |
Output
The output contains JSON data representing the metrics of the specified pod. This typically includes resource usage statistics such as CPU and memory consumption. The exact structure depends on the Kubernetes metrics API response but generally provides detailed metrics per container within the pod.
No binary data output is indicated.
Dependencies
- Requires access to a Kubernetes environment identified by the provided environment ID.
- Needs appropriate API credentials or tokens configured in n8n to authenticate with the Kubernetes API server.
- The node relies on Kubernetes Metrics API being enabled and accessible in the target cluster.
Troubleshooting
Common issues:
- Invalid or missing environment identifier may cause failure to connect to the Kubernetes cluster.
- Incorrect namespace or pod name will result in no data found or errors from the Kubernetes API.
- Lack of permissions or disabled metrics API in the Kubernetes cluster can lead to authorization errors or empty responses.
Error messages:
- "Pod not found" or similar indicates the specified pod name or namespace does not exist.
- Authentication errors suggest misconfigured or missing API credentials.
- Timeout or connection errors imply network issues or incorrect cluster endpoint configuration.
To resolve these, verify the environment ID, namespace, and pod name are correct; ensure the Kubernetes Metrics API is enabled; and confirm that valid credentials with sufficient permissions are set up in n8n.