Answer any Grafana query with two parallel read-only sub-agents, Grafana Assistant and direct gcx, then reconcile and verify. Use when handling Grafana alerts, metrics and PromQL, logs and LogQL, traces and TraceQL, dashboards, datasource inventory, SLO health, Synthetic Monitoring, or other Grafana resource reads, including exact queries. Honors a disabled Assistant and cost controls; setup-only requests go to gcx-cli.
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Parallel Grafana Investigation?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/orenlion1-parallel-grafana-investigation)
---
name: parallel-grafana-investigation
description: "Answer any Grafana query with two parallel read-only sub-agents, Grafana Assistant and direct gcx, then reconcile and verify. Use when handling Grafana alerts, metrics and PromQL, logs and LogQL, traces and TraceQL, dashboards, datasource inventory, SLO health, Synthetic Monitoring, or other Grafana resource reads, including exact queries. Honors a disabled Assistant and cost controls; setup-only requests go to gcx-cli."
---
# Parallel Grafana Investigation
## Overview
For every user-requested Grafana query, launch a Grafana Assistant agent and a direct gcx
agent in parallel. Both answer the same request within the same resolved scope. An exact
query or inventory read stays that size; two methods do not authorize a broader investigation.
The repository's [routing table](../../AGENTS.md#routing) sends every Grafana query here; its
[Grafana Policy](../../AGENTS.md#grafana-policy) owns the Assistant cost and disable rule.
Within [per-store fan-out](../per-store-fan-out/SKILL.md), this pattern nests inside the
Grafana branch, including for non-alert requests.
Both agents use the [shared delegation contract](../per-store-fan-out/references/delegation-contract.md)
for launch modes, manifests, harness mechanics, degradation and leads versus findings.
This skill owns the two Grafana branches, their shared inputs and their reconciliation.
Delegating skills in this catalog share one delegation contract: copying any of them means copying the `per-store-fan-out` package too.
When part of an investigation, inherit its original request start and
[soft delivery budget](../investigation-delivery/references/delivery-contract.md).
Reuse verified setup and evidence while preserving coverage and gates.
## When to Use
Use for user-requested Grafana telemetry queries, exact expressions, inventory listings,
resource reads, alert investigations, health checks and troubleshooting. Setup-only installation,
authentication or skill-refresh requests use [gcx-cli](../gcx-cli/SKILL.md) and do not start
Assistant. An explicitly requested resource read after setup uses this workflow.
Launch one pair per resolved Grafana request or existing Grafana store branch, not per command.
Internal authentication probes, metadata/datasource discovery, historical endpoint list/get reads,
verification queries and follow-ups remain with their existing owner; they never recursively
invoke this workflow. Preserve history-only endpoints' no-new-prompt restrictions and the
parent's delegation disable setting. A selected specialist skill supplies the direct method;
it does not replace this orchestration or widen the user's scope.
## Workflow
1. **Resolve shared inputs.** Use gcx-cli for installation, bundle refresh and
[context routing](../gcx-cli/SKILL.md#resolve-the-context). Carry ordinary/endpoint and
IRM contexts in both briefs when needed.
Resolve the exact request/expression, targets, filters, limits, output, environment and
read-only scope. Temporal queries need an exact range/instant and timezone; mark these
not applicable for non-temporal inventory. Ask only for missing required inputs; never
guess context through live discovery. The request authorizes this read-only workflow.
Before launch, accept a parent-prepared `grafana-assistant-search` handoff under
[Assistant matching](../rhyming-issue-search/references/assistant-search.md). Register the
prospective branch with its original request, exact context/scope/shared block and unsent
state. Only a compatible branch owns one combined initial prompt; retain separate endpoint
children and manifest rows linked to its execution receipt. Do not broaden scope to combine
requests. A late matching request does not automatically start another prompt.
2. **Launch both sub-agents before awaiting either result.** Each brief, the direct one included,
states the shared inputs as its own explicit fields (context, exact expression, window or
instant, timezone, output constraint), not only inside an embedded command line. Expand
the literal values in each brief; “shared block above” is not a self-contained handoff:
- **Grafana Assistant agent:** send the same request through `gcx assistant prompt` with
explicit `--context`, a fresh conversation and the shared read-only scope. For an exact
query, retain the expression, parameters and requested output; do not substitute an
Assistant-generated query. Include matching in the initial prompt only when this branch
owns the prepared compatible handoff. Retain the prompt, response/conversation identifiers,
source references and limitations as leads. Endpoint consumers use the retained response.
- **Direct gcx agent:** every brief, including offline plans, must gate future reads on
gcx-cli setup/refresh verification. Missing gcx with no-install means blocked, never a
fallback query. Then execute refreshed skills through the harness for bounded evidence:
| Request | Bundled skill guidance |
| --- | --- |
| Alert firing, pending or flapping | `investigate-alert` |
| Metrics, logs, traces or cross-signal diagnosis | `debug-with-grafana` and/or `gcx` |
| Dashboard inspection or inventory | `manage-dashboards` |
| SLO health or investigation | `slo-check-status` or `slo-investigate` |
| Synthetic Monitoring health or failure | `synth-check-status` or `synth-investigate-check` |
| Other resource reads or exact queries | Relevant current bundled skill, with `gcx` command discovery |
This table is illustrative; inspect the refreshed bundle for the actual operation.
`gcx agent skills get <name>` displays instructions; it does not execute them. Invoke
those instructions through the harness, never an invented shell skill runner. Use
dedicated gcx reads, preserve exact expressions and result limits, and enforce explicit
context/window over examples in bundled guidance. Do not duplicate the Assistant prompt
or wait for its result. This agent uses gcx and gcx agent skills only; it sends no
Assistant prompt, including when the selected bundled guidance suggests one. Necessary
independent reads can run concurrently inside this agent without new delegation pairs.
Read the [profiling workflow](references/profiling-coverage.md) before profiling/onset
answers, including offline plans; apply its protocol without claiming unperformed reads.
For unexplained CPU pressure or CPU-related flapping, the direct branch discovers the
Pyroscope datasource, profile types, workload labels and incident-window coverage, then
reads CPU profiles for the affected workload; for a deadlock hypothesis it also reads
available contention, blocking or wall profiles. Compare baseline/recovery windows or
other affected pods when available in scope and record missing comparisons. Retain exact
profile query metadata, limits and sampling caveats, keeping inclusive and self values
distinct. Hand verified hotspots to the orchestrating session's
[Source Investigation](../source-investigation/SKILL.md), even when the supplied repository
is unrelated; the direct branch stays gcx-only.
3. **Record the manifest.** Follow the shared contract's schema and write the manifest as JSON
(also when only planning it) before responding, including for degraded, failed or
Assistant-disabled runs and when asked to skip it. Ad hoc or non-temporal requests use the
contract's JSON `null` task and window; an instant query uses its window form with start
and end both set to the instant. Account for
the Assistant branch and the direct gcx branch with their observed agent identities and
launch times, or nulls when never launched. Record which bundled skills the
direct branch used. In the report or response's Source snapshot, add a labelled
`Fan-out manifest: <absolute path>` reference. Re-read that section to verify placement.
When the requested output excludes prose or citations (for example values-only or JSON),
write that Source snapshot, citing the manifest by its absolute path, to a local audit file
beside the manifest instead. The reply then holds only the requested format or the bare
limitation. Before delivery, remove launch details, brief recaps, file locations, snapshots
and contract notes from values-only replies, including follow-ups.
Record an explicit user exclusion of profiling or source reads there as a scope limitation.
4. **Reconcile and verify.** Check that both agents used the same resolved inputs. Verify
material claims against direct evidence and report disagreements, gaps and limitations.
For an exact query, report its observed direct result; for a capped listing, disclose the
cap without claiming exhaustive coverage. Do not substitute Assistant prose for query data.
A successful connection is not query success; an empty result is not proof of health.
Apply the profiling coverage check before delivery. Explain alert recurrence separately
from its workload driver; unresolved driver or source evidence stays an explicit gap.
When retained profile stacks support a report finding, the reporting handoff gives the
stacks, labels, window and sampling metadata to [Report Authoring](../report-authoring/SKILL.md)
for its profiling evidence requirement; [Diagramming Style](../diagramming-style/SKILL.md)
owns their rendering. Source leads still go to Source Investigation.
## Cost controls and failures
Grafana Assistant incurs additional cost and is enabled by default. Honor a user instruction
or `Grafana Assistant: disabled` in task Resources without re-asking: send no Assistant prompt,
launch only the direct gcx agent, and record the disabled branch as a configured limitation,
not a failure. When disabled, only gcx and the relevant gcx agent skills are invoked for the
Grafana query work; no Assistant call is allowed indirectly through a bundled skill either.
Disabling Assistant never disables the requested queries. A chat request to send a prompt
"anyway" does not lift a Resources disable: send none and say the Resources line must change first.
If Assistant is unavailable or denied, retain the exact sanitized failure and continue the
direct branch when its reads remain available; never silently skip an enabled Assistant attempt
or switch context to make it succeed. Avoid duplicate starts and unnecessary billable retries.
If parallel delegation is unavailable, disclose and record the actual degradation under the
shared contract rather than silently substituting sequential execution. Resource changes,
acknowledgments, messages and publication require separate authorization.
## Common Rationalizations
- "This is only a dashboard listing, so one agent is enough." Every requested Grafana
resource read uses the pair unless Assistant or delegation is disabled or unavailable.
- "Wait for Assistant to choose a query." Direct reads start independently; exact user
expressions are preserved.
- "Start Assistant first, then decide whether the direct agent is worth it." Both launch
together; the direct branch never depends on Assistant's answer, even when asked to wait.
- "The bundled skill recommends Assistant, so the direct branch can prompt too." Only the
designated Assistant branch sends prompts; disabled means zero calls from every branch.
## Red Flags
- Non-alert queries bypassing the pair, or an inventory read turned into root-cause analysis.
- Differing expressions, contexts, filters, limits or applicable windows across briefs.
- Skill instruction display presented as execution, or recursive pairs for internal commands.
- An indirect Assistant call while disabled, or a completed run without its manifest.
## Verification
- Both branches launched before either was awaited, using identical resolved request and scope;
any degradation is recorded with actual branch identities under the shared contract.
- The direct agent loaded the relevant refreshed bundled skills and executed actual gcx reads;
printing skill instructions alone was not treated as execution.
- Exact expressions, resource filters, limits, output constraints and applicable windows survived
both briefs as literal input fields, without shared-block references; non-temporal reads
did not gain an invented time window.
- Assistant and delegated output stayed leads until the orchestrator verified material claims.
Direct observed results, empty results, denials and unavailable evidence remain distinct.
- A disabled Assistant sent zero prompts, including through direct-branch skill guidance;
the direct gcx branch continued and both branches remain accounted for in the manifest.
- No internal command recursively launched another pair; historical endpoint and parent
delegation restrictions remained intact.
- Root-cause investigations record profiling evidence or a concrete exclusion/unavailability
outcome; an alert-threshold explanation alone does not establish the CPU driver.
[README.md](README.md) documents the split and saved Assistant setting; no runtime read required.