Infrastructure Metrics Collector
Collect and centralize infrastructure metrics across compute, storage, network, containers, load balancers, and databases using Prometheus, Datadog, or CloudWatch.
Overview
This skill automates the process of setting up infrastructure metrics collection. It identifies key performance indicators (KPIs) across various infrastructure layers, configures agents to collect these metrics, and assists in setting up central aggregation and visualization.
How It Works
- Identify Infrastructure Layers: Determines the infrastructure layers to monitor (compute, storage, network, containers, load balancers, databases).
- Configure Metrics Collection: Sets up agents (Prometheus, Datadog, CloudWatch) to collect metrics from the identified layers.
- Aggregate Metrics: Configures central aggregation of the collected metrics for analysis and visualization.
- Create Dashboards: Generates infrastructure dashboards for health monitoring, performance analysis, and capacity tracking.
When to Use This Skill
This skill activates when you need to:
- Monitor the performance of your infrastructure.
- Identify bottlenecks in your system.
- Set up dashboards for real-time monitoring.
Examples
Example 1: Setting up basic monitoring
User request: "Collect infrastructure metrics for my web server."
The skill will:
- Identify compute, storage, and network layers relevant to the web server.
- Configure Prometheus to collect CPU, memory, disk I/O, and network bandwidth metrics.
Example 2: Troubleshooting database performance
User request: "I'm seeing slow database queries. Can you help me monitor the database performance?"
The skill will:
- Identify the database layer and relevant metrics such as connection pool usage, replication lag, and cache hit rates.
- Configure Datadog to collect these metrics and create a dashboard to visualize performance trends.
Best Practices
- Agent Selection: Choose the appropriate agent (Prometheus, Datadog, CloudWatch) based on your existing infrastructure and monitoring tools.
- Metric Granularity: Balance the granularity of metrics collection with the storage and processing overhead. Collect only the essential metrics for your use case.
- Alerting: Configure alerts based on thresholds for key metrics to proactively identify and address performance issues.
Integration
This skill can be integrated with other plugins for deployment, configuration management, and alerting to provide a comprehensive infrastructure management solution. For example, it can be used with a deployment plugin to automatically configure metrics collection after deploying new infrastructure.
Prerequisites
- Access to infrastructure monitoring systems (Prometheus, Datadog, CloudWatch)
- System permissions for metrics agent installation
- Network access to monitored infrastructure components
- Storage for metrics data in ${CLAUDE_SKILL_DIR}/metrics/
Instructions
- Identify infrastructure layers to monitor (compute, storage, network, databases)
- Select appropriate metrics collection agent based on environment
- Configure agent with target endpoints and metric types
- Set up central aggregation for collected metrics
- Create dashboards for visualization
- Configure alerts for critical metrics thresholds
Output
- Metrics collection configuration files
- Agent installation and setup scripts
- Dashboard definitions for infrastructure monitoring
- Metric export configurations
- Alert rules for critical thresholds
Error Handling
If metrics collection fails:
- Verify agent installation and permissions
- Check network connectivity to targets
- Validate authentication credentials
- Review firewall and security group rules
- Confirm metric endpoint availability
Resources
- Prometheus documentation for metric collection
- Datadog agent configuration guides
- AWS CloudWatch metrics reference
- Infrastructure monitoring best practices
Source: jeremylongshore/claude-code-plugins-plus-skills → skills/.curated/collecting-infrastructure-metrics/SKILL.md
Also appears in: jeremylongshore/claude-code-plugins-plus-skills/plugins/performance/infrastructure-metrics-collector/skills/collecting-infrastructure-metrics/SKILL.md
1---2name: collecting-infrastructure-metrics3description: Collect comprehensive infrastructure performance metrics across compute, storage, network, containers, load balancers, and databases. Use when monitoring system performance or troubleshooting infrastructure issues. Trigger with phrases like "collect infrastructure metrics", "monitor server performance", or "track system resources".4---5
6# Infrastructure Metrics Collector
7
8Collect and centralize infrastructure metrics across compute, storage, network, containers, load balancers, and databases using Prometheus, Datadog, or CloudWatch.
9
10## Overview
11
12This skill automates the process of setting up infrastructure metrics collection. It identifies key performance indicators (KPIs) across various infrastructure layers, configures agents to collect these metrics, and assists in setting up central aggregation and visualization.
13
14## How It Works
15
161. **Identify Infrastructure Layers**: Determines the infrastructure layers to monitor (compute, storage, network, containers, load balancers, databases).
172. **Configure Metrics Collection**: Sets up agents (Prometheus, Datadog, CloudWatch) to collect metrics from the identified layers.
183. **Aggregate Metrics**: Configures central aggregation of the collected metrics for analysis and visualization.
194. **Create Dashboards**: Generates infrastructure dashboards for health monitoring, performance analysis, and capacity tracking.
20
21## When to Use This Skill
22
23This skill activates when you need to:
24
25- Monitor the performance of your infrastructure.
26- Identify bottlenecks in your system.
27- Set up dashboards for real-time monitoring.
28
29## Examples
30
31### Example 1: Setting up basic monitoring
32
33User request: "Collect infrastructure metrics for my web server."
34
35The skill will:
36
371. Identify compute, storage, and network layers relevant to the web server.
382. Configure Prometheus to collect CPU, memory, disk I/O, and network bandwidth metrics.
39
40### Example 2: Troubleshooting database performance
41
42User request: "I'm seeing slow database queries. Can you help me monitor the database performance?"
43
44The skill will:
45
461. Identify the database layer and relevant metrics such as connection pool usage, replication lag, and cache hit rates.
472. Configure Datadog to collect these metrics and create a dashboard to visualize performance trends.
48
49## Best Practices
50
51- **Agent Selection**: Choose the appropriate agent (Prometheus, Datadog, CloudWatch) based on your existing infrastructure and monitoring tools.
52- **Metric Granularity**: Balance the granularity of metrics collection with the storage and processing overhead. Collect only the essential metrics for your use case.
53- **Alerting**: Configure alerts based on thresholds for key metrics to proactively identify and address performance issues.
54
55## Integration
56
57This skill can be integrated with other plugins for deployment, configuration management, and alerting to provide a comprehensive infrastructure management solution. For example, it can be used with a deployment plugin to automatically configure metrics collection after deploying new infrastructure.
58
59## Prerequisites
60
61- Access to infrastructure monitoring systems (Prometheus, Datadog, CloudWatch)
62- System permissions for metrics agent installation
63- Network access to monitored infrastructure components
64- Storage for metrics data in ${CLAUDE_SKILL_DIR}/metrics/
65
66## Instructions
67
681. Identify infrastructure layers to monitor (compute, storage, network, databases)
692. Select appropriate metrics collection agent based on environment
703. Configure agent with target endpoints and metric types
714. Set up central aggregation for collected metrics
725. Create dashboards for visualization
736. Configure alerts for critical metrics thresholds
74
75## Output
76
77- Metrics collection configuration files
78- Agent installation and setup scripts
79- Dashboard definitions for infrastructure monitoring
80- Metric export configurations
81- Alert rules for critical thresholds
82
83## Error Handling
84
85If metrics collection fails:
86
87- Verify agent installation and permissions
88- Check network connectivity to targets
89- Validate authentication credentials
90- Review firewall and security group rules
91- Confirm metric endpoint availability
92
93## Resources
94
95- Prometheus documentation for metric collection
96- Datadog agent configuration guides
97- AWS CloudWatch metrics reference
98- Infrastructure monitoring best practices
99
100---
101
102**Source:** [`jeremylongshore/claude-code-plugins-plus-skills`](https://github.com/jeremylongshore/claude-code-plugins-plus-skills) → `skills/.curated/collecting-infrastructure-metrics/SKILL.md`
103
104**Also appears in:** `jeremylongshore/claude-code-plugins-plus-skills/plugins/performance/infrastructure-metrics-collector/skills/collecting-infrastructure-metrics/SKILL.md`