analyze-cloud-costs

Analyser la structure des coûts de l'infrastructure Langfuse Cloud à l'aide des marts de coûts Metabase. Utiliser lorsqu'on interroge sur les dépenses cloud, les répartitions des coûts AWS par rapport à ClickHouse, les coûts…

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.

Plus de skills de langfuse

frontend-browser-review
langfuse
Utilisez cette compétence lorsqu’un changement affecte ce que les utilisateurs voient ou font dans le navigateur.
frontend-large-feature-architecture
langfuse
À utiliser lors de la construction, de la modification ou du refactoring de grandes fonctionnalités frontend Langfuse, de listes virtualisées, de grands tableaux, de composants contrôleurs, de fonctionnalités locales…
skill-developer
langfuse
Créer et gérer des compétences Claude Code conformément aux meilleures pratiques d’Anthropic. À utiliser lors de la création de nouvelles compétences, de la modification de skill-rules.json, de la compréhension des déclencheurs…
langfuse-prompt-migration
langfuse
Migrer les prompts codés en dur vers Langfuse pour le contrôle de version et l'itération sans déploiement. Utiliser lorsque l'utilisateur souhaite externaliser les prompts, déplacer les prompts vers 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
Refactorisation des utilisations évitables de useEffect de React dans le code frontend de Langfuse. À utiliser lors de l'ajout, de la révision ou de la suppression d'effets ; de l'initialisation de formulaires ou d'état d'interface locale à partir de…
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…