analyze-cloud-costs

작성자: langfuse

Langfuse Cloud 인프라 비용 구조를 Metabase 비용 마트를 사용하여 분석합니다. 클라우드 지출, AWS 대 ClickHouse 비용 분할, 비용…에 대해 질문할 때 사용하세요.

npx skills add https://github.com/langfuse/langfuse --skill analyze-cloud-costs

Analyze Cloud Costs

Overview

Use this skill for evidence-backed Langfuse Cloud cost analysis. The primary source is the Metabase infra cost dashboard and its production cost marts; the deliverable should name the time window, query grain, top drivers, and caveats.

Workflow

  1. Clarify the question and choose the grain:
    • Headline daily totals: total, AWS, ClickHouse, tracing events, and cost per 100k events.
    • Cost structure: provider, service, usage type, operation, account, and day.
    • Driver or regression analysis: compare a recent complete-day window against a prior baseline.
  2. Load references/cost-marts.md for table IDs, field IDs, query examples, and caveats.
  3. Use the Metabase MCP. If the Metabase tools are not visible, discover them with tool search before falling back to manual interpretation.
  4. Prefer complete UTC days. Avoid treating current-day AWS cost as final because AWS CUR rows can arrive late.
  5. Start broad, then drill down:
    • Provider split.
    • Service split within the dominant provider.
    • Usage type, operation, and account split for the top services.
    • Daily trend when explaining change over time.
  6. Report only what the queried data supports. If a requested slice is absent, say that no rows were found for that slice instead of inventing a driver.

Query Rules

  • Use mcp__metabase__.query for quick reads. Use construct_query plus execute_query when you need to inspect or reuse the opaque query.
  • Pass filters, aggregations, group_by, and fields as JSON arrays. Some tool schemas may display these as strings; if that happens, serialize the same arrays without changing their shape.
  • Keep limits explicit and small enough for analysis. Use pagination only when the continuation token is needed.
  • Include the Metabase dashboard link or query result context in the final answer when useful.

Output Expectations

Summarize:

  • Time window and whether it uses complete UTC days.
  • Total cost and provider split when relevant.
  • Top cost drivers by service, usage type, operation, or account.
  • Trend or baseline comparison when the user asks "why did this change?"
  • Caveats, especially incomplete current-day AWS data and ClickHouse credit labeling in the unified mart.

langfuse의 다른 스킬

frontend-browser-review
langfuse
이 스킬은 변경 사항이 브라우저에서 사용자가 보거나 수행하는 작업에 영향을 미칠 때 사용하세요.
frontend-large-feature-architecture
langfuse
대규모 Langfuse 프론트엔드 기능, 가상화된 목록, 대형 테이블, 컨트롤러 컴포넌트, 로컬 기능을 구축, 변경 또는 리팩터링할 때 사용합니다.
skill-developer
langfuse
Anthropic 모범 사례에 따라 Claude Code 스킬을 생성하고 관리합니다. 새 스킬을 만들거나, skill-rules.json을 수정하거나, 트리거를 이해할 때 사용합니다…
langfuse-prompt-migration
langfuse
하드코딩된 프롬프트를 Langfuse로 마이그레이션하여 버전 관리와 배포 없는 반복을 가능하게 합니다. 사용자가 프롬프트를 외부화하거나, 프롬프트를 Langfuse로 이동하려는 경우 사용합니다.
incident-alert-tickets
langfuse
Read and, after human approval, update the Linear `incident-alert` knowledge base. Use before and after investigating a named Datadog monitor,…
refactor-react-effects
langfuse
Langfuse 프론트엔드 코드에서 피할 수 있는 React useEffect 사용을 리팩터링합니다. 효과를 추가, 검토 또는 제거할 때; 폼이나 로컬 UI 상태를 초기화할 때 사용합니다…
sentry-instrumentation
langfuse
Decide whether and how errors report to Sentry. Use when touching capture or error-handling paths in `web/**`, triaging Sentry noise, or changing Sentry…
posthog-instrumentation
langfuse
Product analytics with posthog. Use when adding a meaningful user action or feature in `web/**`, touching PostHog capture code, or answering product-usage…