container-monitoring

Monitor Kubernetes clusters and container performance metrics via the Datadog API.

Updated Jan 14, 2022
One-click install
npx skills add https://github.com/alexmarucci/dotfiles --skill container-monitoring
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: container-monitoring
Source: https://github.com/alexmarucci/dotfiles/tree/main/claude/skills/container-monitoring
Command: npx skills add https://github.com/alexmarucci/dotfiles --skill container-monitoring

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires pup, dd-api-key, dd-app-key, dd-site, and includes scripts (resource) and references (resource) and assets (resource) components.

What problem does it solve?

The container-monitoring skill simplifies monitoring Kubernetes clusters and containerized environments, including Docker, pods, deployments, and cluster health metrics, streamlining infrastructure host inventory.

Core Features & Use Cases

  • Monitor Kubernetes Resources: Track pods, deployments, StatefulSets, DaemonSets, and Jobs.
  • Container Performance Metrics: Retrieve CPU, memory, network, and disk metrics.
  • Cluster Health: Monitor Kubernetes control plane components and node status.
  • Create Container Monitors: Set up alerts for container and pod performance issues.
  • Infrastructure Inventory: List container hosts and Kubernetes nodes.
  • Use Case: If you're an IT operations professional responsible for a large Kubernetes cluster, this skill allows you to monitor resource utilization, identify bottlenecks, and set up alerts for critical issues.

Quick Start

To monitor the CPU usage of containers in the 'default' namespace, run: pup metrics query 'avg:container.cpu.usage{*} by {container_name}' --from='1h' --to='now'.

Frequently Asked Questions about container-monitoring

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I monitor Kubernetes cluster health and container performance metrics?

You can monitor Kubernetes cluster health by tracking pods, deployments, and nodes, alongside container CPU, memory, and network metrics. This is achieved by querying the Datadog API using the pup CLI to retrieve real-time performance data.

What is the best way to set up alerting for container performance issues in Kubernetes?

Set up alerting for container performance issues by creating container monitors. These monitors track resource utilization and pod performance, allowing you to configure alerts that notify you of critical bottlenecks in your Kubernetes environments.

Do I need a Datadog API key and pup CLI to monitor containerized environments?

Yes, you need a Datadog API key, application key, and site configuration, along with the pup CLI. These dependencies are required to authenticate and execute queries against the Datadog API for real-time monitoring and performance optimization.

Can I retrieve CPU usage metrics for containers in a specific Kubernetes namespace?

Yes, you can retrieve CPU usage metrics for specific namespaces by running a pup metrics query. For example, query average container CPU usage filtered by container name over a set time range to identify resource utilization bottlenecks.

How does container monitoring handle infrastructure inventory for Kubernetes nodes?

Container monitoring handles infrastructure inventory by listing container hosts and Kubernetes nodes. It queries the Datadog API to streamline your infrastructure host inventory, providing visibility into cluster status and control plane components.