/ai-infra:langfuse-observability [expected trace volume, multi-tenant requirement]from ai-infra
Self-hosts Langfuse v3.x on EKS with PostgreSQL, ClickHouse, Redis, and S3 backends. Wires OpenTelemetry Collector to receive traces from vLLM, Bifrost/LiteLLM, and LangChain agents for end-to-end token cost, latency, and quality tracking.
Ships in ai-infra. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Optional. This is one observability backend within the
ai-infraplatform plugin. OMA's core (ontology + harness DSL) needs no observability backend — the default profile mode isnone. Use this skill only if you have opted into Langfuse (observability.mode: langfuse-self-hosted);opentelemetry-onlyor any OTLP-compatible store are equally valid alternatives.
observability namespace 에 배포 예정AmazonS3FullAccess 같은 account-wide s3:* managed policy 는 절대 attach 하지 않습니다. Langfuse 버킷 한 개로 scope 한 최소권한 customer-managed policy 만 사용합니다.
export BUCKET=my-langfuse-blobs
export REGION=ap-northeast-2
export ACCOUNT_ID=$(aws sts get-caller-identity --query Account --output text)
aws s3api create-bucket \
--bucket "$BUCKET" \
--region "$REGION" \
--create-bucket-configuration LocationConstraint="$REGION"
# Langfuse 버킷 하나로 scope 된 policy 작성 (bucket ARN + object ARN).
cat > /tmp/langfuse-s3-policy.json <<EOF
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "LangfuseBucketListAndMeta",
"Effect": "Allow",
"Action": [
"s3:ListBucket",
"s3:GetBucketLocation"
],
"Resource": "arn:aws:s3:::${BUCKET}"
},
{
"Sid": "LangfuseBucketObjectRW",
"Effect": "Allow",
"Action": [
"s3:GetObject",
"s3:PutObject",
"s3:DeleteObject",
"s3:AbortMultipartUpload"
],
"Resource": "arn:aws:s3:::${BUCKET}/*"
}
]
}
EOF
aws iam create-policy \
--policy-name LangfuseBlobStoreRW \
--policy-document file:///tmp/langfuse-s3-policy.json
eksctl create iamserviceaccount \
--cluster agentic-prod \
--namespace langfuse \
--name langfuse \
--attach-policy-arn "arn:aws:iam::${ACCOUNT_ID}:policy/LangfuseBlobStoreRW" \
--approve
금지:
arn:aws:iam::aws:policy/AmazonS3FullAccess는s3:*를 account-wide 로 허용하므로 다른 버킷의 blob 도 열람·삭제 가능합니다. IRSA 가 탈취되면 데이터 전체가 노출되는 벡터이므로 사용하지 않습니다.
helm repo add langfuse https://langfuse.github.io/langfuse-k8s
helm upgrade --install langfuse langfuse/langfuse \
--namespace langfuse --create-namespace \
--version 1.3.0 \
-f langfuse-values.yaml
langfuse-values.yaml:
langfuse:
image:
tag: "3.162.0"
web:
replicas: 2
worker:
replicas: 2
postgresql:
deploy: true
auth:
database: langfuse
clickhouse:
deploy: true
shards: 1
replicas: 2
redis:
deploy: true
architecture: replication
s3:
bucket: my-langfuse-blobs
region: ap-northeast-2
useIamRole: true
receivers:
otlp:
protocols:
grpc: { endpoint: 0.0.0.0:4317 }
http: { endpoint: 0.0.0.0:4318 }
processors:
batch: {}
attributes:
actions:
- key: service.namespace
value: agentic
action: insert
exporters:
otlphttp/langfuse:
endpoint: http://langfuse-web.langfuse.svc:3000/api/public/otel
headers:
Authorization: Basic ${env:LANGFUSE_API_BASIC}
service:
pipelines:
traces:
receivers: [otlp]
processors: [batch, attributes]
exporters: [otlphttp/langfuse]
kubectl -n inference set env deployment/vllm-llama3 \
OTEL_EXPORTER_OTLP_ENDPOINT=http://otel-collector.observability.svc:4317 \
OTEL_SERVICE_NAME=vllm-llama3
kubectl -n inference set env deployment/bifrost \
OTEL_EXPORTER_OTLP_ENDPOINT=http://otel-collector.observability.svc:4317 \
OTEL_SERVICE_NAME=bifrost
kubectl -n langfuse get pods
kubectl -n langfuse port-forward svc/langfuse-web 3000:3000
# 브라우저에서 http://localhost:3000 → Organization/Project 생성
# Settings → API Keys → OTel Basic 토큰 발급 → Collector 에 주입
langfuse_worker_queue_depth > 10000gen_ai.usage.input_tokens, gen_ai.usage.output_tokens 주입으로 정확 costdisable-model-invocation 모드에서 프롬프트 sanitize 누락 → PII 유출 위험../../references/langfuse-self-hosted-setup.mdWhat SKILL.md sets; muted values are Claude Code's defaults
claude-sonnet-4-6Three short reads, in order
npx claudepluginhub aws-samples/sample-oh-my-aidlcops --plugin ai-infra6 skills in this plugin
/agentic-eks-bootstrapBootstrap an AWS EKS cluster optimized for Agentic AI workloads — Karpenter v1.2+ GPU node pools, EKS Auto Mode, Kubernetes 1.32+ with DRA 1.35 GA, VPC CNI, GPU Operator, and baseline observability. Use when starting a new EKS cluster that will host vLLM, Inference Gateway, Langfuse, or Kagent./ai-gateway-guardrailsEnforce Input/Output Guardrails at the LLM Gateway layer — PII redaction, Prompt Injection defense, Jailbreak detection, Toxicity filter, and Tool Allow-list. Integrates Bedrock Guardrails, NeMo Guardrails, Llama Guard 3, and regex/regex-ML policies on Bifrost/LiteLLM with Langfuse audit trail./gpu-resource-managementDesign GPU orchestration on EKS using Karpenter v1.2+ NodePools, KEDA scale-to-zero, and DRA 1.35 GA for multi-instance GPU (MIG) partitioning. Right-size NodePool for p5/g6e/trn2 instance mix, spot/on-demand split, consolidation, and topology-aware scheduling./inference-gateway-routingConfigure kgateway v2.0+ as L1 and Bifrost v1.x or LiteLLM v1.60+ as L2 for a 2-Tier Inference Gateway on EKS. Apply Cascade Routing (Haiku→Sonnet→Opus fallback), Semantic Router (intent-based model pick), and HTTPRoute with OTel trace propagation to Langfuse./vllm-serving-setupDesign, deploy, and tune vLLM v0.18.2 inference serving on EKS with PagedAttention v2, Multi-LoRA, FP8 KV Cache, Chunked Prefill, and Continuous Batching. Produces Helm values.yaml, PodMonitor, HPA, and kubectl validation steps for production agentic workloads.Other plugins' skills for the same job