본문으로 건너뛰기
Skillpedia
분석 및 스프레드시트48k · #5246

monte-carlo-push-ingestion

하는 일

이 에이전트는 데이터베이스 정보(테이블, 열, 연결 방식 등)를 Monte Carlo 플랫폼으로 보내는 Python 스크립트를 만듭니다. 데이터와 그 사용 방식을 이해하도록 돕습니다.

사용하는 경우

  • ✓Monte Carlo가 내 데이터에 대해 알기를 원할 때.
  • ✓데이터가 시스템의 여러 부분 사이에서 어떻게 이동하는지 추적해야 할 때.
  • ✓Monte Carlo가 데이터베이스 사용량을 분석하기를 원할 때.

스킬 링크

https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/monte-carlo-push-ingestion/SKILL.md

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

사용 방법

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

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

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

AI에게 요청하는 예시

“내 Snowflake 데이터베이스의 메타데이터를 Monte Carlo로 보내는 스크립트를 생성해 주세요.”

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

작동 방식

사용하는 데이터베이스와 Monte Carlo 리소스 ID를 알려 주세요. 저는 기존 템플릿을 사용해, 필요한 정보를 수집해 Monte Carlo로 보내는 Python 스크립트를 만듭니다.

기술 내용 (원본 SKILL.md)

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

Monte Carlo Push Ingestion

You are an agent that helps customers collect metadata, lineage, and query logs from their data warehouses and push that data to Monte Carlo via the push ingestion API. The push model works with any data source — if the customer's warehouse does not have a ready-made template, derive the appropriate collection queries from that warehouse's system catalog or metadata APIs. The push format and pycarlo SDK calls are the same regardless of source.

Monte Carlo's push model lets customers send metadata, lineage, and query logs directly to Monte Carlo instead of waiting for the pull collector to gather it. It fills gaps the pull model cannot always cover — integrations that don't expose query history, custom lineage between non-warehouse assets, or customers who already have this data and want to send it directly.

When to Use

Use this skill when the user needs to collect metadata, lineage, freshness, volume, or query-log data from a warehouse or adjacent system and push it into Monte Carlo through the push-ingestion API.

Push data travels through the integration gateway → dedicated Kinesis streams → thin adapter/normalizer code → the same downstream systems that power the pull model. The only new infrastructure is the ingress layer; everything after it is shared.

MANDATORY — Always start from templates

When generating any push-ingestion script, you MUST:

  1. Read the corresponding template before writing any code. Templates live in this skill's directory under scripts/templates/<warehouse>/. To find them, glob for **/push-ingestion/scripts/templates/<warehouse>/*.py — this works regardless of where the skill is installed. Do NOT search from the current working directory alone.
  2. Adapt the template to the customer's needs — do not write pycarlo imports, model constructors, or SDK method calls from memory.
  3. If no template exists for the target warehouse, read the Snowflake template as the canonical reference and adapt only the warehouse-specific collection queries.

Template files follow this naming pattern:

  • collect_<flow>.py — collection only (queries the warehouse, writes a JSON manifest)
  • push_<flow>.py — push only (reads the manifest, sends to Monte Carlo)
  • collect_and_push_<flow>.py — combined (imports from both, runs in sequence)

After running any push script, you MUST surface the invocation_id(s) returned by the API to the user. The invocation ID is the only way to trace pushed data through downstream systems and is required for validation. Never let a push complete without showing the user the invocation IDs — they need them for /mc-validate-metadata, /mc-validate-lineage, and debugging.

Canonical pycarlo API — authoritative reference

The following imports, classes, and method signatures are the ONLY correct pycarlo API for push ingestion. If your training data suggests different names, it is wrong. Use exactly what is listed here.

Imports and client setup

from pycarlo.core import Client, Session
from pycarlo.features.ingestion import IngestionService
from pycarlo.features.ingestion.models import (
    # Metadata
    RelationalAsset, AssetMetadata, AssetField, AssetVolume, AssetFreshness, Tag,
    # Lineage
    LineageEvent, LineageAssetRef, ColumnLineageField, ColumnLineageSourceField,
    # Query logs
    QueryLogEntry,
)

client = Client(session=Session(mcd_id=key_id, mcd_token=key_token, scope="Ingestion"))
service = IngestionService(mc_client=client)

Method signatures

# Metadata
service.send_metadata(resource_uuid=..., resource_type=..., events=[RelationalAsset(...)])

# Lineage (table or column)
service.send_lineage(resource_uuid=..., resource_type=..., events=[LineageEvent(...)])

# Query logs — note: log_type, NOT resource_type
service.send_query_logs(resource_uuid=..., log_type=..., events=[QueryLogEntry(...)])

# Extract invocation ID from any response
service.extract_invocation_id(result)

RelationalAsset structure (nested, NOT flat)

RelationalAsset(
    type="TABLE",  # ONLY "TABLE" or "VIEW" (uppercase) — normalize warehouse-native values
    metadata=AssetMetadata(
        name="my_table",
        database="analytics",
        schema="public",
        description="optional description",
    ),
    fields=[
        AssetField(name="id", type="INTEGER", description=None),
        AssetField(name="amount", type="DECIMAL(10,2)"),
    ],

…
자주 묻는 질문

「메타데이터」란 무엇인가요?

데이터에 대한 데이터입니다. 예를 들어 테이블 이름, 열 이름, 각 열의 유형, 테이블이 마지막으로 업데이트된 시점 등이 있습니다.

「계보(lineage)」란 무엇인가요?

데이터가 어떻게 흐르는지 보여 줍니다. 예를 들어 테이블 A를 사용해 테이블 B를 만든다면, 계보는 그 연결을 보여 줍니다.

「invocation_id」란 무엇인가요?

Monte Carlo가 데이터를 받은 뒤 돌려주는 고유 코드입니다. 데이터가 올바르게 수신되었는지 확인하고 문제를 해결하는 데 쓰입니다.

상세 정보

작성자의 원본 설명

Expert guide for pushing metadata, lineage, and query logs to Monte Carlo from any data warehouse.

repo: sickn33/agentic-awesome-skills

인기도

GitHub 스타
48k
순위
#5246
라이선스
MIT
업데이트
2026. 10. 15.

이 스킬이 유용한가요?

0

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

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬