मुख्य सामग्री पर जाएँ
Skillpedia
एनालिसिस और स्प्रेडशीट9.5k · #12263

query-metrics

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

यह स्किल Axiom में संग्रहित मेट्रिक्स पर खोज चलाती है। यह उन लोगों के लिए है जो सिस्टम या ऐप के माप ट्रैक करते हैं और हर क्वेरी हाथ से लिखे बिना जवाब चाहते हैं।

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

  • ✓जब आप जानना चाहें कि आपके Axiom डेटासेट में कौन सी मेट्रिक्स उपलब्ध हैं।
  • ✓जब आपको किसी समय सीमा में मेट्रिक का मान चाहिए।
  • ✓जब आप ढूँढना चाहें कि कौन सी मेट्रिक्स किसी खास सेवा या होस्ट नाम को लेकर चलती हैं।

Skill का लिंक

https://github.com/openclaw/clawhub/blob/main/.agents/skills/query-metrics/SKILL.md

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

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

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

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

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

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

“मेरी API सेवा के लिए पिछले एक दिन का request count मेट्रिक दिखाइए।”

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

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

एजेंट मेट्रिक्स और उनके टैग की सूची बनाता है, क्वेरी नियम पढ़ता है, और आपकी चुनी समय सीमा में आपके डेटासेट पर क्वेरी चलाता है। नतीजा आपके सवाल का जवाब देने तक वह क्वेरी को परिष्कृत करता है।

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

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

Querying Axiom Metrics

All script paths are relative to this skill's folder; invoke as scripts/<name>. The target dataset must be of kind otel:metrics:v1.

Setup, prerequisites, and ~/.axiom.toml configuration: see README.md. Edge-deployment routing is automatic — the scripts read each dataset's edgeDeployment and route to the right regional endpoint without configuration.

Workflow

  1. scripts/datasets <deploy> --kind otel:metrics:v1 — list metrics datasets.
  2. scripts/metrics-spec — required before composing any query. MPL evolves; the spec is the source of truth. Also use it to answer general MPL/metrics questions.
  3. scripts/metrics-info <deploy> <dataset> metrics — list metrics with {type, temporality, unit} metadata. Read this before writing the query (see Choosing a Query Shape).
  4. scripts/metrics-info <deploy> <dataset> tags [<tag> values] — explore filter dimensions.
  5. scripts/metrics-query <deploy> '<MPL>' <start> <end> — execute. Iterate.

If the user names a specific entity (service, host, …), scripts/metrics-info <deploy> <dataset> find-metrics "<value>" finds the metrics carrying it. find-metrics searches tag values, not metric names — don't use it for general discovery.

Choosing a Query Shape

The metrics-info listing returns each metric's {type, temporality, unit}. Read these before composing — never assume a metric is a simple scalar.

Field Values Drives
type Gauge, CounterMonotonic, CounterNonMonotonic, Histogram Required pre-aggregation operators.
temporality Cumulative, Delta, null Whether counter values are running totals or per-interval deltas. null is normal for Gauges.
unit UCUM string (Cel, kW.h, s, %, [ppm], …) or null Display unit; preserve when reporting results.

Rules per type (consult metrics-spec for exact operator names — they evolve):

  • Gauge — instantaneous value. Align directly with avg/min/max/sum. Don't apply a rate; you'd be averaging meaningless deltas of an instantaneous value.
  • CounterMonotonic + Cumulative — running total (resets aside). The raw values are rarely what you want. Convert to a per-second rate first, then align/aggregate.
  • CounterMonotonic + Delta — already per-interval. Sum/align without a rate step.
  • CounterNonMonotonic — can go up or down (queue depth, balance). Intent is ambiguous: rate, delta, or current value all make sense for different questions. Ask the user before picking one.
  • Histogram — not a scalar. align using avg produces nonsense. Use bucket … using with the histogram functions from metrics-spec; quantiles are float specs to those functions, and temporality selects the variant (Cumulative vs Delta interpolation). Consult metrics-spec for the exact signatures.
  • temporality: null — "not applicable for this instrument type" (the norm for Gauges), not "missing data".

When surfacing numbers, attach the unit (treat null as unitless). If you combine metrics with mismatched units in arithmetic, warn rather than silently producing a meaningless number.

Query Metrics

scripts/metrics-query [-w pixels] [--pixel-per-point n] <deploy> '<MPL>' <start> <end>
Parameter Notes
deploy Name from ~/.axiom.toml (e.g. prod).
MPL Pipeline string. Dataset is parsed from the MPL itself.
start / end RFC3339 (2025-01-01T00:00:00Z) or relative (now-1h, now).
-w / --chart-width <px> Optional. Target chart width in pixels; lets the server resolve $__interval.
--pixel-per-point <n> Optional. Pixels per point (server default 10); with -w sets the bucket count.

Always single-quote the MPL string in the shell. MPL is full of backticks; inside double quotes the shell executes them as command substitution, silently mangling the query (or running whatever the identifier names).

Bound the output before grouping. group by <tag> returns one series per tag value with no cap — on a high-cardinality tag this floods the output. Check cardinality first (describe, or tags <tag> values) and prefer plain group using <agg> while exploring.

Examples:

scripts/metrics-query prod -w 1200 \
  '`my-dataset`:`http.server.duration` | align to $__interval using avg' \
  now-1h now

scripts/metrics-query prod -w 1200 \
  '`my-dataset`:`http.server.duration`
   | wh
अक्सर पूछे जाने वाले सवाल

क्या मुझे क्वेरी भाषा जाननी होगी?

विस्तार से नहीं। एजेंट पहले क्वेरी नियम पढ़ता है और आपके लिए क्वेरी लिखता है।

इसके लिए क्या सेटअप चाहिए?

पहले आपकी Axiom पहुँच सेटिंग कॉन्फ़िगर होनी चाहिए, जैसा स्किल की readme में लिखा है।

क्या यह नाम से मेट्रिक ढूँढ सकती है?

यह टैग के मान खोजती है, इसलिए ज्ञात सेवा या होस्ट नाम वाली मेट्रिक्स ढूँढने के लिए यह सबसे अच्छी है।

जानकारी

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

Runs metrics queries against Axiom MetricsDB via scripts. Discovers available metrics, tags, and tag values. Use when asked to query metrics, explore metric datasets, check metric values, or investigate OTel metrics data.

repo: openclaw/clawhub

लोकप्रियता

GitHub स्टार
9.5k
रैंकिंग में स्थान
#12263
लाइसेंस
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 डैशबोर्ड डिज़ाइन करने में मदद करती है, जिसमें सही चार्ट, क्वेरी और फ़िल्टर हों, और शुरुआत उन फ़ैसलों से होती है जिन्हें डैशबोर्ड सहारा देगा।

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

controlling-costs

9.5k

आपके एजेंट को Axiom में अनुपयोगी डेटा ढूँढने और ऐसे डैशबोर्ड व मॉनिटर बनाने में मदद करती है जो लॉगिंग लागत को ट्रैक करें और घटाएँ।

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

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