Metrics Aggregator
Aggregate and centralize performance metrics from applications, databases, caches, and infrastructure into Prometheus, StatsD, or CloudWatch with unified naming conventions.
Overview
This skill empowers Claude to streamline performance monitoring by aggregating metrics from diverse systems into a unified view. It simplifies the process of collecting, centralizing, and analyzing performance data, leading to improved insights and faster issue resolution.
How It Works
- Metrics Taxonomy Design: Claude assists in defining a clear and consistent naming convention for metrics across all systems.
- Aggregation Tool Selection: Claude helps select the appropriate metrics aggregation tool (e.g., Prometheus, StatsD, CloudWatch) based on the user's environment and requirements.
- Configuration and Integration: Claude guides the configuration of the chosen aggregation tool and its integration with various data sources.
- Dashboard and Alert Setup: Claude helps set up dashboards for visualizing metrics and defining alerts for critical performance indicators.
When to Use This Skill
This skill activates when you need to:
- Centralize performance metrics from multiple applications and systems.
- Design a consistent metrics naming convention.
- Choose the right metrics aggregation tool for your needs.
- Set up dashboards and alerts for performance monitoring.
Examples
Example 1: Centralizing Application and System Metrics
User request: "Aggregate application and system metrics into Prometheus."
The skill will:
- Guide the user in defining metrics for applications (e.g., request latency, error rates) and systems (e.g., CPU usage, memory utilization).
- Help configure Prometheus to scrape metrics from the application and system endpoints.
Example 2: Setting Up Alerts for Database Performance
User request: "Centralize database metrics and set up alerts for slow queries."
The skill will:
- Help the user define metrics for database performance (e.g., query execution time, connection pool usage).
- Guide the user in configuring the aggregation tool to collect these metrics from the database.
- Assist in setting up alerts in the aggregation tool to notify the user when query execution time exceeds a defined threshold.
Best Practices
- Naming Conventions: Use a consistent and well-defined naming convention for all metrics to ensure clarity and ease of analysis.
- Granularity: Choose an appropriate level of granularity for metrics to balance detail and storage requirements.
- Retention Policies: Define retention policies for metrics to manage storage space and ensure data is available for historical analysis.
Integration
This skill integrates with other plugins that manage infrastructure, deploy applications, and monitor system health. For example, it can be used in conjunction with a deployment plugin to automatically configure metrics collection after a new application deployment.
Prerequisites
- Access to metrics collection tools (Prometheus, StatsD, CloudWatch)
- Network connectivity to metric sources
- Metrics storage configuration in ${CLAUDE_SKILL_DIR}/metrics/
- Understanding of metrics taxonomy
Instructions
- Design consistent metrics naming convention
- Select appropriate aggregation tool for environment
- Configure metric collection from all sources
- Set up centralized storage and retention policies
- Create dashboards for visualization
- Define alerts for critical metrics
Output
- Metrics aggregation configuration files
- Unified naming convention documentation
- Dashboard definitions for key metrics
- Alert rules for performance thresholds
- Integration guides for metric sources
Error Handling
If metrics aggregation fails:
- Verify network connectivity to sources
- Check authentication credentials
- Validate metrics format compatibility
- Review storage capacity and retention
- Ensure aggregation tool configuration
Resources
- Prometheus aggregation documentation
- StatsD protocol specifications
- CloudWatch metrics API reference
- Metrics naming best practices
1---
2name: aggregating-performance-metrics
3description: Aggregate and centralize performance metrics from applications, systems, databases, caches, and services. Use when consolidating monitoring data from multiple sources. Trigger with phrases like "aggregate metrics", "centralize monitoring", or "collect performance data".
4version: 1.0.0
5allowed-tools: "Read, Write, Bash(prometheus:*), Bash(metrics:*), Bash(monitoring:*), Grep"
6license: MIT
7author: Jeremy Longshore <jeremy@intentsolutions.io>
8compatible-with: claude-code, codex, openclaw
9metadata:
10 source: https://skillmd.com/skills/micsapp/aggregating-performance-metrics
11---
12
13# Metrics Aggregator
14
15Aggregate and centralize performance metrics from applications, databases, caches, and infrastructure into Prometheus, StatsD, or CloudWatch with unified naming conventions.
16
17## Overview
18
19This skill empowers Claude to streamline performance monitoring by aggregating metrics from diverse systems into a unified view. It simplifies the process of collecting, centralizing, and analyzing performance data, leading to improved insights and faster issue resolution.
20
21## How It Works
22
231. **Metrics Taxonomy Design**: Claude assists in defining a clear and consistent naming convention for metrics across all systems.
242. **Aggregation Tool Selection**: Claude helps select the appropriate metrics aggregation tool (e.g., Prometheus, StatsD, CloudWatch) based on the user's environment and requirements.
253. **Configuration and Integration**: Claude guides the configuration of the chosen aggregation tool and its integration with various data sources.
264. **Dashboard and Alert Setup**: Claude helps set up dashboards for visualizing metrics and defining alerts for critical performance indicators.
27
28## When to Use This Skill
29
30This skill activates when you need to:
31- Centralize performance metrics from multiple applications and systems.
32- Design a consistent metrics naming convention.
33- Choose the right metrics aggregation tool for your needs.
34- Set up dashboards and alerts for performance monitoring.
35
36## Examples
37
38### Example 1: Centralizing Application and System Metrics
39
40User request: "Aggregate application and system metrics into Prometheus."
41
42The skill will:
431. Guide the user in defining metrics for applications (e.g., request latency, error rates) and systems (e.g., CPU usage, memory utilization).
442. Help configure Prometheus to scrape metrics from the application and system endpoints.
45
46### Example 2: Setting Up Alerts for Database Performance
47
48User request: "Centralize database metrics and set up alerts for slow queries."
49
50The skill will:
511. Help the user define metrics for database performance (e.g., query execution time, connection pool usage).
522. Guide the user in configuring the aggregation tool to collect these metrics from the database.
533. Assist in setting up alerts in the aggregation tool to notify the user when query execution time exceeds a defined threshold.
54
55## Best Practices
56
57- **Naming Conventions**: Use a consistent and well-defined naming convention for all metrics to ensure clarity and ease of analysis.
58- **Granularity**: Choose an appropriate level of granularity for metrics to balance detail and storage requirements.
59- **Retention Policies**: Define retention policies for metrics to manage storage space and ensure data is available for historical analysis.
60
61## Integration
62
63This skill integrates with other plugins that manage infrastructure, deploy applications, and monitor system health. For example, it can be used in conjunction with a deployment plugin to automatically configure metrics collection after a new application deployment.
64
65## Prerequisites
66
67- Access to metrics collection tools (Prometheus, StatsD, CloudWatch)
68- Network connectivity to metric sources
69- Metrics storage configuration in ${CLAUDE_SKILL_DIR}/metrics/
70- Understanding of metrics taxonomy
71
72## Instructions
73
741. Design consistent metrics naming convention
752. Select appropriate aggregation tool for environment
763. Configure metric collection from all sources
774. Set up centralized storage and retention policies
785. Create dashboards for visualization
796. Define alerts for critical metrics
80
81## Output
82
83- Metrics aggregation configuration files
84- Unified naming convention documentation
85- Dashboard definitions for key metrics
86- Alert rules for performance thresholds
87- Integration guides for metric sources
88
89## Error Handling
90
91If metrics aggregation fails:
92- Verify network connectivity to sources
93- Check authentication credentials
94- Validate metrics format compatibility
95- Review storage capacity and retention
96- Ensure aggregation tool configuration
97
98## Resources
99
100- Prometheus aggregation documentation
101- StatsD protocol specifications
102- CloudWatch metrics API reference
103- Metrics naming best practices