controlling-costs
하는 일
이 스킬은 Axiom이 어떻게 쿼리되는지 살펴 아무도 쓰지 않는 데이터를 찾은 뒤, 수집 비용을 추적하는 대시보드와 모니터를 설정합니다. 로깅 비용을 낮추려는 팀을 위한 스킬입니다.
사용하는 경우
- ✓Axiom 비용을 줄이라는 요청을 받았을 때.
- ✓아무도 쿼리하지 않는 열이나 필드 값을 찾고 싶을 때.
- ✓시간에 따라 수집하는 데이터 양을 추적하고 싶은 경우.
스킬 링크
https://github.com/openclaw/clawhub/blob/main/.agents/skills/controlling-costs/SKILL.md복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.
사용 방법
가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
AI에게 요청하는 예시
“우리 Axiom 데이터에서 쓰지 않는 필드를 찾아 수집을 어디서 줄일 수 있는지 보여 주세요.”
매주 새 스킬 5개. 읽는 데 1분.
작동 방식
스킬은 Axiom 감사 데이터를 읽어 어떤 필드가 쿼리되는지 본 뒤, 저장된 것과 비교합니다. 그다음 비용 대시보드와 모니터를 만듭니다. 시작하기 전에 감사 데이터셋 이름과 계약 한도를 확인합니다.
기술 내용 (원본 SKILL.md)
작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.
Axiom Cost Control
Dashboards, monitors, and waste identification for Axiom usage optimization.
Before You Start
Load required skills:
skill: axiom-sre skill: building-dashboardsBuilding-dashboards provides:
dashboard-list,dashboard-get,dashboard-create,dashboard-update,dashboard-deleteFind the audit dataset. Try
axiom-auditfirst:['axiom-audit'] | where _time > ago(1h) | summarize count() by action | where action in ('usageCalculated', 'runAPLQueryCost')- If not found → ask user. Common names:
axiom-audit-logs-view,audit-logs - If found but no
usageCalculatedevents → wrong dataset, ask user
- If not found → ask user. Common names:
Verify
axiom-historyaccess (required for Phase 4):['axiom-history'] | where _time > ago(1h) | take 1If not found, Phase 4 optimization will not work.
Confirm with user:
- Deployment name?
- Audit dataset name?
- Contract limit in TB/day? (required for Phase 3 monitors)
Replace
<deployment>and<audit-dataset>in all commands below.
Tips:
- Run any script with
-hfor full usage - Do NOT pipe script output to
headortail— causes SIGPIPE errors - Requires
jqfor JSON parsing - Use axiom-sre's
axiom-queryfor ad-hoc APL, not direct CLI
Which Phases to Run
| User request | Run these phases |
|---|---|
| "reduce costs" / "find waste" | 0 → 1 → 4 |
| "set up cost control" | 0 → 1 → 2 → 3 |
| "deploy dashboard" | 0 → 2 |
| "create monitors" | 0 → 3 |
| "check for drift" | 0 only |
Phase 0: Check Existing Setup
# Existing dashboard?
dashboard-list <deployment> | grep -i cost
# Existing monitors?
axiom-api <deployment> GET "/v2/monitors" | jq -r '.[] | select(.name | startswith("Cost Control:")) | "\(.id)\t\(.name)"'
If found, fetch with dashboard-get and compare to templates/dashboard.json for drift.
Phase 1: Discovery
scripts/baseline-stats -d <deployment> -a <audit-dataset>
Captures daily ingest stats and produces the Analysis Queue (needed for Phase 4).
Phase 2: Dashboard
scripts/deploy-dashboard -d <deployment> -a <audit-dataset>
Creates dashboard with: ingest trends, burn rate, projections, waste candidates, top users. See reference/dashboard-panels.md for details.
Phase 3: Monitors
Contract is required. You must have the contract limit from preflight step 4.
Step 1: List available notifiers
scripts/list-notifiers -d <deployment>
Present the list to the user and ask which notifier they want for cost alerts.
If they don't want notifications, proceed without -n.
Step 2: Create monitors
scripts/create-monitors -d <deployment> -a <audit-dataset> -c <contract_tb> [-n <notifier_id>]
Creates 3 monitors:
- Total Ingest Guard — alerts when daily ingest >1.2x contract OR 7-day avg grows >15% vs baseline
- Per-Dataset Spike — robust z-score detection, alerts per dataset with attribution
- Query Cost Spike — hardened z-score with 30d baseline, 5d exclusion gap, persistence-based gating (median_z > 3, p25_z > 2.5)
The spike monitors use notifyByGroup: true so each dataset triggers a separate alert.
See reference/monitor-strategy.md for threshold derivation.
Phase 4: Optimization
Get the Analysis Queue
Run scripts/baseline-stats if not already done. It outputs a prioritized list:
| Priority | Meaning |
|---|---|
| P0⛔ | Top 3 by ingest OR >10% of total — MANDATORY |
| P1 | Never queried — strong drop candidate |
| P2 | Rarely queried (Work/GB < 100) — likely waste |
Work/GB = query cost (GB·ms) / ingest (GB). Lower = less value from data.
Analyze datasets in order
Work top-to-bottom. For each dataset:
Step 1: Column analysis
scripts/analyze-query-coverage -d <deployment> -D <dataset> -a <audit-dataset>
If 0 queries → recommend DROP, move to next.
Step 2: Field value analysis
Pick a field from suggested list (usually app, service, or kubernetes.labels.app):
scripts/analyze-query-coverage -d <deployment> -D <dataset> -a <audit-dataset> -f <field>
Note values with high volume but never queried (⚠️ markers).
Step 3: Handle empty values
If (empty) has >5% volume, you MUST drill down with alternative field (e.g., kubernetes.namespace_name).
Step 4: Record recommendation
For each dataset, note: name,
자주 묻는 질문
감사 데이터가 필요한가요?
예. Axiom에서 감사 데이터셋을 찾으며, 찾지 못하면 이름을 지정해 달라고 요청합니다.
어떤 단계가 실행되나요?
요청과 맞는 단계만 실행합니다. 예를 들어 쓰이지 않는 데이터 찾기나 모니터 설정 등입니다.
계약 한도를 왜 묻나요?
비용 모니터는 사용량을 계약 한도와 비교하며, 이 한도는 하루 테라바이트 단위로 설정됩니다.
상세 정보
작성자의 원본 설명
Analyzes Axiom query patterns to find unused data, then builds dashboards and monitors for cost optimization. Use when asked to reduce Axiom costs, find unused columns or field values, identify data waste, or track ingest spend.
repo: openclaw/clawhub
인기도
- GitHub 스타
- 9.5k
- 순위
- #12229
- 라이선스
- MIT
- 업데이트
- 2026. 11. 2.
댓글
- …
이 저장소의 다른 스킬
axiom-alerting
9.5k에이전트가 Axiom API로 Axiom 모니터와 알림 경로를 만들고 관리하며, 알림이 기대대로 작동하는지 확인하도록 돕습니다.
axiom-sre
9.5k에이전트가 운영 장애와 버그를 단계별로 조사하도록 돕습니다. 결론을 내리기 전에 각 추측을 Axiom 로그로 검증합니다.
building-dashboards
9.5k에이전트가 적합한 차트, 쿼리, 필터를 갖춘 Axiom 대시보드를 설계하도록 돕습니다. 대시보드가 지원해야 할 결정에서 시작합니다.
convex-acquire-domain
9.5kConvex 앱의 도메인을 찾아 Convex를 통해 구매하고 앱에 연결합니다. 이름을 고르고 승인한 뒤에만 진행합니다.
비슷한 스킬
openclaw-update
394k에이전트가 설치 방식에 맞는 방법을 골라 기존 OpenClaw Gateway를 업데이트하고, 세션이 계속 작동하도록 돕습니다.
diagnose-gateway
394k에이전트가 설정, 채널, 포트를 확인해 OpenClaw Gateway가 왜 실패하는지 찾되, 아무것도 바꾸지 않도록 돕습니다.
crabbox-apps
394k에이전트가 임시 클라우드 머신에서 앱을 열고 실행한 뒤, 그 화면을 채팅의 측면 패널에 보여 주도록 돕습니다.