본문으로 건너뛰기
Skillpedia
데이터베이스41k · #6856

auditing-warehouse-view-health

하는 일

이 스킬은 구체화된 뷰 전체에 대한 프로젝트 차원의 점검을 제공합니다. 어떤 뷰가 실패하는지, 쓰이지 않으면서 비용을 쓰는 뷰가 무엇인지 보여 줍니다. PostHog 데이터 웨어하우스를 관리하는 사람을 위한 것입니다.

사용하는 경우

  • ✓구체화된 뷰 중 어떤 것이 고장 났는지 알고 싶을 때.
  • ✓쓸모없는 저장소나 컴퓨팅을 쓰는 뷰가 있을 것 같을 때.
  • ✓구체화된 뷰 위에 만든 대시보드가 오래되었거나 오류를 보일 때.

스킬 링크

https://github.com/PostHog/posthog/blob/master/products/data_warehouse/skills/auditing-warehouse-view-health/SKILL.md

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

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

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

AI에게 요청하는 예시

“제 구체화된 뷰 중 고장 난 것은 무엇이고, 그중 컴퓨팅을 낭비하는 것이 있나요?”

매주 새 스킬 5개. 읽는 데 1분.

작동 방식

파이프라인 전체에서 실패하거나 저하된 항목을 모두 모은 목록 하나를 가져온 뒤, 구체화되었지만 사용되지 않거나 오래된 뷰를 확인합니다.

기술 내용 (원본 SKILL.md)

작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.

Auditing data warehouse view health

This skill produces a project-wide audit of materialized views (materialized saved queries) in the data warehouse — which ones are failing, and which are materialized but unused. Use it when the user wants a summary of view health, not a deep-dive on one failure.

The same underlying endpoint (data-warehouse-data-health-issues-retrieve) also reports source, sync, batch-export, and transformation issues. Source and sync health is covered by auditing-warehouse-source-health. Destinations (batch exports) and transformations are owned by other products — surface them if they appear, but route them to the relevant team rather than diagnosing here.

When to use this skill

  • "Which of my views are broken?" / "Why is this materialized view failing?"
  • "Are any of my materialized views wasting compute?"
  • Reviewing view health after a HogQL or schema change
  • Dashboards backed by materialized views are stale or erroring

Available tools

Tool Purpose
data-warehouse-data-health-issues-retrieve One-shot: all failed/degraded items across the whole pipeline
view-list All saved queries / materialized views with status and latest_error
view-run-history Run history for a specific materialized view
warehouse-suggestions-list PostHog's open deprecate / materialize / certify suggestions, if any

Filter the data-health-issues results to the materialized_view type for this audit. Use view-list when you need more than the active-failure summary (non-failing views, materialization flags, last-queried info) and view-run-history to see the run trail for a specific view.

What counts as a view "issue"

From the data-health endpoint, this audit cares about one of the five categories:

type Trigger Typical urgency
materialized_view DataWarehouseSavedQuery.is_materialized=true, status=Failed Medium

Each entry includes id, name, type, status, error, failed_at, and url.

The other categories the endpoint returns are out of scope for this skill:

  • source / external_data_sync → auditing-warehouse-source-health
  • destination (batch export) → owned by the batch exports / data pipelines product
  • transformation (HogFunction) → owned by the CDP / ingestion side

Note the data-health endpoint only reports active failures. For views it doesn't flag:

  • Non-materialized views with errors (only materialized views are reported)
  • Materialized views that are healthy but unused (costing compute every run) — see Step 4

Workflow

Step 1 — One-shot pull

Call data-warehouse-data-health-issues-retrieve and keep the materialized_view entries.

If there are no view issues, tell the user their materialized views are healthy and stop. Don't invent problems.

Step 2 — Triage failures

Materialized view failures are usually independent of sources — a view failure is a HogQL or data issue in the view itself (syntax error, missing table reference, type mismatch). For each failing view, surface the error and point at the offending query. Use view-run-history if the user wants the failure trail.

An error that starts with Not published: is not a query problem. The view's data quality checks failed and the refresh was held back. Hand off to debugging-failed-data-quality-checks.

Step 3 — Present the audit

Render a prioritized report. Don't dump the raw JSON — human-readable:

## Materialized view health — 2 issues

### 🟠 Materialized views (2)
- monthly_revenue — view failed (syntax error in HogQL: 'FORM' instead of 'FROM')
- active_users_30d — view failed (missing table reference)

Both are HogQL issues in the view definitions — independent of your sources. Want me to open one?

Step 4 — Go beyond active failures (when asked)

Start from PostHog's suggestions if the warehouse-suggestions-* tools are available. Call warehouse-suggestions-list with status=proposed. Pos

자주 묻는 질문

이 스킬이 뷰를 고치나요?

아니요. 다음에 무엇을 할지 정할 수 있도록 실패하거나 사용되지 않는 뷰에 대한 감사 결과를 만듭니다.

소스 동기화 문제는 어떻게 하나요?

소스와 동기화 상태는 별도의 감사 스킬이 다루므로, 이 스킬은 구체화된 뷰에 집중합니다.

구체화된 뷰란 무엇인가요?

결과가 물리적 테이블에 저장되는 저장 쿼리입니다. 읽기는 빠를 수 있지만 저장소를 씁니다.

상세 정보

작성자의 원본 설명

Audit the health of a PostHog project's materialized views (saved queries) — find every failed materialization and flag unused or stale materialized views that cost storage and compute. Use when the user asks "which of my views are broken?", "why is this materialized view failing?", "are any of my views wasting compute?", or wants a one-shot triage of view health. For source/sync health use `auditing-warehouse-source-health`.

repo: PostHog/posthog

인기도

GitHub 스타
41k
순위
#6856
라이선스
—
업데이트
2026. 11. 2.

이 스킬이 유용한가요?

0

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

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬