Splunk observability dashboard builder

From chambear2809/splunk-cisco-skills · View interactive version

Splunk observability dashboard builder is an AI agent skill from the GitHub repository chambear2809/splunk-cisco-skills. Use when creating, planning, rendering, validating, or applying Splunk Observability Cloud dashboards from natural-language dashboard requests, JSON or YAML dashboard specs, SignalFlow chart definitions, or Observability dashboard-as-code workflows. Supports native classic Observability dashboard/ch

How to use this skill

Skill file

Splunk Observability Dashboard Builder

Prerequisites

| Tool or access | Purpose | Verify |

|---|---|---|

| Bash and Python 3 | Run bundled setup and validation helpers | bash --version && python3 --version |

| Required product/platform access | Inspect or configure the selected target | Complete the documented preflight |

| Credential files for live modes | Keep secrets out of chat | Verify paths only |

Workflow Overview

┌───────────┐   ┌───────────────┐   ┌───────────────┐   ┌─────────────────┐
│ Preflight │ → │ Render/review │ → │ Apply/handoff │ → │ Validate evidence │
└───────────┘   └───────────────┘   └───────────────┘   └─────────────────┘

When to Activate

dashboard requests, JSON or YAML dashboard specs, SignalFlow chart definitions, or Observability dashboard-as-

code.

Scope

Follow the documented read-only or render-first path whenever it is available.

This skill does not imply permission to mutate live systems. Require explicit

apply flags, protected credentials, and operator review for state changes.

Examples

Inspect the supported setup modes before selecting one:

bash skills/splunk-observability-dashboard-builder/scripts/setup.sh --help

Expected output: usage, supported modes, and required arguments are displayed

without changing the target environment.

Inspect validation modes before running completion checks:

bash skills/splunk-observability-dashboard-builder/scripts/validate.sh --help

Expected output: offline, live, and completion options are displayed when the

skill supports them; help exits without mutation.

Troubleshooting

| Issue | Cause | Resolution |

|---|---|---|

| Preflight fails | A required tool or access path is missing | Resolve it before rendering or applying |

| Rendered assets are incomplete | Required non-secret inputs are absent | Complete intake and render again |

| Apply is blocked | Review, credentials, or explicit acceptance is missing | Use the documented handoff |

| Validation is incomplete | Live evidence is unavailable | Record the gap and keep completion open |

Overview

Use this skill to turn a user's natural-language dashboard idea into a reviewed Splunk Observability Cloud dashboard specification, rendered API payloads, and optionally an applied native Observability dashboard.

The default path is classic-api: create custom dashboard groups, charts, and dashboards through the documented /v2/dashboardgroup, /v2/chart, and /v2/dashboard APIs. Modern dashboard features are documented as UI/advisory unless a public API is verified before use.

Safety Rules

Primary Workflow

  1. Interpret the request:
  1. Ground the dashboard in live metadata when possible:
  1. Write or update a JSON or YAML spec:
  1. Validate and render:

```bash

bash skills/splunk-observability-dashboard-builder/scripts/setup.sh \

--render \

--spec skills/splunk-observability-dashboard-builder/templates/dashboard.example.json \

--output-dir splunk-observability-dashboard-rendered

```

  1. Review the rendered plan:
  1. Apply only when explicitly requested:

```bash

bash skills/splunk-observability-dashboard-builder/scripts/setup.sh \

--apply \

--spec my-dashboard.json \

--realm us0 \

--token-file /tmp/splunk_o11y_api_token

```

> By default, --apply creates new dashboard groups, charts, and

> dashboards. Use --update-existing only with explicit existing object

> IDs in the spec; the apply client fetches the current objects before PUT

> so omitted writable fields are preserved where the API returns them.

>

> --dry-run is non-destructive and skips both the API calls and the

> readable-token-file requirement, so CI preview-only jobs do not need

> a real token path on disk. Live --apply retries 429/502/503/504

> automatically with exponential backoff (cap: 4 attempts; honors

> Retry-After when present).

  1. Clean up validation smoke dashboards when needed:

```bash

bash skills/splunk-observability-dashboard-builder/scripts/setup.sh \

--cleanup \

--apply-result splunk-observability-dashboard-rendered/apply-result.json

```

Cleanup is intentionally guarded to rendered plans whose dashboard group and

dashboard names start with codex_live_validation. Use the Observability UI

or API directly for non-validation dashboards.

Coverage Rules

Read references/coverage.md for the full product coverage matrix and references/classic-api.md for API field guidance.

YAML specs require PyYAML in the Python interpreter used by scripts/setup.sh. Install repo dependencies with python3 -m pip install -r requirements-agent.txt, or use JSON specs.

Spec Guidance

Update Existing Objects

For existing charts or dashboards, use --update-existing with fetch-modify-PUT semantics:

  1. Add dashboard.id and each chart's chart_id to the spec.
  2. Render and review the plan.
  3. Apply with --apply --update-existing.

Do not create partial PUT payloads. The Observability chart API can null or remove writable properties omitted from updates.

Scripts

Useful Commands

Validate a draft spec:

bash skills/splunk-observability-dashboard-builder/scripts/setup.sh \
  --validate \
  --spec skills/splunk-observability-dashboard-builder/templates/dashboard.example.json

Render without applying:

bash skills/splunk-observability-dashboard-builder/scripts/setup.sh \
  --render \
  --spec skills/splunk-observability-dashboard-builder/templates/dashboard.example.json \
  --output-dir splunk-observability-dashboard-rendered

Discover metrics before writing SignalFlow:

```bash

bash skills/splunk-observability-dashboard-builder/scripts/setup.sh \

--discover-metrics \

--query latency

```

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.