मुख्य सामग्री पर जाएँ
Skillpedia
डिप्लॉय और क्लाउड (DevOps)9.5k · #12229

controlling-costs

यह क्या करती है

यह स्किल देखती है कि Axiom को कैसे क्वेरी किया जाता है, ताकि वह डेटा मिल सके जिसे कोई इस्तेमाल नहीं करता। फिर वह इनजेस्ट खर्च ट्रैक करने के लिए डैशबोर्ड और मॉनिटर सेट करती है। यह उन टीमों के लिए है जो अपना लॉगिंग बिल कम करना चाहती हैं।

कब इस्तेमाल करें

  • ✓जब आपसे Axiom की लागत घटाने को कहा जाए।
  • ✓जब आप ऐसे कॉलम या फ़ील्ड मान ढूँढना चाहें जिन्हें कोई क्वेरी नहीं करता।
  • ✓जब आप समय के साथ कितना डेटा इनजेस्ट हो रहा है, यह ट्रैक करना चाहें।

Skill का लिंक

https://github.com/openclaw/clawhub/blob/main/.agents/skills/controlling-costs/SKILL.md

इसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।

कैसे इस्तेमाल करें

सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।

पेस्ट करने के लिए तैयार मैसेज

इस skill से मेरी मदद करो: https://github.com/openclaw/clawhub/blob/main/.agents/skills/controlling-costs/SKILL.md इस लिंक की SKILL.md फ़ाइल पढ़ो और मेरे काम में उसके निर्देशों का पालन करो।
क्या आप चाहते हैं कि आपका AI ऐसी skills खुद ढूँढे?मुफ़्त Skillpedia MCP इंस्टॉल करें: बस एक लाइन, और हर काम से पहले यह 15,000+ skills में खोजता है।1 मिनट में इंस्टॉल करें →

AI से क्या माँगें: उदाहरण

“हमारे Axiom डेटा में अनुपयोगी फ़ील्ड ढूँढिए, और बताइए कि इनजेस्ट कहाँ घटाया जा सकता है।”

हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।

यह कैसे काम करती है

स्किल यह देखने के लिए Axiom का ऑडिट डेटा पढ़ती है कि कौन से फ़ील्ड क्वेरी होते हैं, फिर उसकी तुलना संग्रहित चीज़ों से करती है। इसके बाद यह लागत डैशबोर्ड और मॉनिटर बनाती है। शुरू करने से पहले यह ऑडिट डेटासेट का नाम और आपकी कॉन्ट्रैक्ट सीमा पक्की करती है।

तकनीकी सामग्री (मूल SKILL.md)

लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे GitHub से।

Axiom Cost Control

Dashboards, monitors, and waste identification for Axiom usage optimization.

Before You Start

  1. Load required skills:

    skill: axiom-sre
    skill: building-dashboards
    

    Building-dashboards provides: dashboard-list, dashboard-get, dashboard-create, dashboard-update, dashboard-delete

  2. Find the audit dataset. Try axiom-audit first:

    ['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 usageCalculated events → wrong dataset, ask user
  3. Verify axiom-history access (required for Phase 4):

    ['axiom-history'] | where _time > ago(1h) | take 1
    

    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

# 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:

  1. Total Ingest Guard — alerts when daily ingest >1.2x contract OR 7-day avg grows >15% vs baseline
  2. Per-Dataset Spike — robust z-score detection, alerts per dataset with attribution
  3. 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,

अक्सर पूछे जाने वाले सवाल

क्या इसके लिए ऑडिट डेटा चाहिए?

हाँ। यह Axiom में ऑडिट डेटासेट ढूँढती है, और न मिले तो आपसे उसका नाम माँगती है।

कौन से चरण चलते हैं?

यह सिर्फ़ वही चरण चलाती है जो आपके अनुरोध से मेल खाते हैं, जैसे अनुपयोगी डेटा ढूँढना या मॉनिटर सेट करना।

कॉन्ट्रैक्ट सीमा क्यों माँगी जाती है?

लागत मॉनिटर उपयोग की तुलना आपकी कॉन्ट्रैक्ट सीमा से करते हैं, जो प्रति दिन टेराबाइट में सेट होती है।

जानकारी

लेखक का मूल विवरण

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

लोकप्रियता

GitHub स्टार
9.5k
रैंकिंग में स्थान
#12229
लाइसेंस
MIT
अपडेट की गई
2/11/2026

क्या यह skill काम की है?

0

लॉग इन करें वोट करने के लिए।

कमेंट

  • …

इस repository की और skills

axiom-alerting

9.5k

आपके एजेंट को Axiom API से Axiom मॉनिटर और सूचना मार्ग बनाने और प्रबंधित करने में मदद करती है, और यह जाँचती है कि अलर्ट अपेक्षित ढंग से काम करते हैं।

कोडिंगडिप्लॉय और क्लाउड (DevOps)

axiom-sre

9.5k

आपके एजेंट को प्रोडक्शन घटनाओं और बग की जाँच चरण-दर-चरण करने देती है, निष्कर्ष निकालने से पहले हर अनुमान को Axiom लॉग से परखते हुए।

कोडिंगडिप्लॉय और क्लाउड (DevOps)

building-dashboards

9.5k

आपके एजेंट को Axiom डैशबोर्ड डिज़ाइन करने में मदद करती है, जिसमें सही चार्ट, क्वेरी और फ़िल्टर हों, और शुरुआत उन फ़ैसलों से होती है जिन्हें डैशबोर्ड सहारा देगा।

डेटाएनालिसिस और स्प्रेडशीट

convex-acquire-domain

9.5k

आपका एजेंट Convex के ज़रिए आपके Convex ऐप के लिए डोमेन ढूँढकर खरीदता है और उसे ऐप से जोड़ता है, सिर्फ़ तब जब आप नाम चुनकर हाँ कहें।

कोडिंगAPI और सर्वर (backend)

मिलती-जुलती skills