Initial commit
This commit is contained in:
15
.claude-plugin/plugin.json
Normal file
15
.claude-plugin/plugin.json
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
{
|
||||||
|
"name": "infrastructure-metrics-collector",
|
||||||
|
"description": "Collect comprehensive infrastructure performance metrics",
|
||||||
|
"version": "1.0.0",
|
||||||
|
"author": {
|
||||||
|
"name": "Claude Code Plugins",
|
||||||
|
"email": "[email protected]"
|
||||||
|
},
|
||||||
|
"skills": [
|
||||||
|
"./skills"
|
||||||
|
],
|
||||||
|
"commands": [
|
||||||
|
"./commands"
|
||||||
|
]
|
||||||
|
}
|
||||||
3
README.md
Normal file
3
README.md
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
# infrastructure-metrics-collector
|
||||||
|
|
||||||
|
Collect comprehensive infrastructure performance metrics
|
||||||
38
commands/collect-metrics.md
Normal file
38
commands/collect-metrics.md
Normal file
@@ -0,0 +1,38 @@
|
|||||||
|
---
|
||||||
|
description: Collect infrastructure performance metrics
|
||||||
|
---
|
||||||
|
|
||||||
|
# Infrastructure Metrics Collector
|
||||||
|
|
||||||
|
Set up comprehensive infrastructure metrics collection for performance monitoring.
|
||||||
|
|
||||||
|
## Infrastructure Layers
|
||||||
|
|
||||||
|
1. **Compute**: CPU, memory, processes, load average
|
||||||
|
2. **Storage**: Disk I/O, capacity, inode usage
|
||||||
|
3. **Network**: Bandwidth, connections, packet loss
|
||||||
|
4. **Containers**: Container resource usage, orchestration metrics
|
||||||
|
5. **Load Balancers**: Connection rates, health checks
|
||||||
|
6. **Databases**: Connection pools, replication lag, cache hit rates
|
||||||
|
|
||||||
|
## Process
|
||||||
|
|
||||||
|
1. Identify infrastructure components
|
||||||
|
2. Choose metrics collection agent (Prometheus node_exporter, Datadog agent, etc.)
|
||||||
|
3. Configure metrics collection
|
||||||
|
4. Set up central aggregation
|
||||||
|
5. Create infrastructure dashboards
|
||||||
|
6. Define infrastructure health alerts
|
||||||
|
|
||||||
|
## Output
|
||||||
|
|
||||||
|
Provide:
|
||||||
|
- Metrics collection agent configuration
|
||||||
|
- Infrastructure inventory
|
||||||
|
- Collection endpoint setup
|
||||||
|
- Dashboard configurations showing:
|
||||||
|
- Resource utilization heatmaps
|
||||||
|
- Capacity trending
|
||||||
|
- Health status overview
|
||||||
|
- Alert rules for infrastructure issues
|
||||||
|
- Integration with existing monitoring stack
|
||||||
61
plugin.lock.json
Normal file
61
plugin.lock.json
Normal file
@@ -0,0 +1,61 @@
|
|||||||
|
{
|
||||||
|
"$schema": "internal://schemas/plugin.lock.v1.json",
|
||||||
|
"pluginId": "gh:jeremylongshore/claude-code-plugins-plus:plugins/performance/infrastructure-metrics-collector",
|
||||||
|
"normalized": {
|
||||||
|
"repo": null,
|
||||||
|
"ref": "refs/tags/v20251128.0",
|
||||||
|
"commit": "c0466fca2c2336b8bd53f14d9fd7a4b58d6ed259",
|
||||||
|
"treeHash": "9023dc1c65d162bd74ef88238f8d9f472245fd136a942e5ad3b670d7c7248171",
|
||||||
|
"generatedAt": "2025-11-28T10:18:30.871780Z",
|
||||||
|
"toolVersion": "publish_plugins.py@0.2.0"
|
||||||
|
},
|
||||||
|
"origin": {
|
||||||
|
"remote": "git@github.com:zhongweili/42plugin-data.git",
|
||||||
|
"branch": "master",
|
||||||
|
"commit": "aa1497ed0949fd50e99e70d6324a29c5b34f9390",
|
||||||
|
"repoRoot": "/Users/zhongweili/projects/openmind/42plugin-data"
|
||||||
|
},
|
||||||
|
"manifest": {
|
||||||
|
"name": "infrastructure-metrics-collector",
|
||||||
|
"description": "Collect comprehensive infrastructure performance metrics",
|
||||||
|
"version": "1.0.0"
|
||||||
|
},
|
||||||
|
"content": {
|
||||||
|
"files": [
|
||||||
|
{
|
||||||
|
"path": "README.md",
|
||||||
|
"sha256": "44dae73180e6be788ebf61ee5ad646ceb79ea903d9d542328d5e0de1f4d0e8ea"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"path": ".claude-plugin/plugin.json",
|
||||||
|
"sha256": "6c515db0bc82a0e719e96149b5bac96eeeba9202cf995fa4423a11235018c08d"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"path": "commands/collect-metrics.md",
|
||||||
|
"sha256": "cb511cb77e66df9334d880e4f3f26bb012a3fb47061cb1c663001214d51f02db"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"path": "skills/infrastructure-metrics-collector/SKILL.md",
|
||||||
|
"sha256": "48964335a6b72d538cab36bbf1d04e620b10568884bebda0c8e4f3a6b78c8df9"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"path": "skills/infrastructure-metrics-collector/references/README.md",
|
||||||
|
"sha256": "5acc338cf7627d0458864de1d3e00ed5013736aa33864112cc38e22952c2e2be"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"path": "skills/infrastructure-metrics-collector/scripts/README.md",
|
||||||
|
"sha256": "50e376c6393984823ec4aeeb47dcf4abede258becaa2a2c946a484c9be8d6e12"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"path": "skills/infrastructure-metrics-collector/assets/README.md",
|
||||||
|
"sha256": "02732de3bab677a41d6ac855cf0387482dd5bf422a60179b988cffb78ed97af8"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"dirSha256": "9023dc1c65d162bd74ef88238f8d9f472245fd136a942e5ad3b670d7c7248171"
|
||||||
|
},
|
||||||
|
"security": {
|
||||||
|
"scannedAt": null,
|
||||||
|
"scannerVersion": null,
|
||||||
|
"flags": []
|
||||||
|
}
|
||||||
|
}
|
||||||
53
skills/infrastructure-metrics-collector/SKILL.md
Normal file
53
skills/infrastructure-metrics-collector/SKILL.md
Normal file
@@ -0,0 +1,53 @@
|
|||||||
|
---
|
||||||
|
name: collecting-infrastructure-metrics
|
||||||
|
description: |
|
||||||
|
This skill enables Claude to collect comprehensive infrastructure performance metrics across compute, storage, network, containers, load balancers, and databases. It is triggered when the user requests "collect infrastructure metrics", "monitor server performance", "set up performance dashboards", or needs to analyze system resource utilization. The skill configures metrics collection, sets up aggregation, and helps create infrastructure dashboards for health monitoring and capacity tracking. It supports configuration for Prometheus, Datadog, and CloudWatch.
|
||||||
|
allowed-tools: Read, Write, Edit, Grep, Glob, Bash
|
||||||
|
version: 1.0.0
|
||||||
|
---
|
||||||
|
|
||||||
|
## 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
|
||||||
|
|
||||||
|
1. **Identify Infrastructure Layers**: Determines the infrastructure layers to monitor (compute, storage, network, containers, load balancers, databases).
|
||||||
|
2. **Configure Metrics Collection**: Sets up agents (Prometheus, Datadog, CloudWatch) to collect metrics from the identified layers.
|
||||||
|
3. **Aggregate Metrics**: Configures central aggregation of the collected metrics for analysis and visualization.
|
||||||
|
4. **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:
|
||||||
|
1. Identify compute, storage, and network layers relevant to the web server.
|
||||||
|
2. 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:
|
||||||
|
1. Identify the database layer and relevant metrics such as connection pool usage, replication lag, and cache hit rates.
|
||||||
|
2. 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 Claude Code 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.
|
||||||
6
skills/infrastructure-metrics-collector/assets/README.md
Normal file
6
skills/infrastructure-metrics-collector/assets/README.md
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
# Assets
|
||||||
|
|
||||||
|
Bundled resources for infrastructure-metrics-collector skill
|
||||||
|
|
||||||
|
- [ ] grafana_dashboard_template.json Grafana dashboard template for infrastructure metrics.
|
||||||
|
- [ ] alerting_rules_template.yaml Template for defining alerting rules.
|
||||||
@@ -0,0 +1,8 @@
|
|||||||
|
# References
|
||||||
|
|
||||||
|
Bundled resources for infrastructure-metrics-collector skill
|
||||||
|
|
||||||
|
- [ ] prometheus_config.md Example Prometheus configuration file.
|
||||||
|
- [ ] datadog_config.md Example Datadog agent configuration file.
|
||||||
|
- [ ] grafana_dashboard_schema.md Grafana dashboard schema documentation.
|
||||||
|
- [ ] metrics_definitions.md Definitions and descriptions of key infrastructure metrics.
|
||||||
@@ -0,0 +1,8 @@
|
|||||||
|
# Scripts
|
||||||
|
|
||||||
|
Bundled resources for infrastructure-metrics-collector skill
|
||||||
|
|
||||||
|
- [ ] configure_prometheus.py Script to automate Prometheus configuration for metrics collection.
|
||||||
|
- [ ] configure_datadog.py Script to automate Datadog agent configuration for metrics collection.
|
||||||
|
- [ ] create_dashboard.py Script to create Grafana dashboards based on collected metrics.
|
||||||
|
- [ ] alert_setup.py Script to set up alerting rules based on metric thresholds.
|
||||||
Reference in New Issue
Block a user