Index of every page on this site: llms.txt
All skills
axiomhq avatar

/axiom-control-costs

@5b11222 official
by Axiom, Inc.axiomhq/skills18 stars
2
Run it yourself

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.

Use this Skill: https://skilld.dev/gh/axiomhq/skills/axiom-control-costs

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

README.md

≈623 tokens on demand. Your agent reads this file only when SKILL.md points to it.

axiom-control-costs

Analyzes Axiom query patterns to find unused data, then builds dashboards and monitors for cost optimization.

What It Does

  • Query Coverage Analysis - Parses APL query ASTs to find columns and field values that are ingested but never queried
  • Volume Estimation - Uses strided sampling to estimate event volume by field value
  • Dashboard - Deploys cost control dashboard with ingest tracking, waste candidates, and query cost breakdowns
  • Monitors - Creates 3 cost control monitors (ingest guard + per-dataset spike detection)

Installation

npx skills add axiomhq/skills

Prerequisites

  • axiom-sre skill (for API access)
  • axiom-build-dashboard skill (for dashboard deployment)
  • Access to axiom-audit and axiom-history datasets
  • Tools: jq, bc

The install command above includes both skills. Scripts find them automatically.

Configuration

Configure SRE for query/API access using its setup instructions. SRE uses ~/.config/axiom-sre/config.toml.

Dashboard helpers and the cost-control setup check also use ~/.axiom.toml; add the same deployment name there:

[deployments.prod]
url = "https://api.axiom.co"
token = "xaat-your-api-token"
org_id = "your-org-id"
  • org_id - The organization ID. Get it from Settings → Organization.
  • token - Use an advanced API token with minimal privileges.

To import an existing ~/.axiom.toml during SRE's first initialization, run scripts/init --migrate from the SRE skill directory. Keep ~/.axiom.toml for the dashboard helpers.

Usage

# Analyze query coverage for a dataset
scripts/analyze-query-coverage <deployment> <dataset>

# Find unqueried values for a specific field
scripts/analyze-query-coverage <deployment> <dataset> <field>

# Deploy a shared cost control dashboard
scripts/deploy-dashboard -d <deployment> -a <audit-dataset>

# List available notifiers
scripts/list-notifiers -d <deployment>

# Create monitors (with optional notifier)
scripts/create-monitors -d <deployment> -a <audit-dataset> -c <contract> [-n <notifier_id>]

Scripts

Script Purpose
analyze-query-coverage Find unused columns and field values
deploy-dashboard Deploy cost control dashboard
list-notifiers List available notifiers for alerts
create-monitors Create 3 cost control monitors
baseline-stats Get 30-day usage statistics

Source: SKILL.md on GitHub

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

1 alert7d3 checks · Risk SAFE
  • Gen Agent Trust Hub7d

    This skill provides a suite of tools for identifying and reducing costs on the Axiom observability platform. It analyzes query history to find unused data, deploys optimization dashboards, and configures monitors for ingest spikes. The skill interacts exclusively with official Axiom API endpoints and local Axiom configuration files for authentication, representing standard vendor operations.

  • Socket7d

    No alerts

  • Snyk7d

    Risk: CRITICAL · 2 issues

Signed by skilld at 5b11222. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 1 hour ago.

Activeupdated 2 weeks ago
  • axiom
  • cost-optimization
  • monitoring
  • dashboards
  • observability
  • data-analysis
  • apl
  • ingest

README badge

README badge for axiomhq/skills/axiom-control-costs

Analyzes Axiom query patterns and audit logs to identify unused datasets and field values, then deploys dashboards and cost monitors. Targets cost optimization in Axiom deployments through waste identification and spend tracking against contract limits.

Generated from the current SKILL.md.

Does this skill work with any Axiom deployment, or only Axiom Cloud?
It works with any Axiom deployment. You must provide the deployment name during setup, and the skill uses axiom-api and axiom-sre commands to query your specific instance.
What data does this skill need to analyze costs?
The skill requires access to an audit dataset (commonly axiom-audit) containing usageCalculated and runAPLQueryCost events, plus axiom-history for Phase 4 optimization. If these datasets don't exist or lack the required events, cost analysis will not work.
Can I run just the dashboard or monitors without the full optimization analysis?
Yes. The skill is modular: run Phase 0 + 2 for dashboard only, Phase 0 + 3 for monitors only, or Phase 0 + 1 + 4 for waste discovery without setup.
What happens if I run create-monitors twice?
It creates duplicate monitors. You must delete existing monitors first using axiom-api DELETE before re-deploying, as the skill does not check for duplicates.
Does this skill support alerts to Slack or email?
Yes, Phase 3 asks you to select a notifier from your existing Axiom notifiers list. If you have no notifiers configured, you can create monitors without notifications.

Generated from the current SKILL.md. These answers refresh after source changes.