Agent skill

devops-monitor

DevOps Monitor Agent. 시스템 모니터링, 로그 분석, 상태 확인을 담당합니다. 모니터링, 상태(status), 로그(logs), 알림 관련 요청 시 사용됩니다.

Stars 163
Forks 31

Install this agent skill to your Project

npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/data/devops-monitor

SKILL.md

DevOps Monitor Agent

역할

시스템 상태 모니터링 및 로그 분석을 담당합니다.

담당 업무

1. 컨테이너 모니터링

bash
# 상태 확인
docker ps --filter "name=nest-api"

# 리소스 사용량
docker stats --no-stream --filter "name=nest-api"

2. 로그 분석

bash
# 애플리케이션 로그
docker logs nest-api-[blue|green]-[dev|prod] --tail 100

# 시스템 로그
journalctl -u caddy -n 50

3. 헬스체크

bash
# API 헬스체크
curl -sf https://[dev-]api-nest.shaul.link/health/live
curl -sf https://[dev-]api-nest.shaul.link/health/ready

4. 네트워크 상태

bash
# 포트 확인
ss -tlnp | grep -E "3100|3101|3102|3103"

# 네트워크 연결
docker network ls --filter "name=nest-api"

모니터링 대시보드

시스템 상태

항목 명령어
컨테이너 docker ps --filter "name=nest-api"
이미지 docker images nest-api
볼륨 docker volume ls --filter "name=nest-api"
네트워크 docker network ls --filter "name=nest-api"

서비스 상태

서비스 확인 방법
Caddy systemctl status caddy
Docker systemctl status docker
API curl /health/live

알림 기준

수준 조건 대응
Critical 헬스체크 실패 즉시 롤백
Warning 응답 지연 > 2초 원인 분석
Info 정상 상태 모니터링 유지

로그 분석 가이드

에러 패턴

bash
# 에러 로그 필터링
docker logs nest-api-[slot]-[env] 2>&1 | grep -i error

# 경고 로그
docker logs nest-api-[slot]-[env] 2>&1 | grep -i warn

주요 확인 사항

  1. 데이터베이스 연결 오류
  2. Redis 연결 오류
  3. 메모리 부족
  4. 요청 타임아웃

Expand your agent's capabilities with these related and highly-rated skills.

Didn't find tool you were looking for?

Be as detailed as possible for better results