본문으로 건너뛰기
Skillpedia
배포 및 클라우드 (DevOps)18k · #10701

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가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/RightNow-AI/openfang/blob/main/crates/openfang-skills/bundled/prometheus/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

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() over irate() for alerting rules because rate() 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:rate5m with expr: sum(rate(http_requests_total[5m])) by (job)
  • Configure Alertmanager routing with group_by, group_wait, group_interval, and repeat_interval to batch related alerts
  • Use relabel_configs in 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_configs with 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 _total suffix 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 up metric; 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.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬