Agent skill · data analytics · axiomhq
controlling-costs
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.
Why this skill is useful
Provides specific Axiom query patterns and scripts for cost optimization that the AI wouldn't reliably generate on its own.
What it needs
Requires jq installed locally. About 4k tokens when loaded. Last updated 2026-07-14. 14 stars on the source repository.
What this skill does
Axiom Cost Control Dashboards, monitors, and waste identification for Axiom usage optimization. Before You Start 1. Load required skills: Building-dashboards provides: dashboard-list, dashboard-get, dashboard-create, dashboard-update, dashboard-delete 2. Find the audit dataset. Try axiom-audit first: If not found → ask user. Common names: axiom-audit-logs-view, audit-logs If found but no usageCalculated events → wrong dataset, ask user 3. Verify axiom-history access (required for Phase 4): If not found, Phase 4 optimization will not work. 4. Confirm with user: Deployment name? Audit dataset name? Contract limit in TB/day? (required for Phase 3 monitors) 5. Replace <deployment> and <audit-dataset> in all commands below. Tips: Run any script with -h for full usage Do NOT pipe script output to head or tail — causes SIGPIPE errors Requires jq for JSON parsing Use axiom-sre's axiom-query for 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 If found, fetch with dashboard-get and compare to templates/dashboard.json for drift. --- Phase 1: Discovery Captures daily ingest stats and produces the Analysis Queue (needed for Phase 4). --- Phase 2: Dashboard 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 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 Creates 3 monitors: 1. Total Ingest Guard — alerts when daily ingest >1.2x contract OR 7-day avg grows >15% vs baseline 2. …
How to use it
Reference it in AdaL, Claude Code, Cursor or any coding agent — nothing to install:
@skills axiomhq/controlling-costs