signoz-writing-clickhouse-queries

signoz-writing-clickhouse-queries is a skill for Claude Code from SigNoz/agent-skills. It costs 131 tokens per session (1,075 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 1,075 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.01075
Opus 5 $0.00066 $0.00537
Sonnet 5 $0.00026 $0.00215
Haiku 4.5 $0.00013 $0.00108

Measured 12d ago against content hash e4cae046f382, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, 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 12d 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 · 117 lines

How it starts

The opening of the file, as written. The whole thing — 117 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.
  • 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

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 value for a stat or counter widget.
  • Table panel: return labelled columns for a grouped breakdown.

Key Variables by Signal

Logs

  • Timestamp type: UInt64 in nanoseconds.
  • Time filter: $start_timestamp_nano and $end_timestamp_nano.
  • Bucket filter: $start_timestamp and $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_datetime and $end_datetime.
  • Bucket filter: $start_timestamp and $end_timestamp.
  • Display conversion: use the timestamp directly.
  • Main table: signoz_traces.distributed_signoz_index_v3.
  • Resource table: signoz_traces.distributed_traces_v3_resource.

Read the full file on GitHub · 117 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. 12d 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 (16 stars, last pushed 10d ago), licensed MIT. It adds 131 tokens to every session and 1,075 once invoked, about $0.0007 per session on Opus 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

Other skills, from other repositories

deprecation-and-migration

Manages deprecation and migration. Use when removing old systems, APIs, or features. Use when migrating users from one implementation to another. Use when migrating a database schema in production, such as renaming or dropping a column without downtime (expand/contract). Use when deciding whether to maintain or sunset…

addyosmani/agent-skills · 69 tokens

awesome-database-audit

Read-only audit of a database layer — schema anti-patterns (EAV, generic keys, imprecise types), query and index fit (SELECT , N+1, unindexable predicates), integrity and concurrency, migration and tenancy hygiene — with evidence per finding and a SHIP / FIX / BLOCK verdict. Use when asked to audit the database…

khasky/awesome-agent-skills · 134 tokens

setting-up-wide-events-store

Use when a human asks to set up, deploy, or finish deploying the bundled Wide Events DuckDB store (the Kamal accessory that receives production telemetry). Covers the store generator, DNS, kamal setup, and post-deploy verification end to end.

adammiribyan/wide_events · 58 tokens

reopt-eav

EAV schema status, sync, pull, diff, file-based migrations (plan/migrate/history/verify), record inspection and pruning (eav records list/get/count/delete-where), and destructive-change guardrails for reopt Brandapp projects. Use when a task involves reopt brandapp eav status, sync, pull, diff, plan, migrate, history…

reopt-ai/reopt-skills · 111 tokens

data-engineering

Guides data pipeline design, ETL/ELT workflows, schema evolution, and data quality assurance. Use when building data pipelines, designing data warehouses, migrating schemas, or ensuring data integrity across systems. Use when you need reliable, testable, and observable data flows.

borhen68/SkillEngine · 59 tokens

postgres-ops

Operate a production Postgres database — backup strategy, point-in-time recovery, restore drills, connection pooling for serverless, and a disaster-recovery runbook. Use when asked to set up Postgres backups, plan disaster recovery, configure connection pooling, restore a database, or harden Postgres for production.…

shipshitdev/skills · 81 tokens