मुख्य सामग्री पर जाएँ
Skillpedia
डेटाबेस41k · #6856

auditing-warehouse-view-health

यह क्या करती है

यह स्किल आपके मैटेरियलाइज़्ड व्यू की पूरे प्रोजेक्ट की जाँच देती है, और दिखाती है कि कौन से विफल हो रहे हैं और कौन से बिना इस्तेमाल के पैसा खर्च करते हैं। यह PostHog डेटा वेयरहाउस संभालने वाले लोगों के लिए है।

कब इस्तेमाल करें

  • ✓जब आप जानना चाहें कि आपके मैटेरियलाइज़्ड व्यू में से कौन से टूटे हुए हैं।
  • ✓जब आपको शक हो कि कुछ व्यू ऐसा स्टोरेज या कंप्यूट इस्तेमाल कर रहे हैं जिसकी किसी को ज़रूरत नहीं।
  • ✓जब किसी मैटेरियलाइज़्ड व्यू पर बना डैशबोर्ड पुराना हो या त्रुटियाँ दिखाए।

Skill का लिंक

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

इसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।

कैसे इस्तेमाल करें

सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।

पेस्ट करने के लिए तैयार मैसेज

इस skill से मेरी मदद करो: https://github.com/PostHog/posthog/blob/master/products/data_warehouse/skills/auditing-warehouse-view-health/SKILL.md इस लिंक की SKILL.md फ़ाइल पढ़ो और मेरे काम में उसके निर्देशों का पालन करो।
क्या आप चाहते हैं कि आपका AI ऐसी skills खुद ढूँढे?मुफ़्त Skillpedia MCP इंस्टॉल करें: बस एक लाइन, और हर काम से पहले यह 15,000+ skills में खोजता है।1 मिनट में इंस्टॉल करें →

AI से क्या माँगें: उदाहरण

“मेरे कौन से मैटेरियलाइज़्ड व्यू टूटे हुए हैं, और क्या उनमें से कोई कंप्यूट बर्बाद कर रहा है?”

हर हफ़्ते 5 नई skills, 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
लाइसेंस
—
अपडेट की गई
2/11/2026

क्या यह skill काम की है?

0

लॉग इन करें वोट करने के लिए।

कमेंट

  • …

इस repository की और skills

depot-ci

41k

यह आपके एजेंट को Depot CI वर्कफ़्लो सेट अप करने, चलाने और माइग्रेट करने में मदद करती है, साथ ही रन के लॉग पढ़ने में।

कोडिंगडिप्लॉय और क्लाउड (DevOps)

depot-container-builds

41k

यह आपके एजेंट को Depot के रिमोट बिल्डर पर Docker इमेज बनाने में मदद करती है, जिसमें मल्टी-प्लेटफ़ॉर्म इमेज और बिल्ड सुधार शामिल हैं।

कोडिंगडिप्लॉय और क्लाउड (DevOps)

depot-github-runners

41k

यह आपके एजेंट को GitHub Actions जॉब Depot के मैनेज्ड रनर पर ले जाने, रनर का साइज़ और लेबल चुनने, और रनर सेटअप की समस्याएँ ठीक करने में मदद करती है।

कोडिंगडिप्लॉय और क्लाउड (DevOps)

editing-agents-md

41k

यह आपके एजेंट को तय करने में मदद करती है कि कोई नियम AGENTS.md या CLAUDE.md में जाए या नहीं, और उसे ऐसे लिखे कि फ़ाइल भारी न हो।

AI और एजेंटएजेंट

मिलती-जुलती skills