signoz-writing-clickhouse-queries
द्वारा signoz
इस कौशल का उपयोग तब करें जब उपयोगकर्ता SigNoz क्वेरीज़ के बारे में पूछे जिनमें शामिल हों:
npx skills add https://github.com/signoz/agent-skills --skill signoz-writing-clickhouse-queriesWriting ClickHouse Queries for SigNoz Dashboards
When to Use
Use this skill when the user asks for SigNoz queries involving:
- Logs: severity, body text, log volume, structured fields, containers, services, or environments.
- Traces: spans, latency, duration, p95 or p99, HTTP operations, DB operations, or error spans.
- Dashboard panels: timeseries charts, value widgets, and table breakdowns.
If the user asks for a dashboard panel but does not mention ClickHouse, still use this skill.
Signal Detection
Identify whether the request is about logs or traces.
- Logs: log lines, severity, body text, log volume, container logs, or structured log fields.
- Traces: spans, latency, duration, p99, trace analysis, HTTP operations, DB operations, or error spans.
If the request is ambiguous, ask the user to clarify.
Reference Routing
- Logs: read
references/clickhouse-logs-reference.mdbefore writing any query. - Traces: read
references/clickhouse-traces-reference.mdbefore writing any query.
Each reference covers table schemas, optimization patterns, attribute access syntax, dashboard templates, query examples, and a validation checklist.
Quick Reference
- Timeseries panel: return rows of
(ts, value)for a chart over time. - Value panel: return a single
valuefor a stat or counter widget. - Table panel: return labelled columns for a grouped breakdown.
Key Variables by Signal
Logs
- Timestamp type:
UInt64in nanoseconds. - Time filter:
$start_timestamp_nanoand$end_timestamp_nano. - Bucket filter:
$start_timestampand$end_timestamp. - Display conversion:
fromUnixTimestamp64Nano(timestamp). - Main table:
signoz_logs.distributed_logs_v2. - Resource table:
signoz_logs.distributed_logs_v2_resource.
Traces
- Timestamp type:
DateTime64(9). - Time filter:
$start_datetimeand$end_datetime. - Bucket filter:
$start_timestampand$end_timestamp. - Display conversion: use the timestamp directly.
- Main table:
signoz_traces.distributed_signoz_index_v3. - Resource table:
signoz_traces.distributed_traces_v3_resource.
Top Anti-Patterns
- Missing
ts_bucket_start BETWEEN $start_timestamp - 1800 AND $end_timestamp. - Using plain
INinstead ofGLOBAL INon the resource fingerprint subquery. - Adding a resource CTE when there is no resource attribute filter.
- Logs query with
$start_datetimeor$end_datetime. - Traces query with
$start_timestamp_nanoor$end_timestamp_nano. - Traces query with
resources_string['service.name']instead ofresource_string_service$$name.
Query Attribution
Every generated query MUST end with a SETTINGS clause for monitoring:
SELECT ...
FROM ...
WHERE ...
SETTINGS log_comment = 'signoz-writing-clickhouse-queries skill | YYYY-MM-DD'
Replace YYYY-MM-DD with today's date (e.g., 2026-04-03). If the query
already has a SETTINGS clause, append log_comment to it with a comma.
Workflow
- Detect the signal: logs or traces.
- Read the matching reference file before writing the query.
- Pick the panel type: timeseries, value, or table.
- Build the query using the required patterns from the reference.
- Append the
SETTINGS log_commentattribution clause. - Validate the result with the checklist in the reference.
signoz की और Skills
signoz-clickhouse-query
signoz
इस कौशल का उपयोग तब करें जब उपयोगकर्ता SigNoz क्वेरीज़ के बारे में पूछे जिनमें शामिल हों:
official
signoz-creating-alerts
signoz
उपयोगकर्ता की प्राकृतिक-भाषा की मंशा से SigNoz अलर्ट बनाएँ। यह स्किल दो उपभोक्ताओं को लक्षित करती है: एक स्वायत्त AI SRE एजेंट जो मानवीय हस्तक्षेप के बिना
official
signoz-creating-dashboards
signoz
यह कौशल SigNoz MCP सर्वर टूल्स (signoz:signoz_create_dashboard, signoz:signoz_list_dashboards, signoz:signoz_list_dashboard_templates, signoz:signoz_import_dashboard, signoz:signoz_list_metrics, signoz:signoz_get_field_values, signoz:signoz_aggregate_logs, signoz:signoz_aggregate_traces, आदि) को कॉल करता है। वर्कफ़्लो चलाने से पहले, signoz:signoz_* टूल्स की उपलब्धता की पुष्टि करें। यदि वे उपलब्ध नहीं हैं, तो SigNoz MCP सर्वर स्थापित या कॉन्फ़िगर नहीं है — रुकें और उपयोगकर्ता को सेटअप करने का निर्द
official
signoz-docs
signoz
जब भी उपयोगकर्ता SigNoz इंस्ट्रुमेंटेशन, OpenTelemetry सेटअप, क्वेरी करना, डैशबोर्ड, अलर्ट, समस्या निवारण, सेल्फ-होस्टेड… के बारे में पूछे, तो पहले इस कौशल का उपयोग करें।
official
signoz-explaining-alerts
signoz
मौजूदा SigNoz अलर्ट कॉन्फ़िगरेशन को सरल भाषा में समझाएँ। यह स्किल केवल पढ़ने योग्य है और नियम पर ही केंद्रित रहती है: यह क्या देखता है, कब सक्रिय होता है, कहाँ सूचित करता है। स्पष्टीकरण को आधार देने के लिए फायर-फ़्रीक्वेंसी डेटा की एक पंक्ति
official
signoz-explaining-dashboards
signoz
यह कौशल SigNoz MCP सर्वर टूल्स (signoz:signoz_get_dashboard, signoz:signoz_list_dashboards) को कॉल करता है। वर्कफ़्लो चलाने से पहले, signoz:signoz_* टूल्स की उपलब्धता की पुष्टि करें। यदि वे उपलब्ध नहीं हैं, तो SigNoz MCP सर्वर स्थापित या कॉन्फ़िगर नहीं है — रुकें और उपयोगकर्ता को इसे सेट अप करने के लिए निर्देशित करें: https://signoz.io/docs/ai/signoz-mcp-server/। किसी डैशबोर्ड की सामग्री का केवल उसके शीर्षक से अनुमान न लगाएं।
official
signoz-generating-queries
signoz
यह कौशल SigNoz MCP सर्वर टूल्स का भारी उपयोग करता है ( signoz:signoz_execute_builder_query , signoz:signoz_query_metrics , signoz:signoz_search_logs , signoz:signoz_search_traces , signoz:signoz_aggregate_logs , signoz:signoz_aggregate_traces , signoz:signoz_get_field_keys , signoz:signoz_get_field_values , signoz:signoz_list_metrics , signoz:signoz_list_services , signoz:signoz_get_service_top_operations , signoz:signoz_get_trace_details ). वर्कफ़्लो चलाने से पहले, पुष्टि करें...
official
signoz-investigating-alerts
signoz
पता लगाएं कि SigNoz अलर्ट क्यों फायर हुआ। यह स्किल अलर्ट के अपने सिग्नल को फायर विंडो के आसपास के पड़ोसी सिग्नलों से सहसंबंधित करता है, और समर्थन साक्ष्य के साथ संभावित कारणों की एक रैंक की गई सूची प्रस्तुत करता है। यह signoz-explaining-alerts का सहयोगी है — explain नियम को स्थिर रूप से डिकोड करता है; investigate किसी विशिष्ट घटना का निदान करता है।
official