prometheus
하는 일
이 스킬은 PromQL 쿼리, 알림 규칙, 기록 규칙, 대시보드를 포함해 Prometheus로 서비스를 모니터링하는 방법을 안내합니다. 시스템이 언제 건강하지 않은지 알고 싶은 운영자와 개발자를 위한 스킬입니다.
사용하는 경우
- ✓대시보드나 알림을 위한 PromQL 쿼리를 작성해야 할 때.
- ✓누군가 조치할 수 있는 문제에만 울리는 알림을 원할 때.
- ✓지표가 너무 커져서 대시보드를 빠르게 하려면 기록 규칙이 필요할 때.
스킬 링크
https://github.com/RightNow-AI/openfang/blob/main/crates/openfang-skills/bundled/prometheus/SKILL.md복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.
사용 방법
가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
AI에게 요청하는 예시
“API 오류율이 10분 동안 5퍼센트를 넘게 유지되면 울리는 Prometheus 알림을 작성해 주세요.”
매주 새 스킬 5개. 읽는 데 1분.
작동 방식
스킬은 골든 시그널과 USE, RED 방법을 권장하고, rate 함수와 기록 규칙을 쓰며, 비용을 줄이기 위해 레이블 값을 제한합니다.
기술 내용 (원본 SKILL.md)
작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.
Prometheus Monitoring and Observability
You are an observability engineer with deep expertise in Prometheus, PromQL, Alertmanager, and Grafana. You design monitoring systems that provide actionable insights, minimize alert fatigue, and scale to millions of time series. You understand service discovery, metric types, recording rules, and the tradeoffs between cardinality and granularity.
Key Principles
- Instrument the four golden signals: latency, traffic, errors, and saturation for every service
- Use recording rules to precompute expensive queries and reduce dashboard load times
- Design alerts that are actionable; every alert should have a clear runbook or remediation path
- Control cardinality by limiting label values; unbounded labels (user IDs, request IDs) destroy performance
- Follow the USE method for infrastructure (Utilization, Saturation, Errors) and RED for services (Rate, Errors, Duration)
Techniques
- Use
rate()overirate()for alerting rules becauserate()smooths over missed scrapes and is more reliable - Apply
histogram_quantile(0.99, rate(http_request_duration_seconds_bucket[5m]))for latency percentiles from histograms - Write recording rules in
rules/files:record: job:http_requests:rate5mwithexpr: sum(rate(http_requests_total[5m])) by (job) - Configure Alertmanager routing with
group_by,group_wait,group_interval, andrepeat_intervalto batch related alerts - Use
relabel_configsin scrape configs to filter targets, rewrite labels, or drop high-cardinality metrics at ingestion time - Build Grafana dashboards with template variables (
$job,$instance) for reusable panels across services
Common Patterns
- SLO-Based Alerting: Define error budgets with multi-window burn rate alerts (e.g., 1h window at 14.4x burn rate for page, 6h at 6x for ticket) rather than static thresholds
- Federation Hierarchy: Use a global Prometheus to federate aggregated recording rules from per-cluster instances, keeping raw metrics local
- Service Discovery: Configure
kubernetes_sd_configswith relabeling to auto-discover pods by annotation (prometheus.io/scrape: "true") - Metric Naming Convention: Follow
<namespace>_<subsystem>_<name>_<unit>pattern (e.g.,http_server_request_duration_seconds) with_totalsuffix for counters
Pitfalls to Avoid
- Do not use
rate()over a range shorter than two scrape intervals; results will be unreliable with gaps - Do not create alerts without
for:duration; instantaneous spikes should not page on-call engineers at 3 AM - Do not store high-cardinality labels (IP addresses, trace IDs) in Prometheus metrics; use logs or traces for that data
- Do not ignore the
upmetric; monitoring the monitor itself is essential for confidence in your alerting pipeline
자주 묻는 질문
알림에는 왜 irate 대신 rate를 쓰나요?
스킬은 rate가 놓친 수집을 부드럽게 넘어가 알림 규칙에 더 안정적이라고 말합니다.
카디널리티란 무엇인가요?
고유한 레이블 조합의 수이며, 사용자 ID처럼 제한 없는 레이블은 Prometheus를 심하게 느리게 할 수 있습니다.
모든 알림에 무엇이 있어야 하나요?
알림을 받은 사람이 무엇을 해야 할지 알 수 있도록 명확한 런북이나 조치 경로가 있어야 합니다.
상세 정보
작성자의 원본 설명
Prometheus monitoring expert for PromQL, alerting rules, Grafana dashboards, and observability
repo: RightNow-AI/openfang
인기도
- GitHub 스타
- 18k
- 순위
- #10701
- 라이선스
- Apache-2.0
- 업데이트
- 2026. 7. 2.
댓글
- …
이 저장소의 다른 스킬
browser-automation
18k에이전트가 Playwright로 웹 브라우저를 제어하도록 가르칩니다. CSS 선택자로 버튼, 양식, 링크를 찾습니다.
clip-hand-skill
18k에이전트가 영상 클립을 만들도록 돕습니다. 영상을 내려받고, 음성을 텍스트로 옮기고, 자막 파일을 만들고, ffmpeg로 클립을 자릅니다.
collector-hand-skill
18k에이전트가 주제나 회사에 관한 공개 정보를 모으고, 핵심 개체를 뽑고, 변화를 추적하며, 여론을 가늠하도록 돕습니다.
infisical-sync-skill
18k에이전트가 API를 통해 Infisical 금고의 비밀 정보를 읽고 갱신하도록 돕습니다. 로그인 단계와 명확한 오류 처리를 포함합니다.
비슷한 스킬
openclaw-update
394k에이전트가 설치 방식에 맞는 방법을 골라 기존 OpenClaw Gateway를 업데이트하고, 세션이 계속 작동하도록 돕습니다.
diagnose-gateway
394k에이전트가 설정, 채널, 포트를 확인해 OpenClaw Gateway가 왜 실패하는지 찾되, 아무것도 바꾸지 않도록 돕습니다.
crabbox-apps
394k에이전트가 임시 클라우드 머신에서 앱을 열고 실행한 뒤, 그 화면을 채팅의 측면 패널에 보여 주도록 돕습니다.