/obstudio:splunk-configurefrom Splunk Observability Studio
Generates Splunk Observability Cloud detector and dashboard Terraform from existing observability reports. Reads .observe/otel-audit.json, classifies metrics, outputs HCL with SignalFlow program_text, and writes local verification.
Ships in Splunk Observability Studio. 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; scripts run unread.
Read existing .observe/ observability reports, classify detector-ready metrics
into generic, incident-readiness, and GenAI categories, and generate Terraform
configuration for Splunk Observability Cloud detectors and dashboards. Generate
resources only from source-backed metrics that are verified or explicitly
accepted as source-only inputs. Report missing or unverified readiness coverage
as instrumentation prerequisites instead of inventing alerts from absent data.
Before writing outputs, read ../references/report-flow-contract.md and follow
the Splunk Configure Contract plus Splunk Configure Verification.
When a prompt mentions MTTD, faster incident detection, better alerts, easier incident debugging, or blast-radius visibility, generate detectors and dashboards that make customer impact, affected workflow, likely fault domain, blast radius, and release/config correlation faster to detect and localize.
When incident evidence mentions missed, flapping, auto-resolved, or no-data
alerts, treat that as detector reliability evidence. Do not ask app instrumentation
to emit alert lifecycle metrics unless the app owns those events; audit the
detector, dashboard, data quality, and alert coverage behavior in
alert-coverage-audit output.
When the audit report contains genai_readiness[], GenAI findings, or source
evidence that maps signals to an LLM/GenAI workflow, classify available GenAI
metrics first and report missing or unverified GenAI signals as instrumentation
prerequisites instead of inventing detectors from absent data.
$otel-audit to generate .observe/otel-audit.json$otel-instrument and $otel-verify when the user wants detectors for
newly implemented signalsgen_ai.*
metrics, provider/model/tool/retrieval spans, memory/context, evaluation
quality, token pressure, content governance, cost, fallback, model/config
readiness, or workflow fanout gapsWhen NOT to use: If no audit report exists yet, instruct the user to run
$otel-audit first.
Use the default detector/dashboard generation path unless the user asks for a specific mode. Modes share the same observability reports and should be implemented as report sections or Terraform output, not as separate skills.
| Mode | Trigger | Output |
|---|---|---|
generate | Generate detectors/dashboards from audit metrics | .observe/terraform/, .observe/detectors.md, .observe/dashboards.md |
alert-coverage-audit | Audit existing or desired alerts/dashboards for incident detection/localization gaps | Coverage matrix comparing readiness areas to detectors/dashboards, including detector reliability evidence for missed, flapping, auto-resolved, or no-data alerts; missing app-owned signals become instrumentation prerequisites |
impact-classify | Distinguish app down from degraded API, workflow, auth, ingest, or workflow-specific impact | Impact detectors/dashboard sections grouped by workflow, outcome, region/environment, dependency, and release context |
blast-radius | Detect region-wide or multi-workflow incidents earlier | Region/environment/workflow rollups and dashboards that show single-service, single-region, multi-region, or all-region blast radius |
If existing Splunk detectors or dashboards are not available in the repository
or through an approved API/source, do not claim they were audited. Generate the
desired-state coverage matrix and clearly label it as based on
.observe/otel-audit.json and local Terraform/config evidence only.
Look for .observe/otel-audit.json in the repository root.
No audit report found at
.observe/otel-audit.json. Please run$otel-auditfirst to generate the observability coverage report.
Also look for optional downstream reports:
.observe/otel-instrumentation.md for implemented signal changes and
detector handoff..observe/otel-verify.md for emitted metric proof, OTLP evidence, and
unverified rows.Extract from .observe/otel-audit.json:
Service metadata from meta.service_name, meta.language, and
meta.framework.
Existing metrics from current_instrumentation.metrics.
Findings from findings.
verification_scenarios.expected_telemetry only to describe missing desired signals; do not
generate detectors from desired telemetry that is not already present or
proven.Incident readiness from current_instrumentation.incident_readiness.
Implemented signal changes from .observe/otel-instrumentation.md when
present:
Signals ChangedAudit Gap ClosureVerification Handoff / ResultsDetector Handoff / Results
Use this to identify newly implemented metrics and remaining prerequisites.Verified signal proof from .observe/otel-verify.md when present:
Tested And WorkingNot Working Or Not ProvenWorking, emitted
datapoints are proven with the expected unit/dimensions, and source evidence
exists, unless the user explicitly accepts source-only detector generation.
Do not infer proof from an aggregate coverage count or from a similarly
named metric.GenAI Readiness from canonical genai_readiness[], GenAI findings, and
source evidence when present:
GenAI Readiness Closure from the bound instrumentation and verification JSON overlays when present:
Detector reliability evidence from gaps, readiness sections, local alert config, or incident evidence:
alert-coverage-audit output. Only turn them into
instrumentation prerequisites when the missing data is app-owned and absent.If the audit has no metrics and downstream reports contain no implemented or verified metrics, continue processing gaps and readiness sections. If none are present, stop and respond:
The audit report contains no metrics. Detectors require metric data. Run
$otel-instrumentto add instrumentation, then re-run$otel-audit.
If there are no detector-ready metrics but gap, incident-readiness, or GenAI
readiness sections exist, do not generate detector or dashboard resources.
Create .observe/detectors.md and .observe/splunk-configure-verify.md with the
applicable instrumentation prerequisites and alert coverage matrix. Create
.observe/dashboards.md only when the user requested a desired-state dashboard
specification. Recommend $otel-instrument for missing signals and
$otel-verify for implemented signals that lack proof.
When candidate metrics exist, load references/detector-classification.md and
apply the classification rules to each metric from Step 2.
Before classifying individual metrics, apply Route-Level De-duplication from
references/detector-classification.md: group candidate metrics that share
the same service.name and route/operation dimension, and merge into that
histogram's route group instead of classifying as a second, independently
tracked metric: an error/status counter that only restates an outcome
already carried as an attribute on a same-route duration histogram, or a
throughput counter whose count is derivable from that histogram's own
observation count for the route (no matching histogram attribute is
required for the throughput case). One route should produce at most one
Latency, one Error, and one Throughput detector, each reading dimensions
off the smallest set of metrics the route actually emits -- not one
detector per candidate metric.
Only classify metrics that are present in source evidence and either verified
by .observe/otel-verify.md or explicitly accepted by the user as source-only
detector inputs. Put unverified metrics in Skipped Metrics with the reason
unverified metric emission and the next step $otel-verify.
Assign each accepted metric to exactly one category. Apply GenAI-specific rules
first when canonical genai_readiness[], GenAI findings, or source evidence
maps the signal to an LLM/GenAI workflow, or when metric names or dimensions
explicitly indicate LLM/GenAI ownership: gen_ai.*, LLM, inference,
embedding, model provider/deployment, agent, tool/function calling, retrieval,
prompt/completion/context token usage, fallback, or model/config readiness. Do
not classify generic model, workflow, tool, config, canary, token,
session, chat, memory, context, evaluation, evaluator, quality,
cost, or billing metrics as GenAI unless audit evidence shows they belong to
a GenAI/LLM path.
After GenAI rules, apply incident-readiness categories before generic latency, error, throughput, or saturation so customer-impact, dependency, freshness, backpressure, auth/edge, capacity, and release/config signals do not collapse into generic RED buckets.
gen_ai.client.operation.duration, model/provider
request duration, workflow duration, streaming first-chunk/time-per-chunkgen_ai.client.token.usage, prompt/context/token
size, cache read/create tokens, input/output token histogramsexecute_tool success/error/latency, stable tool name,
tool failure class, tool-call count per workflowgen_ai.evaluation.result derived or
app-owned score distribution, pass/fail or violation count, evaluator
error/timeout/no-data, sample rate/count, and freshnessservice.version, deployment.environment.name,
cloud.region, cloud.platform, container.image.name,
container.image.tags, artifact version, config/canary/rollout metadata, or
source-backed custom aliases used as dashboard filters and detector
dimensions, not as standalone alert metricsFor every findings[] entry that is still missing a metric, add an entry to the
generated report's "Instrumentation Prerequisites" section. Do not generate a
detector for a missing or unverified signal. Recommend $otel-instrument with
the specific coverage area when instrumentation is absent, $otel-verify when
implementation exists without emission proof, or name the external owner when
the signal belongs to platform/provider telemetry.
For partial closure, generate detectors only for implemented or proven signals.
Do not imply complete coverage from a partially closed audit gap. If
instrumentation or verification overlays include remaining or equivalent
remaining signal fields, list those signals under Instrumentation Prerequisites and avoid detector names or dashboard headings that claim the
whole readiness area is covered.
For every incident-readiness area with status missing or partial, add a
prerequisite unless equivalent metrics are source-backed and proven. Do not
generate detectors from desired impact, dependency, freshness, backpressure,
auth/edge, capacity, or release/config rows unless accepted metric evidence
contains the corresponding signal.
For every genai_readiness[] row or GenAI finding that is still missing or has
unverified metric, trace attribute, span event, or owner-mapped external signal
evidence, add an entry to the generated report's "GenAI Instrumentation
Prerequisites" section. Do not generate a detector for a missing or unverified
signal. Recommend $otel-instrument with the specific human-readable GenAI
surface when instrumentation is absent, and $otel-verify when instrumentation
exists but emitted metric proof is missing.
Create the output directory .observe/terraform/ if it does not exist.
Generate detector Terraform using references/terraform-templates.md. Also
generate dashboard Terraform or, when a dashboard panel cannot be expressed
confidently from available metrics, a dashboard specification in
.observe/dashboards.md.
Dashboard Terraform should use signalfx_dashboard_group,
signalfx_dashboard, and chart resources such as signalfx_time_chart,
signalfx_single_value_chart, signalfx_table_chart, or signalfx_list_chart
when enough metric evidence exists.
.observe/terraform/detectors.tfFor each detector-eligible classified metric, emit a signalfx_detector
resource block. Do not emit standalone detectors for release-context-only
metadata or categories that the classification reference marks as prerequisite
or dashboard evidence only. Do not emit a detector for a counter that
Route-Level De-duplication merged into a histogram's route group -- that
outcome is already covered by an Error detector reading the same histogram
filtered to its own outcome attribute, and/or a Throughput detector reading
the same histogram's observation count for the route with no outcome filter.
Two detectors legitimately reading the same metric name with different
aggregations or filters (for example a Latency detector with no filter, an
Error detector filtered to error.type, and a Throughput detector with only
the route filter) are not duplicates and are all expected.
resource "signalfx_detector" "<category>_<sanitized_metric_name>" {
name = "${var.service_name} <Category> - <metric_name>"
description = "Detects <category> anomalies for <metric_name>"
program_text = <<-EOF
<SignalFlow program from template>
EOF
rule {
description = "<Category> threshold breached"
severity = "<severity from template>"
detect_label = "<label from template>"
notifications = [var.notification_channel]
}
}
Sanitize metric names for HCL identifiers: replace dots and hyphens with underscores, strip leading digits.
.observe/terraform/variables.tfvariable "realm" {
description = "Splunk Observability Cloud realm"
type = string
}
variable "api_token" {
description = "Splunk Observability Cloud API token"
type = string
sensitive = true
}
variable "service_name" {
description = "Service name for detector naming"
type = string
default = "<service-name from report>"
}
variable "notification_channel" {
description = "Notification target for detector alerts"
type = string
}
# Per-detector threshold overrides
<one variable block per detector with its default threshold>
.observe/terraform/dashboards.tfGenerate a service dashboard with sections for every detector category that has metrics:
| Section | Charts |
|---|---|
| API workflows | request rate, p99 latency, 5xx/error rate by route/status |
| External dependencies | dependency latency, error/timeout/retry/rate-limit rate, circuit-breaker state, endpoint health, target health, availability, and unhealthy target count when present |
| Data freshness | newest event age, ingest lag, processing lag, accepted/dropped by reason |
| Queue/backpressure | queue depth, consumer lag, oldest message age, rebalance count, paused consumers |
| Customer impact | user workflow duration, success/error/degraded/timeout by workflow |
| Impact classification | app-down vs degraded workflow counts, synthetic probe/client telemetry/API/freshness/dependency correlation, impact by region/environment |
| Auth/edge workflows | auth success/error/latency, identity provider failures, domain-routing/DNS/TLS/gateway failures |
| Capacity saturation | memory/CPU/disk/runtime/thread-pool/concurrency/quota/throttle/restart, desired-vs-healthy, startup/readiness/healthcheck failure, and traffic target health where metrics exist |
| Blast radius | impacted workflows and regions over time, grouped by service, deployment region, environment, platform, release, and dependency |
| Release context | dashboard filters or event overlays for service version, deployment environment/region/platform, container image tag, artifact version, config version, and canary/rollout dimensions |
Every dashboard must include a service.name filter. Include
deployment.environment.name, cloud.region, cloud.platform,
service.version, container.image.name, container.image.tags, artifact
version, config version, and rollout/canary filters only when verification
evidence or an explicitly accepted source proves those dimensions exist and
are low-cardinality. Recognize existing deployment.environment,
deployment.region, deployment.platform, and container.image.tag
dimensions, but do not generate or require those custom aliases when a
standard attribute is available. Always use the exact attribute name proven by
the audit or metric metadata; do not create duplicate filters.
Dashboard variables that apply globally across multiple charts must use
apply_if_exist = true. This is required for optional dimensions such as
environment, region, namespace, platform, version, image tag, config version,
rollout, dependency, and custom realm, because not every chart metric has every
dimension. Never generate wildcard variables for optional
dimensions with apply_if_exist = false; they can silently filter all data out
of charts whose metric lacks that dimension.
Keep the Splunk Observability Cloud API realm variable separate from service
telemetry dimensions. Do not use var.realm as a SignalFlow filter for
sfx_realm, cloud.region, deployment.region, or any application/runtime
dimension unless live metric metadata or the audit proves that exact dimension
and value. Prefer dashboard variables for dimensions such as environment,
region, namespace, platform, version, image tag, and custom realm so users can
select the active stream. If a chart needs a fixed dimension value, the value
must come from proven metric metadata or an explicit user choice, not from the
provider/API realm.
Before writing chart program_text, verify every filter and group-by dimension
against audit evidence, local metric metadata, or approved Splunk API metadata.
If a dimension is not present on the target metric, omit the filter/group-by and
document the missing dimension in .observe/dashboards.md. Never group by a
dimension solely because instrumentation code intended to emit it.
Only generate a dashboard panel for a metric name that is source-backed and
either Working in .observe/otel-verify.md or explicitly accepted by the user
as a source-only or approved external input. If using a provider-derived,
precomputed, or transformed metric name instead of the audited OTel name,
record its live metadata provenance and acceptance in .observe/dashboards.md.
Live metric metadata alone is not enough to claim source-backed coverage when
the repository does not contain the emitter. If the metric is found only in
build output, generated artifacts, target/, build/, .class, jar, coverage,
or stale runtime files, treat it as stale/unowned evidence: do not generate the
panel by default, and list it as a verification issue or cleanup prerequisite.
Use source files, checked-in IaC/config, audited instrumentation evidence, or an
explicit user-approved external source as provenance.
Do not combine mixed-unit signals on one chart. Split boolean readiness,
availability, ratios/percentages, bytes, counts, rates, cumulative counters,
and durations into separate panels unless the dashboard type has explicit
per-series units or axes and the report documents the unit handling. For
example, database readiness and connection-pool utilization should be separate
panels, not one shared-axis time chart.
For runtime capacity, generate separate dashboard panels and detectors for each
source-backed resource class instead of substituting adjacent runtime metrics.
When source-backed CPU utilization metrics such as process.cpu.utilization,
process.runtime.*.cpu.utilization, jvm.cpu.recent_utilization, or a
runtime-specific equivalent are present, generate a CPU utilization panel and
a CPU saturation detector. Memory/heap usage, thread/goroutine/worker count, GC
pressure, concurrency, disk, and quota signals belong in separate panels with
their own units. Do not use thread count, heap usage, or GC metrics as a CPU
proxy. If only cumulative CPU time is available, chart it as a diagnostic rate
with rollup='rate' or equivalent and list normalized CPU utilization as a
missing signal before creating a CPU saturation detector.
For pre-aggregated percentile metrics, including names such as .p99, .p95,
p50, quantile, or metrics marked as already-quantized, do not average
series for the headline chart. Use max() for current worst-case values and
max(by=[...]) for breakdowns. Use .percentile(pct=99) only for raw
duration/histogram distributions. Match units to metric names and metadata:
convert nanoseconds to seconds or milliseconds, convert ratios to percent only
when the metric is a ratio, and label bytes/counts/rates honestly.
For cumulative counters or cumulative timers, including names that end in
.total, .count, .time, or metrics whose metadata shows cumulative
temporality, do not chart the raw cumulative value as current health. Use
rollup='rate', a delta/rate transform, or a true duration histogram/summary.
If neither is available, label the chart as cumulative and mark it unverified
instead of presenting it as a latency, utilization, or health-rate panel.
After generating dashboard Terraform, run a value sanity check when a Splunk API
token or local metric query path is available. Execute each chart's SignalFlow
over a recent window with known traffic or a representative historical window
and confirm it returns non-empty series with plausible magnitude and expected
dimensions. If live verification is unavailable, mark the dashboard report as
unverified and call out the exact metric names, filters, units, and group-bys
that still need validation before terraform apply. When validating in the UI
after an update, reload the dashboard URL without a stale configId parameter
or reset saved dashboard overrides so the browser uses the updated dashboard
definition.
.observe/terraform/terraform.tfvars.exampleGenerate a .tfvars.example file the user copies and fills in to apply:
realm = "" # Splunk Observability Cloud realm
api_token = "" # Splunk O11y API token (org-level, detector write)
service_name = "<service-name from report>"
notification_channel = "" # e.g. "Email,[email protected]" or PagerDuty routing key
Do NOT include per-detector threshold variables in this file -- they already have
sensible defaults in variables.tf. Include realm, api_token, and
notification_channel (which have no defaults) plus service_name for
convenience (it has a default from the report but users often override it).
Always create .observe/detectors.md. Create .observe/dashboards.md when
dashboard resources or a desired-state dashboard specification are generated.
The detector report owns the configure result, every detector's classification
rationale, skipped metrics, instrumentation prerequisites, and alert coverage.
The dashboard document is a subordinate inventory of panels, filters,
dimensions, units, and evidence; it must not define a separate result or
duplicate the report-flow contract. .observe/splunk-configure-verify.md
remains the authoritative proof report.
Use the following structure:
# Detectors Report: <service-name>
**Result:** Pass | Partial | Fail | Blocked
**Language:** <lang> | **Framework:** <framework> | **Date:** <YYYY-MM-DD>
**Source audit:** `.observe/otel-audit.json`
**Source instrumentation:** `.observe/otel-instrumentation.md` | not found
**Source verification:** `.observe/otel-verify.md` | not found
**Output:** `.observe/terraform/`
## Executive Summary
- <detectors generated count and most important covered category>
- <metrics skipped because missing/unverified>
- <configuration validation result>
- <next action>
## Flow
`audit -> instrument -> verify -> configure -> configure-verify`
## Summary
| Category | Count | Severity | Detection Method |
|------------|-------|----------|------------------|
| Latency | N | Warning | P99 static threshold |
| Error | N | Critical | Sudden change (mean + stddev) |
| Saturation | N | Warning | Static threshold |
| Throughput | N | Major | Sudden change (mean + stddev) |
| Freshness | N | Critical | Static lag/age threshold |
| Backpressure | N | Major | Static lag/depth threshold |
| Dependency | N | Major | Latency/error/timeout threshold |
| Customer Impact | N | Critical | Workflow success/error/latency threshold |
| Impact Classification | N | Critical | App-down/degraded workflow rollup |
| Auth/Edge | N | Critical | Login/edge success/error/latency threshold |
| Capacity Saturation | N | Major | Resource/quota/throttle/restart threshold |
| GenAI Latency | N | Major | P99 or sudden change |
| GenAI Token Pressure | N | Major | Token/context threshold or baseline |
| GenAI Provider | N | Critical | Error/timeout/rate-limit/fallback |
| GenAI Tool | N | Major | Tool error/latency/fanout |
| GenAI Model Config | N | Critical | Readiness/mismatch failure |
| GenAI Workflow Fanout | N | Major | LLM/tool call fanout |
| GenAI Retrieval | N | Major | Retrieval error/latency/staleness |
| GenAI Memory Context | N | Major | Memory/context latency, error, freshness, or permission failure |
| GenAI Evaluation Quality | N | Major | Evaluation score, violation, error, no-data, or freshness |
| GenAI Content Governance | N | Critical | Unsafe capture, redaction, truncation, or policy failure |
| GenAI Cost | N | Major | Cost spike, budget/quota pressure, or billing freshness |
| **Total** | **N** | | |
## Latency Detectors
P99 percentile against a static threshold. Default: **1.0s**.
| # | Detector | Metric | Source | Threshold Variable | Default |
|---|----------|--------|--------|-------------------|---------|
| 1 | `latency_<id>` | `<metric>` | <source> | `latency_<id>_threshold` | 1.0 |
## Error Detectors
Sudden-change detection using `against_recent.detector_mean_std` (above baseline).
Default: **3.0 stddev**, 5m current window vs 1h history.
| # | Detector | Metric | Source | Threshold Variable | Default |
|---|----------|--------|--------|-------------------|---------|
| 1 | `error_<id>` | `<metric>` | <source> | `error_<id>_stddev` | 3.0 |
## Saturation Detectors
Gauge value against a static threshold. Default: **85.0**.
| # | Detector | Metric | Source | Threshold Variable | Default |
|---|----------|--------|--------|-------------------|---------|
| 1 | `saturation_<id>` | `<metric>` | <source> | `saturation_<id>_threshold` | 85.0 |
## Throughput Detectors
Sudden-change detection using `against_recent.detector_mean_std` (out-of-band).
Default: **3.0 stddev**, 5m current window vs 1h history.
| # | Detector | Metric | Source | Threshold Variable | Default |
|---|----------|--------|--------|-------------------|---------|
| 1 | `throughput_<id>` | `<metric>` | <source> | `throughput_<id>_stddev` | 3.0 |
## Skipped Metrics
| Metric | Reason |
|--------|--------|
| `<metric>` | <why it was not classified> |
## Instrumentation Prerequisites
| Area | Audit Status | Missing Signal | Why No Detector Was Generated | Next Step |
|------|--------------|----------------|-------------------------------|-----------|
| Data freshness | missing | newest event age, ingest lag, dropped records by reason | No accepted, proven metric exists in the source reports | Run `$otel-instrument` to add data freshness signals |
| Dependency health | missing | endpoint health, target health, availability, timeout/rate-limit count, or unhealthy target count | No accepted, proven dependency health metric exists | Run `$otel-instrument` or configure platform telemetry for dependency health signals |
| Capacity health | missing | disk saturation, desired-vs-healthy, startup/readiness/healthcheck failure, restart count, or traffic target health | No accepted, proven runtime/platform metric exists | Run `$otel-instrument` or add platform telemetry before creating detectors |
## Alert Coverage Matrix
Use this section for `alert-coverage-audit` mode and include it in the detector
report when readiness coverage is partial or missing.
| Incident Pattern | Existing/Generated Coverage | Missing Signal or Dashboard | Detection/Localization Risk | Next Step |
|---|---|---|---|---|
| Primary workflow unavailable | {detector/dashboard or "none found"} | {workflow impact metric, dependency metric, or synthetic/client telemetry signal} | {why detection/debugging remains slow} | {configure detector or instrument signal} |
| Ingest lag/drops | {detector/dashboard or "none found"} | {freshness/drop/lag signal} | {risk} | {next step} |
| Auth/domain-routing/edge | {detector/dashboard or "none found"} | {auth/edge workflow signal} | {risk} | {next step} |
| Critical business workflow | {detector/dashboard or "none found"} | {workflow outcome signal} | {risk} | {next step} |
| Multi-region blast radius | {detector/dashboard or "none found"} | {region/environment/workflow rollup} | {risk} | {next step} |
| Dependency endpoint health | {detector/dashboard or "none found"} | {endpoint health, target health, unavailable, timeout, rate-limit, or unhealthy target signal} | {risk} | {next step} |
| Capacity saturation | {detector/dashboard or "none found"} | {CPU/memory/disk/quota/throttle/concurrency/restart/readiness/desired-vs-healthy/platform signal} | {risk} | {next step} |
| Release/config correlation | {dashboard filter/event overlay or "none found"} | {service.version, deployment.environment.name, cloud.region, cloud.platform, container.image.name/tags, artifact version, config version, or rollout/canary id} | {risk} | {next step} |
| Detector reliability | {detector/dashboard evidence or "none found"} | {missing no-data handling, anti-flap tuning, auto-resolve guard, data-quality signal, or alert route evidence} | {risk} | {tune detector, fix alert coverage, or instrument app-owned missing signal} |
## GenAI Instrumentation Prerequisites
Include this section when canonical `genai_readiness[]`, GenAI findings, or
bound instrumentation/verification overlays show that any required GenAI signal
is missing, partial, or not yet proven.
| Surface | Audit Status | Missing Signal | Why No Detector Was Generated | Next Step |
|---------|--------------|----------------|-------------------------------|-----------|
| Token/context pressure | partial | truncation rate, token-limit errors, prompt/tool schema size, LLM-call fanout | Matching metrics are absent or only token usage exists | Run `$otel-instrument` to close the named GenAI signals or owner-map them |
## Classification Rules Applied
<include the decision flowchart from references/detector-classification.md>
## Terraform Output
| File | Contents |
|------|----------|
| `detectors.tf` | N `signalfx_detector` resources with inline SignalFlow |
| `dashboards.tf` | dashboard group, dashboard, and panel resources for classified metrics when metric evidence exists |
| `variables.tf` | 4 required + N threshold variables |
| `terraform.tfvars.example` | Template for required variables |
## Next Steps
1. Review configure verification and resolve any unproven inputs
2. Copy and fill in credentials
3. Review threshold defaults and run `terraform init` plus `terraform plan`
4. Use `$splunk-detector-publish` to publish confirmed detector gaps, or apply reviewed
Terraform when Terraform will own detectors and dashboards
5. Tune thresholds based on production baselines
---
*Generated by splunk-configure on <YYYY-MM-DD>*
Always create .observe/splunk-configure-verify.md for a completed configure
run. Follow
../references/report-flow-contract.md Splunk Configure Verification.
Validation requirements:
.observe/terraform/detectors.tf.observe/terraform/variables.tf.observe/terraform/terraform.tfvars.example.observe/terraform/.gitignore excluding .terraform/, local state, and
terraform.tfvars.observe/detectors.md.observe/terraform/dashboards.tf and .observe/dashboards.md when
dashboard resources were generatedterraform version, then, if Terraform is
installed, run only the read-only subcommands below. Never run
terraform apply, terraform destroy, or any other terraform subcommand:
applying or destroying infrastructure is the user's or
$splunk-detector-publish's responsibility, never this skill's.
terraform fmt -check -recursive .observe/terraformterraform -chdir=.observe/terraform init -backend=false -input=falseterraform -chdir=.observe/terraform validate -json.terraform.lock.hclTF_CLI_CONFIG_FILE=/dev/null and
record the bypass. Otherwise mark native validation Blocked.terraform -chdir=.observe/terraform plan -refresh=false -input=false
without saving or applying a plan. The SignalFx provider sends each
program_text to /v2/detector/validate, so this is the authoritative
SignalFlow compile test.Pass requires both local validation and an authenticated plan that
accepts every generated detector. When local validation passes but no
approved token is available, report Partial and name remote SignalFlow
compilation as the one unproven check. Applying resources is not required
for configure verification.Pass also requires the value sanity check
from Step 4 for every chart. If live chart evaluation is unavailable,
report Partial and name dashboard values, dimensions, and units as
unproven.Skipped or
Blocked with the missing prerequisite. Do not mark it Pass.service.namedetectors.tf is declared in
variables.tfvar.api_token and a realm-derived api_url; do not
hard-code either valuedetect_label matches a published detect label in
program_textdata(...) is a subset of the
Working metric rows in .observe/otel-verify.md, unless a source-only
exception was explicitly accepted and recorded$otel-instrument for missing instrumentation and
$otel-verify for missing emission proofAfter the checks above, always run the bundled dependency-free validator for runs that generated Terraform:
python3 <splunk-configure-skill-dir>/scripts/validate_configure_output.py \
--terraform-dir .observe/terraform \
--detectors-report .observe/detectors.md \
--configure-verify-report .observe/splunk-configure-verify.md \
--verify-report .observe/otel-verify.md
For every metric the user explicitly accepted as source-only, append
--allow-source-only-metric <exact-metric-name>. Never use that option merely
because .observe/otel-verify.md is absent.
Treat validator failure as configure failure and repair the generated files.
The script validates file presence, HCL resource/variable references,
provider credential/endpoint wiring, SignalFlow labels and service filters,
sensitive identifiers, local-state ignore rules, reader-first heading order,
matching configure statuses, and exact metric reconciliation against
reader-first Working metric rows. .observe/detectors.md must inherit the
result from .observe/splunk-configure-verify.md; the plan and its verification
must never disagree. The script does not replace terraform validate; run both
when Terraform is available. The bundled script validates detector resources,
not dashboard resources; use the explicit dashboard evidence checks above and
do not attribute dashboard proof to the script.
Use this report shape:
# Splunk Configure Verification: <service-name>
**Result:** Pass | Partial | Fail | Blocked
**Source:** `.observe/detectors.md`
**Terraform:** `.observe/terraform/`
## Executive Summary
<1-2 sentence overall verdict>
## What Was Added
| Resource Label | Metric | Detect Condition | Severity |
|----------------|--------|-----------------|----------|
| latency_<id> | <metric_name> | P99 > threshold | Warning |
| error_<id> | <metric_name> | rate anomaly (mean+stddev) | Critical |
| saturation_<id> | <metric_name> | mean > threshold | Warning |
| throughput_<id> | <metric_name> | rate anomaly (out-of-band) | Major |
## Tested And Working
## Not Yet Proven
## Validation Notes
## Next Steps
For a prerequisites-only run with no detector-ready metrics, still write the
configure verification report, record that Terraform validation was not run,
and use Blocked when no meaningful output validation can execute. Do not run
the file validator against intentionally absent Terraform files and do not mark
the run Pass.
After generating all files and configure verification, present a summary:
## Detectors Generated
| Category | Count |
|-------------|-------|
| Latency | N |
| Error | N |
| Saturation | N |
| Throughput | N |
| Freshness | N |
| Backpressure | N |
| Dependency | N |
| Customer Impact | N |
| Impact Classification | N |
| Auth/Edge | N |
| Capacity Saturation | N |
| GenAI Latency | N |
| GenAI Token Pressure | N |
| GenAI Provider | N |
| GenAI Tool | N |
| GenAI Model Config | N |
| GenAI Workflow Fanout | N |
| GenAI Retrieval | N |
| GenAI Memory Context | N |
| GenAI Evaluation Quality | N |
| GenAI Content Governance | N |
| GenAI Cost | N |
**Output:** `.observe/terraform/`
Files:
- `.observe/terraform/detectors.tf` — N detector resources
- `.observe/terraform/dashboards.tf` — service dashboard and panel resources when accepted metric evidence exists
- `.observe/terraform/variables.tf` — realm, api_token, service_name, notification_channel + N threshold variables
- `.observe/terraform/terraform.tfvars.example` — copy to `terraform.tfvars`, fill in credentials
- `.observe/terraform/.gitignore` — excludes provider cache, local state, and credential tfvars
- `.observe/terraform/.terraform.lock.hcl` — provider selection produced by successful init
- `.observe/detectors.md` — full detectors report with classification details
- `.observe/dashboards.md` — dashboard panels, filters, evidence, and readiness prerequisites
- `.observe/splunk-configure-verify.md` — Terraform/SignalFlow/coverage/safety validation
**Configure verification:** Pass | Partial | Fail | Blocked
Next:
1. `cp .observe/terraform/terraform.tfvars.example .observe/terraform/terraform.tfvars`
2. Fill in `realm`, `api_token`, and `notification_channel` in `terraform.tfvars`
3. `cd .observe/terraform && terraform init && terraform plan`
4. Use `$splunk-detector-publish` to compare and publish only confirmed detector gaps, or
apply the reviewed Terraform when the user chooses Terraform-managed
detectors and dashboards
terraform {
required_providers {
signalfx = {
source = "splunk-terraform/signalfx"
version = "~> 9.0"
}
}
}
provider "signalfx" {
auth_token = var.api_token
api_url = "https://api.${var.realm}.signalfx.com"
}
resource "signalfx_detector" "latency_http_server_request_duration" {
name = "${var.service_name} Latency - http.server.request.duration"
description = "Detects high p99 latency for http.server.request.duration"
program_text = <<-EOF
A = data('http.server.request.duration', filter=filter('service.name', '${var.service_name}')).percentile(pct=99).publish(label='P99 Latency')
detect(when(A > threshold(${var.latency_http_server_request_duration_threshold}))).publish('P99 Latency Too High')
EOF
rule {
description = "P99 latency exceeds threshold"
severity = "Warning"
detect_label = "P99 Latency Too High"
notifications = [var.notification_channel]
}
}
variable "realm" {
description = "Splunk Observability Cloud realm"
type = string
}
variable "api_token" {
description = "Splunk Observability Cloud API token"
type = string
sensitive = true
}
variable "service_name" {
description = "Service name for detector naming"
type = string
default = "my-service"
}
variable "notification_channel" {
description = "Notification target for detector alerts"
type = string
}
variable "latency_http_server_request_duration_threshold" {
description = "P99 latency threshold in seconds for http.server.request.duration"
type = number
default = 1.0
}
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
splunk-observability, terraform, detectors, dashboards, signalflow, alert-coverage
Generated from the plugin's indexed repository (signalfx/obstudio) — no native marketplace selected
npx claudepluginhub p/signalfx-obstudio-plugins-obstudio13 skills in this plugin
/connect-splunk-observability-cloudOpen the already-running local Splunk Observability Studio Cloud tab so a user can connect an existing or newly ready Splunk Observability Cloud organization by entering its URL and access token outside agent context. Use when a user asks to connect, configure, or provide credentials for Splunk Observability Cloud, Splunk O11y, or SignalFx outside the Splunk Observability Studio IDE extension. Do not use this skill to create a Free Edition account./create-splunk-free-accountSubmit a consent-gated Splunk Observability Cloud Free Edition signup intake in a detected or user-selected supported signup region through Splunk Observability Studio's browserless MCP backend. Use when a user asks to create, provision, register, start, or sign up for a free Splunk Observability Cloud, Splunk O11y, or SignalFx account or organization, or explicitly asks to submit another intake with the same details or email, including requests to avoid the Splunk web form./observer-openOpen the local Splunk Observability Studio at http://127.0.0.1:17900/ using a host-provided browser when available, with a safe clickable-URL fallback./observer-restartExplain how to refresh or restart the local Splunk Observability Studio when the UI is stale, the MCP endpoint is unavailable, or the bootstrap state needs to be refreshed./observer-statusReport whether the local Splunk Observability Studio is installed, bootstrapped, and reachable, including the MCP endpoint and browser URL./observer-stopExplain how to stop or disconnect from a local Splunk Observability Studio when the user intentionally wants to shut down the managed runtime or leave a shared Splunk Observability Studio alone.Other plugins' skills for the same job