signoz-writing-clickhouse-queries

signoz-writing-clickhouse-queries is a skill for Claude Code from SigNoz/agent-skills. It costs 131 tokens per session (2,021 once invoked), scanned A, original, MIT.

A guide for writing raw ClickHouse SQL queries for SigNoz dashboard panels. SigNoz is an observability tool for examining application logs and traces, while ClickHouse is the database used for these queries.

In plain words
What is it for?
Use it to create time-series, single-value, or table panels from logs or traces, including latency percentiles, error data, and custom log or trace fields.
Why use it?
It helps when SigNoz's visual query builder cannot express the needed joins, time-based calculations, text extraction, or advanced summaries.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the signoz plugin — 13 skills, 2 hooks shipped together

Good fit Use it to create time-series, single-value, or table panels from logs or traces, including latency percentiles, error data, and custom log or trace fields.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/signoz/agent-skills/signoz-writing-clickhouse-queries
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add SigNoz/agent-skills --skill signoz-writing-clickhouse-queries
Clone the repo
git clone --depth 1 https://github.com/SigNoz/agent-skills

Made for: Claude Code.

Or install signoz, the plugin that ships this one along with the rest of its 13 skills, 2 hooks.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for signoz-writing-clickhouse-queries

README.md
[![agentmods](https://agentmods.dev/badge/skills/signoz/agent-skills/signoz-writing-clickhouse-queries/github.svg)](https://agentmods.dev/skills/signoz/agent-skills/signoz-writing-clickhouse-queries)
Your own site
<a href="https://agentmods.dev/skills/signoz/agent-skills/signoz-writing-clickhouse-queries"><img src="https://agentmods.dev/badge/skills/signoz/agent-skills/signoz-writing-clickhouse-queries/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for signoz-writing-clickhouse-queries

Your own site · 80×15
<a href="https://agentmods.dev/skills/signoz/agent-skills/signoz-writing-clickhouse-queries"><img src="https://agentmods.dev/badge/skills/signoz/agent-skills/signoz-writing-clickhouse-queries.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 131 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,021 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00131 $0.02021
Opus 5.5 $0.00052 $0.00808
Sonnet 5.5 $0.00026 $0.00404
Haiku 4.5 $0.00013 $0.00202

Measured 11d ago against content hash f5ff8700afc1, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

signoz-writing-clickhouse-queries scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 11d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/signoz/skills/signoz-writing-clickhouse-queries/SKILL.md · 178 lines

How it starts

The opening of the file, as written. The whole thing — 178 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Writing 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.
  • Metrics: counter rates, gauge values, or histogram quantiles that the builder cannot express.
  • 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, traces, or metrics.

  • 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.
  • Metrics: a named metric, a counter rate, a gauge value, or a histogram quantile.

If the request is ambiguous, ask the user to clarify.

Reference Routing

Before writing any query, do these reads in order for the detected signal.

  1. Read the schema resource. It lists the tables, columns, and column types from the schema bundled with the MCP server.
    • Logs: signoz://dashboard/clickhouse-schema-for-logs
    • Traces: signoz://dashboard/clickhouse-schema-for-traces
    • Metrics: signoz://dashboard/clickhouse-schema-for-metrics
  2. Read the examples resource for worked query shapes.
    • Logs: signoz://dashboard/clickhouse-logs-example
    • Traces: signoz://dashboard/clickhouse-traces-example
    • Metrics: signoz://dashboard/clickhouse-metrics-example
  3. Logs and traces: read the local reference, references/clickhouse-logs-reference.md or references/clickhouse-traces-reference.md. It holds the optimization patterns, attribute access syntax, dashboard templates, and validation checklist that the resources do not state. Metrics has no local reference; reads 1 and 2 are its full guide.

Read the full file on GitHub · 178 lines

Files

What ships with it

2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 11d ago Changed · +61 lines f5ff8700afc1
  2. 3mo ago First seen · 117 lines · 131 tokens per session scan A e4cae046f382

Subscribe to this mod's changes

signoz-writing-clickhouse-queries is a skill published in the GitHub repository SigNoz/agent-skills (22 stars, last pushed 9d ago), licensed MIT. It adds 131 tokens to every session and 2,021 once invoked, about $0.0005 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

signoz-writing-clickhouse-queries compared with skills from other repositories

signoz-writing-clickhouse-queries next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
signoz-writing-clickhouse-queriesSigNoz/agent-skillsSkill229d agoMITA131Claude Code
deprecation-and-migrationaddyosmani/agent-skillsSkill123k3d agoMITA69Claude Code
mongodbmongodb/agent-skillsSkill212yesterdayApache-2.0A218Claude Code, Codex
mongodb-qe-size-estimationmongodb/agent-skillsSkill212yesterdayApache-2.0A52Claude Code
awesome-database-auditkhasky/awesome-agent-skillsSkill488d agoMITA49Claude Code
analyze-slow-querieslast9/last9-mcp-serverSkill62todayApache-2.0A24Claude Code, Codex
setting-up-wide-events-storeadammiribyan/wide_eventsSkill111mo agoMITA58Claude Code, Codex