controlling-costs
Fungsinya
Skill ini melihat bagaimana Axiom dikueri untuk menemukan data yang tidak dipakai siapa pun, lalu menyiapkan dasbor dan monitor untuk melacak pengeluaran ingest. Ditujukan untuk tim yang berusaha menurunkan tagihan logging mereka.
Kapan dipakai
- βSaat Anda diminta mengurangi biaya Axiom.
- βSaat Anda ingin menemukan kolom atau nilai field yang tidak pernah dikueri.
- βSaat Anda ingin melacak berapa banyak data yang Anda ingest dari waktu ke waktu.
Link skill
https://github.com/openclaw/clawhub/blob/main/.agents/skills/controlling-costs/SKILL.mdSalin lalu tempelkan ke AI Anda (Claude, ChatGPT, atau Cursor) dan minta AI mengikuti instruksinya.
Cara pakai
Cara paling mudah: salin pesan ini dan tempelkan ke AI Anda. AI akan membaca skill dan mengikuti instruksinya.
Pesan siap tempel
Untuk Claude Code, Codex, atau Cursor: jalankan di folder proyek, lalu skill langsung terpasang.
Unduh SKILL.md lalu taruh di folder skill agen Anda.
Contoh permintaan ke AI
βTemukan field yang tidak terpakai di data Axiom kami dan tunjukkan di mana kami bisa memangkas ingest.β
5 skill baru setiap minggu. 1 menit baca.
Cara kerjanya
Skill membaca data audit Axiom untuk melihat field mana yang dikueri, lalu membandingkannya dengan apa yang disimpan. Setelah itu skill membangun dasbor biaya dan monitor. Skill meminta Anda mengonfirmasi nama dataset audit dan batas kontrak Anda sebelum mulai.
Konten teknis (SKILL.md asli)
Teks asli dari pembuat, dalam bahasa Inggris, langsung dari 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,
Pertanyaan umum
Apakah ia memerlukan data audit?
Ya. Ia mencari dataset audit di Axiom dan meminta Anda menyebut namanya jika tidak ditemukan.
Fase mana saja yang dijalankan?
Ia hanya menjalankan fase yang sesuai dengan permintaan Anda, misalnya menemukan data yang tidak terpakai atau menyiapkan monitor.
Mengapa ia meminta batas kontrak?
Monitor biaya membandingkan penggunaan dengan batas kontrak Anda, yang ditetapkan dalam terabyte per hari.
Detail
Deskripsi asli dari pembuat
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
Popularitas
- Bintang GitHub
- 9.5k
- Peringkat
- #12229
- Lisensi
- MIT
- Diperbarui
- 2/11/2026
Komentar
- β¦
Skill lain dari repositori ini
axiom-alerting
9.5kMembantu agen Anda membuat dan mengelola monitor Axiom serta rute notifikasi melalui API Axiom, dan memeriksa apakah peringatan berperilaku sesuai harapan.
axiom-sre
9.5kMembantu agen Anda menyelidiki insiden dan bug produksi langkah demi langkah, menguji setiap dugaan terhadap log Axiom sebelum menarik kesimpulan.
building-dashboards
9.5kMembantu agen Anda mendesain dasbor Axiom dengan grafik, kueri, dan filter yang sesuai, dimulai dari keputusan yang harus didukung dasbor tersebut.
convex-acquire-domain
9.5kMencari dan membeli domain untuk aplikasi Convex Anda melalui Convex, lalu menghubungkannya ke aplikasi, hanya setelah Anda memilih nama dan menyetujuinya.
Skill serupa
openclaw-update
394kMembantu agent Anda memperbarui OpenClaw Gateway yang sudah ada, dengan memilih metode pembaruan yang sesuai cara pemasangannya dan menjaga sesi Anda tetap berjalan.
diagnose-gateway
394kMembantu agent Anda mencari tahu mengapa OpenClaw Gateway gagal dengan memeriksa pengaturan, channel, dan port tanpa mengubah apa pun.
crabbox-apps
394kMembantu agent Anda membuka dan menjalankan aplikasi di mesin cloud sementara, lalu menampilkan tampilannya di panel samping chat Anda.