/signoz:signoz-modifying-dashboardsfrom signoz
Modifies existing SigNoz dashboards: add/remove/edit panels, change queries/thresholds/units, rename dashboards, adjust layout, manage variables and tags. Activated when users request dashboard changes without needing to create a new one.
Ships in signoz. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
This skill calls SigNoz MCP server tools (signoz_get_dashboard,
signoz_patch_dashboard, signoz_update_dashboard, signoz_list_dashboards,
signoz_list_metrics, signoz_get_field_keys, signoz_get_field_values,
signoz_execute_builder_query).
Before running the workflow, confirm the signoz_* tools are available.
If they are not, the SigNoz MCP server is not installed or configured;
run signoz-mcp-setup first to initialize or repair the MCP connection. Do not
fall back to raw HTTP calls or hand-edit dashboard JSON without the MCP tools.
Use this skill when the user asks to:
Do NOT use when:
signoz-explaining-dashboardssignoz-creating-dashboardsUse an id supplied directly or by dashboard resource context. A name is not an
ID: resolve every name-only request with signoz_list_dashboards, narrowing with
the filter argument (see signoz://dashboard/list-filter-guide) and paging by
offset until you have covered total. Match on spec.display.name. If multiple
dashboards match, present them and ask which one to modify; if one matches, use
its id.
Call signoz_get_dashboard with the dashboard id to retrieve its full
configuration. This is mandatory: signoz_update_dashboard requires the
complete post-update state, and a patch still needs the real panel ids and grid
item indices. Never skip this step.
Examine the response to understand:
spec.panels is a map keyed by panel id)signoz/TextPanel instead has non-null queries: []spec.layouts structure: one Grid per section, each with its own itemsThe fetched source is user, system, or integration. Only source=user
dashboards are mutable. If it is system or integration, explain that it is
immutable and stop. The v2 list excludes system rows, but a known system id can
still be fetched. Do not search for a special system discovery tool or attempt
to change source.
Based on the user's request, plan the changes.
Confirm with the user before applying if:
signal
(e.g., traces → logs), or fundamentally altering what data is shown (changing
aggregation from p99 to avg, removing groupBy dimensions)Destructive means data loss or silent behavior change. Even if the user says "just do it quickly," a brief confirmation ("I'll remove 'Memory Fragmentation' permanently. OK?") takes seconds and prevents irreversible mistakes. User urgency does not override this guardrail.
Non-destructive changes need no destructive confirmation: renaming, adding a panel or variable, changing a unit or panel type, adjusting layout, and adding thresholds. Variable additions still require the panel-applicability prompt below.
Compound modifications: When a request involves multiple changes (e.g., remove a panel + add a panel + rename), plan all changes against the fetched state and apply them as a single write: one patch array may carry many ops. Do not apply and re-fetch between changes.
Pick the write tool first. Default to signoz_patch_dashboard (RFC 6902):
it sends only the changed ops, so it cannot drop a panel that was never in
question. Read signoz://dashboard/patch-instructions for the JSON Pointer
paths. Reach for signoz_update_dashboard (a full replacement merged into the
Step 2 state) only when most of the dashboard changes. The rules below apply to
both; each names its patch path.
Ops apply in sequence, against the document as the previous ops left it. When one patch removes several entries from the same array (grid items, layouts, variables, tags, or a composite's member queries), order those removals by descending index. Otherwise each removal reindexes the entries after it, and a stale index quietly drops the wrong entry or no-ops (remove on a missing path is not an error). Indices planned against the Step 2 state are only valid for the first removal from each array.
Modification rules:
Time range and refresh are viewer controls. Dashboard payloads do
not persist a default time range or refresh interval. If asked to change one,
explain that panels follow the viewer-selected global range; do not invent
timeRange, defaultTimeRange, or refresh fields.
Preserve supported mutable state. Copy the fetched dashboard, change only what the user requested, and compare semantics after MCP normalization. Do not drop unrelated panels, variables, grid items, or sections.
Preserve panel/grid-item identity. Every panel id in spec.panels needs
exactly one grid item whose content.$ref names it; add or remove both
together. Reuse existing panel ids verbatim: a rename is a display change,
not a new id.
Read schemas before every write. Read all required and applicable
conditional resources named by the write tool. For Query Builder,
also read signoz://metrics-aggregation-guide,
signoz://traces/query-builder-guide, or
signoz://logs/query-builder-guide for the signal. MCP is the source of truth.
Adding a panel:
add it at
/spec/panels/<id>. When the dashboard already holds a panel of the
target type, start from that panel's JSON in the Step 2 response instead
of composing one (the same diff-and-merge principle the update path
follows, and the server's own shape is known-valid). Re-point every field
that identifies the data (aggregation, groupBy, filter.expression,
order, legend, alias, signal); a clone with one stale field is
well-formed and will be accepted, so the mandatory dry-run below is what
catches it. Compose from signoz://dashboard/widgets-examples only when
no panel of that type exists.spec.layouts, each with its own spec.display.title and its own item
coordinates, so adding to an earlier section touches only that Grid.add a grid item at /spec/layouts/<n>/spec/items/- whose content.$ref
is #/spec/panels/<id>, obeying the bounds below. Unless side-by-side
placement is explicit, place it at x: 0, y: max(y + height) within that
Grid. A panel with no grid item is accepted and never renders.Removing a panel: Remove the grid item (0-based index within its Grid) and
the /spec/panels/<id> entry together; an item left pointing at a removed panel is rejected.
Do not try to auto-compact or shift y positions of remaining panels; the
SigNoz frontend grid engine handles gap-closing automatically. Simply remove the
two references (panel entry, grid item) and leave all other positions
unchanged.
Editing a panel's query: Replace the query at /spec/panels/<id>/spec/queries/0
and keep all other panel fields intact; never append a second one, since a
query-bearing panel holds exactly one query. A TextPanel is queryless.
Adding or editing text: Use signoz/TextPanel with mode markdown,
a non-null empty queries: [], and the current resource's display
shape. Add the panel and its Grid item together. Skip query discovery and
dry-run for TextPanels. Do not invent a row panel.
Changing panel type: Update the plugin kind and the query envelope kind
together (signoz/TimeSeriesPanel + time_series → signoz/TablePanel +
scalar): follow the target type's complete shape in widgets-examples. Preserve the
existing query and signal; change only visualization-specific fields.
signoz/TimeSeriesPanel and signoz/AreaChartPanel both keep the
time_series query, so switching between them changes only the plugin. Do
not stack latency, percentiles, or ratios in an area chart.
Adding/editing variables:
signoz_get_field_keys
and optionally signoz_get_field_values with the relevant signal and
fieldContext=resource. Trust the discovered key (for example,
deployment.environment versus deployment.environment.name).ListVariable with a signoz/DynamicVariable plugin for an
attribute-backed dropdown, appended at /spec/variables/-. Its spec.name
is the $handle; plugin.spec.name is the attribute key.$<name> only to the selected panels' filter.expression, preserve
unselected panels, and dry-run every query changed by the variable.Rearranging layout / side-by-side placement: patch the grid items at
/spec/layouts/<n>/spec/items/<i>; the panels map is untouched.
0 <= x < 12, 1 <= width <= 12, and x + width <= 12.width: 6, first at x: 0, second at
x: 6, same y and height.width: 4 at x: 0, x: 4, x: 8.width and x,
then place the new panel in the freed space at the same y.height: 6 for graphs/tables, height: 2–3 for value
panels.Dry-run modified panels (mandatory). For every added or changed query-bearing
panel, follow "Dry-run a panel query" in
signoz://dashboard/widgets-instructions.
The panel already stores the execution spec, so lift it into the outer envelope and
call signoz_execute_builder_query with that payload. Dry-run over a short
absolute Unix-ms window, usually the last 30-60 minutes, never the panel's
display range by reflex; apply that section's empty-result and timeout rules
before widening or retrying. Use representative variable values in the
dry-run copy and keep $var in saved state.
Preserve or add explicit result bounds on every changed builder query/formula
except formula inputs: the saved spec carries a positive limit plus non-empty
order, and the dry-run sends those same values unchanged. List
and trace-request panels default to 100 rows ordered by timestamp desc (raw logs
also id desc), but preserve a deliberate smaller positive list limit.
Standalone aggregate queries and formula outputs default to
100 groups. Every base query referenced by a formula carries no limit or
order, because base limits are applied before formula evaluation; remove an
existing input limit unless it was an intentional pre-formula top-N selection. Find the complete
base-query set by inspecting every formula expression, including formulas with
disabled: true, and following formula references to all builder_query
leaves. This dependency walk chooses bounds only; it does not establish
deterministic formula-to-formula evaluation order, so dry-run the complete
composite payload. Standalone base queries order by their primary aggregation and
formulas by __result, in the saved panel and the dry-run alike. For time series, this
top-N is chosen over the whole window, so a short-lived local spike can be
omitted.
If the executor cannot represent a saved field, report the panel as unvalidated and continue only after explicit acceptance. Server or validation errors and unexpected empty results block unless explicitly accepted.
Call signoz_patch_dashboard with the id and an op array; the result is
validated after the ops apply, and locked dashboards are rejected:
signoz_patch_dashboard({
"id": "<dashboard-id>",
"patch": [{"op": "replace", "path": "/spec/display/name", "value": "New title"}]
})
If the write fails, never resend the same payload. A client-side
InputValidationError never reached SigNoz, so an identical retry cannot
succeed, and working out why it failed does not license another attempt.
That reasoning is what turns two failures into twenty. Allow at most two
attempts per approach, then change approach: clone-and-re-point rather than
author, or split one patch into several. If two approaches have failed, stop
and report the exact ops and error text to the user instead of trying a third.
This bounds client-side validation failures only; a dry-run timeout is a
server-side condition where retrying over a narrower window is correct.
For a full replacement, signoz_update_dashboard takes the merged state flat
beside id, not nested under a dashboard key. Merge into the data object of the
Step 2 response; passing the {status, data} envelope itself is rejected. Send the
fetched name (an immutable machine label) back unchanged, and drop the read-only
fields the GET returns (createdAt, updatedBy, orgId, webUrl, and friends):
signoz_update_dashboard({
"id": "<dashboard-id>",
"schemaVersion": "v6",
"name": "<the fetched name, unchanged>",
"tags": [...],
"spec": <complete merged spec from signoz_get_dashboard>
})
Also omit read-only source, generated links, lock/public metadata, and other
server-populated fields from the update body. Preserve their meaning by refusing
non-user writes, not by sending them back.
Briefly tell the user what was changed. Offer further modifications if relevant.
signoz_patch_dashboard for
targeted edits. When a full replacement is warranted, signoz_update_dashboard
takes the complete dashboard flat beside id (schemaVersion, name,
tags, spec), never nested under a dashboard key. Always call
signoz_get_dashboard first, merge into that response's data object, round-trip name
unchanged, and never construct a payload from scratch.signoz://dashboard/* MCP resources (instructions, widgets-instructions,
widgets-examples, query-builder-example). Never generate malformed queries
or layouts.service.name not service and host.name not
host, but discover version-sensitive keys such as deployment.environment
versus deployment.environment.name instead of forcing one form.signoz_list_metrics to discover
available metrics. Wrong metric names produce empty panels.signoz_list_dashboards result before concluding a
dashboard does not exist.content.$ref; keep each variable's spec.name identical to the
$handle its queries use, and keep query names such as A, B, and F1
stable.queries: []; every query panel has one query. Never persist legacy
widgets, panelMap, panelTypes, queryData, selectedLogFields, or
selectedTracesFields. Never write a non-user dashboard."unused" as a
dashboard id. Resolve it through signoz_list_dashboards and
signoz_get_dashboard first.signoz-creating-dashboards.User: "Add an error rate panel to my Redis dashboard"
Agent:
signoz_list_dashboards with filter="redis"; finds "Redis Overview"
dashboard with id abc-123.signoz_get_dashboard with id abc-123; gets full configuration with
8 existing panels across two Grid sections.signoz_list_metrics to find available Redis error metrics.signoz/CompositeQuery holding the two
disabled base queries and the error-rate formula) and a grid item for it below
the last item in the Overview Grid.signoz_execute_builder_query; fixes any error or
unexpected empty result.signoz_patch_dashboard with two ops (add /spec/panels/error-rate and
add /spec/layouts/0/spec/items/-) rather than re-sending all 9 panels.User: "Change the latency panel from a graph to a table on my API dashboard"
Agent:
signoz_list_dashboards, then calls
signoz_get_dashboard with its id.kind to signoz/TablePanel and the query kind to
scalar, matches the table shape in widgets-examples, and keeps the query
intact.signoz_patch_dashboard with replace ops on that panel's plugin and
query kind.User: "Remove the CPU panel and rename the dashboard to 'Service Health'"
Agent:
signoz_get_dashboard./spec/display/name, never the immutable top-level name.signoz_patch_dashboard with all three ops in one array.evals/evals.json (opens in a new tab)evals/files/dry-run-validation-error.json (opens in a new tab)evals/files/environment-variable-scope-context.json (opens in a new tab)evals/files/non-final-row-dashboard.json (opens in a new tab)evals/files/promql-timeout-retry.json (opens in a new tab)evals/files/target-on-second-page.json (opens in a new tab)evals/files/update-payload-contract.json (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
13 skills in this plugin
/signoz-creating-alertsCreate a new SigNoz alert rule from a natural-language intent: threshold, anomaly, log-volume, error-rate, latency, or absent-data alerts across metrics, logs, traces, and exceptions. Make sure to use this skill whenever the user says "alert me when…", "notify me if…", "set up monitoring for…", "page me on…", "create an alert for…", or asks for a new alert/notification rule, even if they don't say the word "alert" explicitly. Also use it when someone asks to be notified about error rates, latency spikes, log volume, CPU/memory pressure, or anomalous behavior on a service or host.
/signoz-creating-dashboardsCreate a new SigNoz dashboard from a natural-language intent: import a curated template (PostgreSQL, Redis, JVM, k8s, hostmetrics, APM, LLM, etc.) when one fits, or build a custom dashboard from scratch with metric / trace / log panels. Make sure to use this skill whenever the user says "create a dashboard for…", "set up monitoring for…", "build me a dashboard…", "I need observability for…", "import a dashboard template", or asks to track / visualize a service, database, cluster, or AI/LLM platform, even if they don't explicitly say "dashboard". Also use it when someone wants to "monitor", "watch", or "see metrics for" a technology and the natural answer is a dashboard.
npx claudepluginhub signoz/agent-skills --plugin signozOther plugins' skills for the same job