PostHog Endpoint Diagnostics

•
63
•

Diagnoses slow or expensive PostHog endpoints and recommends actionable fixes like TTL tuning, query rewrites, or materialization.

This skill guides developers through troubleshooting slow, failing, or high-cost PostHog endpoints to find the fastest and most cost-effective remedy. It inspects endpoint configuration, evaluates cache TTL settings, checks materialization eligibility, analyzes execution logs via ClickHouse query logs, and identifies problematic query patterns such as unsupported JOINs or unindexed scans. Whether an endpoint is hitting cost caps or timing out, this skill helps pinpoint the bottleneck and provides concrete query rewrites or configuration updates to restore performance.

主な機能

01Evaluates endpoint cache TTL settings to maximize cache hits and reduce compute load
02Generates validated, semantically equivalent SQL rewrites for materialization
0363 GitHub stars
04Analyzes version history and ClickHouse query logs for call frequency and byte scans
05Checks query materialization eligibility and inspects pre-computed transform views
06Identifies HogQL/SQL query anti-patterns like invalid JOIN filters and unbounded scans

ユースケース

01Troubleshooting API endpoints that are timing out or running close to query memory limits
02Deciding whether to enable materialization on high-frequency analytics endpoints
03Optimizing expensive HogQL queries that are exceeding account cost caps