소스 정보
- 저장소
- pluginagentmarketplace/custom-plugin-aws
- 최근 소스 활동
- 2025년 12월 30일 12:43
- 감지된 SKILL.md 언어
- 영어
- 스타
- 2
- 포크
- 0
설치 방법
기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.
소스 파일 검토
설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.
메뉴
기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.
설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
직접 명령은 검토 Prompt를 거치지 않습니다. 실행하기 전에 소스를 확인하세요.
npx skills add https://github.com/pluginagentmarketplace/custom-plugin-aws --skill aws-cloudwatch명령은 한 줄로 유지됩니다. 복사하기 전에 가로로 스크롤해 전체 내용을 확인하세요.
로컬 사본을 원하시나요? SkillsMP에서 현재 제공할 수 있는 파일을 다운로드하세요.
SOC 직업 분류 기준
SKILL.md 표시 중
| name | aws-cloudwatch |
| description | Implement monitoring, alerting, and observability with CloudWatch |
| sasmp_version | 1.3.0 |
| bonded_agent | 08-aws-devops |
| bond_type | SECONDARY_BOND |
Set up comprehensive monitoring and alerting for AWS resources.
| Attribute | Value |
|---|---|
| AWS Service | CloudWatch |
| Complexity | Medium |
| Est. Time | 15-30 min |
| Prerequisites | Resources to monitor |
| Parameter | Type | Description | Validation |
|---|---|---|---|
| namespace | string | Metric namespace | AWS/* or custom |
| metric_name | string | Metric name | Valid metric |
| resource_id | string | Resource identifier | Valid ARN or ID |
| Parameter | Type | Default | Description |
|---|---|---|---|
| period | int | 300 | Evaluation period (seconds) |
| statistic | string | Average | Average, Sum, Min, Max, p99 |
| threshold | float | varies | Alert threshold |
| evaluation_periods | int | 3 | Consecutive periods |
- name: HighCPU
metric: CPUUtilization
threshold: 80
period: 300
evaluation_periods: 3
- name: StatusCheckFailed
metric: StatusCheckFailed
threshold: 1
period: 60
evaluation_periods: 2
- name: HighCPU
metric: CPUUtilization
threshold: 80
- name: HighMemory
metric: MemoryUtilization
threshold: 85
- name: RunningTaskCount
metric: RunningTaskCount
threshold: 1
comparison: LessThan
- name: HighCPU
metric: CPUUtilization
threshold: 80
- name: LowFreeStorage
metric: FreeStorageSpace
threshold: 10737418240 # 10GB
comparison: LessThan
- name: HighConnections
metric: DatabaseConnections
threshold: 100
aws cloudwatch put-metric-alarm \
--alarm-name prod-ec2-high-cpu \
--alarm-description "EC2 CPU > 80% for 15 minutes" \
--namespace AWS/EC2 \
--metric-name CPUUtilization \
--dimensions Name=InstanceId,Value=i-1234567890abcdef0 \
--statistic Average \
--period 300 \
--threshold 80 \
--comparison-operator GreaterThanThreshold \
--evaluation-periods 3 \
--alarm-actions arn:aws:sns:us-east-1:123456789012:alerts \
--ok-actions arn:aws:sns:us-east-1:123456789012:alerts \
--treat-missing-data notBreaching
{
"widgets": [
{
"type": "metric",
"properties": {
"title": "EC2 CPU Utilization",
"metrics": [
["AWS/EC2", "CPUUtilization", "InstanceId", "i-xxx"]
],
"period": 300,
"stat": "Average",
"region": "us-east-1"
}
},
{
"type": "metric",
"properties": {
"title": "ECS Service Memory",
"metrics"
import boto3
cloudwatch = boto3.client('cloudwatch')
# Publish custom metric
cloudwatch.put_metric_data(
Namespace='MyApp',
MetricData=[
{
'MetricName': 'RequestLatency',
'Dimensions': [
{'Name': 'Service', 'Value': 'API'},
{'Name': 'Environment', 'Value': 'prod'}
],
'Value': 150.5,
'Unit': 'Milliseconds'
}
]
)
fields @timestamp, @message
| filter @message like /ERROR/
| stats count() as error_count by bin(5m)
fields @timestamp, latency
| stats avg(latency) as avg_latency,
pct(latency, 95) as p95_latency,
pct(latency, 99) as p99_latency
by bin(1h)
fields @timestamp, @message
| filter @message like /Exception|Error/
| parse @message /(?<error_type>\w+Exception)/
| stats count() as count by error_type
| sort count desc
| limit 10
| Symptom | Cause | Solution |
|---|---|---|
| No data | Metric not emitting | Check CloudWatch Agent |
| Alarm stuck | Insufficient data | Check treat_missing_data |
| Dashboard empty | Wrong namespace | Verify metric source |
| High costs | Too many metrics | Use metric filters |
def test_cloudwatch_alarm():
# Arrange
alarm_name = "test-alarm"
# Act
cw.put_metric_alarm(
AlarmName=alarm_name,
MetricName='CPUUtilization',
Namespace='AWS/EC2',
Statistic='Average',
Period=300,
EvaluationPeriods=1,
Threshold=80,
ComparisonOperator='GreaterThanThreshold'
)
# Assert
response = cw.describe_alarms(AlarmNames=[alarm_name])
assert len(response['MetricAlarms']) == 1
# Cleanup
cw.delete_alarms(AlarmNames=[alarm_name])
assets/alarm-config.yaml - Common alarm configurations