Docs
DocumentationQuery ReferenceAPI Reference
Open Console→→
DocumentationQuery ReferenceAPI Reference

Platform overview

What is Axiom?QuickstartArchitectureFeatures
Fundamentals
Datasets
Edge deployments
Limits
Performance
Optimize usage
Requirements
Semantic conventions
Glossary
Tour
SecurityRoadmap

Send data

Reference architecturesMethods

Understand data

Console
Query
Builder
Editor
Query results
Visualize
Traces
Metrics
Correlations
Save queries
Stream
Dashboard
Create
Elements
Create
Configure
Element types
Gauge
Heatmap
Log stream
Monitor list
Note
Pie chart
Scatter plot
Statistic
Table
Time series
Sections
Configure
Filter
Monitor
Overview
View status
Configure
Examples
Monitor types
Anomaly
Match
New values
Threshold
Alerting
Overview
Configure
Notifier types
Amp
ChatGPT Workspace Agent
Claude Code
Cursor
Custom Webhook
Discord
Email
incident.io
Jira Service Management
Microsoft Teams
Opsgenie
PagerDuty
Slack
Annotations
Command Menu
Manage
Datasets
Overview
Views
Virtual fields
Access
RBAC
Tokens
CLI
Organization
Labels
Audit log
Settings
Usage and billing
Profile
Extend
Overview
AWS Lambda
AWS PrivateLink
Cloudflare Workers
Cloudflare Logpush
Convex
Grafana
Hex
Netlify
Supabase
Supabase metrics
Tailscale
Terraform
Unkey
Vercel
Intelligence
Overview
Spotlight
AI agents
Overview
MCP Server
Overview
Tools
Query cost limits
Agent-created orgs
Skills
Overview
Axiom alerting
Build dashboards
Control costs
SRE
Translate SPL to APL
Splunk
Overview
Splunk app
Install and configure
Commands
Traces
Examples
Portal
How it works
Set up standard mode
Set up transparent mode
Observability Cloud
OCSF data
OCSF as CIM
SPL command support
Examples
Monitor and troubleshoot

Use cases

ObservabilityProduct analytics
OCSF security data
Overview
Send data
Query data
LLM observability
Overview
Use Vercel AI SDK
Manual instrumentation
OpenAI Agents SDK
GenAI attributes
Redaction policies

Miscellaneous

LLMs
Overview
List of docs pages
Full docs
Query reference
FAQs
Legal
Acceptable use policy
Axiom for Startups terms
Committed use terms
Cookies
Data processing
HIPAA
Partner agreement
Partner program guide
Privacy policy
SLA
Terms of service
Terms of use
Understand data/AI agents

Control costs skill

This page explains how to use the Control costs skill to give AI coding agents the ability to analyze usage and optimize Axiom costs.

The Control costs skill helps AI agents optimize Axiom usage and reduce costs:

  • Waste review: Find columns and datasets with little or no query activity during the analysis period
  • Query analysis: Analyze query patterns to identify optimization opportunities
  • Dashboard management: Create or update cost dashboards with ingest trends, burn rate, and projections
  • Cost monitors: Track total ingest and detect spikes in dataset ingest and query costs
  • Analysis workflow: Systematic approach to prioritize and analyze datasets by impact

Prerequisites

Set up the following:

  • Create an Axiom account.
  • Connect Axiom MCP Server in your AI client and sign in to your Axiom organization.
  • Grant query access to an audit dataset or a view containing usage events. To check which data is queried, also grant access to query history, typically in axiom-history. Query history is optional for dashboard and monitor setup.
  • To create or update dashboards and monitors, grant permission to manage those resources.
  • Install Python 3.10 or later, Bash, and jq to run the local scripts.

Install Axiom Skills

Follow the Axiom Skills installation instructions. If you install standalone skills, connect Axiom MCP separately.

The skill uses MCP to find datasets, query usage, and manage dashboards, monitors, and notifiers. If MCP is disconnected or authentication fails, the agent asks you to connect or sign in before continuing. No SRE configuration or separate API-token file is required.

Local scripts analyze the query results and prepare dashboard and monitor JSON. All access to Axiom goes through MCP.

Use Control costs skill

The Control costs skill activates automatically when you ask your AI agent to:

  • Reduce Axiom costs or find waste
  • Set up cost control dashboards and monitors
  • Analyze query coverage and potential waste
  • Track ingest spend and burn rate

Example prompts:

  • "Help reduce Axiom costs"
  • "Which columns haven't been queried in the last 30 days?"
  • "Set up cost control monitoring for the organization"
  • "Which datasets haven't been queried in the last 30 days?"

Cost control workflow

The skill follows these steps based on your request:

PhaseDescription
Discovery and baselineCollect usage through MCP and rank datasets by ingest volume and query activity
DashboardCreate or update a cost control dashboard through MCP
MonitorsCreate or tune the three cost monitors through MCP
OptimizationReview query activity and report potential savings, supporting evidence, and gaps in the analysis

Cost monitors

The skill validates the queries for these three monitors before saving them through MCP:

MonitorPurpose
Total ingest guardDetect ingest above 120% of the supplied daily contract allowance or sustained growth
Per-dataset spikeIdentify datasets with significant ingest increases compared with their historical baseline
Query cost spikeIdentify datasets with sustained query cost increases compared with their historical baseline

Provide your daily ingest allowance for the total ingest guard and choose where to send alerts. When updating a monitor, the skill keeps its existing notification routing. A saved or running monitor doesn't confirm that a notification was delivered.

Review potential waste

Review the findings before changing what you ingest or retain. Finding no queries during the analysis period doesn't prove that the data is unused. Check for missing history, queries the analysis didn't fully interpret, sampling limits, and dependencies outside that period.

An analysis request produces findings and proposed actions. It doesn't change ingestion, remove fields, or delete datasets.

Was this page helpful?
Suggest edits on GitHub
PreviousBuild dashboards skillNextSystem Reliability Engineering (SRE) skill
On this page
PrerequisitesInstall Axiom SkillsUse Control costs skillCost control workflowCost monitorsReview potential waste