controlling-costs
Audited by Runlayer on Feb 22, 2026
Malicious tool definition detected
Tool: scripts/baseline-stats [1/2] Description: #!/bin/bash # Get baseline usage statistics and build Analysis Queue for cost optimization # Usage: baseline-stats -d <deployment> -a <audit-dataset> set -euo pipefail AXIOM_QUERY="${AXIOM_QUERY:-$HOME/.config/agents/skills/sre/scripts/axiom-query}" DEPLOYMENT="" AUDIT_DATASET="" usage() { cat << 'EOF' Usage: baseline-stats -d <deployment> -a <audit-dataset> Get 30-day baseline usage statistics and build Analysis Queue.
Description: dataset, run:" echo " scripts/analyze-query-coverage -d $DEPLOYMENT -D <dataset> -a $AUDIT_DATASET"
Malicious tool definition detected
Proceeding with creation..." echo "" else EXISTING_NAMES=$($AXIOM_API "$DEPLOYMENT" GET "/v2/monitors" 2>/dev/null | \ jq -r '.[] | select(.name | startswith("Cost Control:")) | .name' 2>/dev/null || true) echo "" echo "BLOCKER: MONITORS_ALREADY_EXIST" echo "" echo "Found $EXISTING_COUNT existing Cost Control monitors:" echo "$EXISTING_NAMES" | sed 's/^/ - /' echo "" echo "NEXT: scripts/create-monitors -d $DEPLOYMENT -a $AUDIT_DATASET -c $CONTRACT_BYTES --force" exit 1 fi else echo "No existing
Malicious tool definition detected
as $queries | ($queries | length) as $total | [ $queries[].all_columns[] ] | group_by(.) | map({ column: .[0], query_count: length, coverage_pct: (100 * length / $total | floor) }) | sort_by(-.query_count) ') WILDCARD_COUNT=$(echo "$QUERY_SUMMARIES" | jq '[.[] | select(.has_wildcard)] | length') # If no field specified, show column usage ranking with pruning analysis if [[ -z "$FIELD" ]]; then echo "" echo "--- Column Usage Ranking ---" echo "Total queries: $QUERY_COUNT | Queries with wildcards:
Malicious tool definition detected
Tool: scripts/deploy-dashboard Description: #!/bin/bash # Deploy cost control dashboard to Axiom # Usage: deploy-dashboard -d <deployment> -a <audit-dataset> [-n <name>] set -e SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" AXIOM_API="${AXIOM_API:-$HOME/.config/agents/skills/sre/scripts/axiom-api}" TEMPLATE="$SCRIPT_DIR/../templates/dashboard.json" # Defaults DEPLOYMENT="" AUDIT_DATASET="" DASHBOARD_NAME="Org Usage & Cost Control" usage() { cat << 'EOF' Usage: deploy-dashboard -d <de
Malicious tool definition detected
Tool: README.md Description: # controlling-costs Analyzes Axiom query patterns to find unused data, then builds dashboards and monitors for cost optimization.
Malicious tool definition detected
Tool: SKILL.md Description: --- name: controlling-costs description: 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. --- # Axiom Cost Control Dashboards, monitors, and waste identification for Axiom usage optimization.
Malicious tool definition detected
Tool: reference/dashboard-panels.md Description: # Dashboard Panels ## Overview The Cost Control dashboard provides visibility into Axiom usage patterns and helps identify optimization opportunities.
Malicious tool definition detected
Query Cost Spike (Hardened) - **Type:** Threshold (on robust z-score output) - **Query:** 30d baseline with 5d exclusion gap, persistence-based gating (median_z > 3, p25_z > 2.5) - **Threshold:** 1 (any dataset with sustained spikes) - **Frequency:** Hourly - **Range:** 30 days (43200 minutes) - **Trigger after:** 1 run (persistence built into query) Purpose: Detect changes in query cost patterns (different cost driver than ingest). Uses a **hardened** approach developed from a production invest
Human-readable output auto-formats to appropriate unit (PB/TB/GB/MB/KB/bytes).
Malicious tool definition detected
Tool: scripts/list-notifiers Description: #!/bin/bash # List available notifiers for a deployment # Used by agents to present options before creating monitors # # Usage: list-notifiers -d <deployment> set -euo pipefail SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)" AXIOM_API="${AXIOM_API:-$HOME/.config/agents/skills/sre/scripts/axiom-api}" DEPLOYMENT="" usage() { cat << 'EOF' Usage: list-notifiers -d <deployment> List available notifiers for cost control monitor alerts.
Malicious tool definition detected
Tool: scripts/test-ast-parser [1/2]
Description: Test 36: Query parameter USAGE in predicate should be excluded (symbol tracking) run_test "Query parameter usage in predicate excluded" \ '{"statements":[{"kind":"DeclareQueryParameters","parameters":[{"kind":"QueryParameter","name":{"kind":"Entity","name":"_cluster"},"type":{"kind":"DataType","type":"string"}}]}],"body":{"source":{"kind":"Dataset","name":{"kind":"Entity","name":"ds"}},"operations":[{"kind":"Where","predicate":{"kind":"BinaryExpr","left":{"kind":"Entity","name":"clu
Malicious tool definition detected
| extend ['WoW %'] = iff(last_week == 0, real(null), round(100.0 * (this_week - last_week) / last_week, 1)) | project ['WoW %']" }, "type": "Statistic", "warningThreshold": "Above", "warningThresholdValue": "10" }, { "colorScheme": "Green", "id": "active-datasets", "name": "Active Datasets", "query": { "apl": "declare query_parameters (org_filter:string = \"\", dataset_filter:string = \"\"); ['axiom-audit'] | where action == 'usageCalculated' | where isempty(org_filter) or ['resource.id'] == org
Tool: templates/dashboard.json [2/3] Description: }, { "name": "Datasets", "width": 80 } ] }, "type": "Table" }, { "id": "note-actions", "name": "Cost Optimization Actions", "query": {}, "text": "## Cost Control Playbook ### Understanding Work/GB **Work/GB** = Query Cost (GB·ms) ÷ Ingest GB This ratio measures how much query activity occurs relative to the amount of data ingested.
Tool passed security scan
Passed Files (3)Click to expand
Tool passed security scan
Tool passed security scan
Tool passed security scan