Splunk observability thousandeyes integration

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

Splunk observability thousandeyes integration is an AI agent skill from the GitHub repository chambear2809/splunk-cisco-skills. Use when the user asks to wire ThousandEyes telemetry into Splunk Observability Cloud, configure Integrations 2.0 APM trace linking, manage TE tests/alert rules/templates for an O11y integration, or produce the per-test-type O11y dashboards. Render and (optionally) apply a guarded ThousandEyes -> Sp

How to use this skill

Skill file

Splunk Observability ThousandEyes Integration

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

TE tests/alert rules/templates for an O11y integration, or produce the per-test-type O11y dashboards.

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-thousandeyes-integration/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-thousandeyes-integration/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 |

This is a generalized TE -> Splunk Observability Cloud skill, NOT tied to any one demo. A private RTSP/UDP/RTP demo repo was used during initial development to validate the TE Streams API + Integrations 2.0 mechanics; that demo's test taxonomy is demo-specific and is NOT carried into this skill. Source of truth: the public ThousandEyes for OpenTelemetry Data Model v2 (docs.thousandeyes.com/.../opentelemetry/data-model/data-model-v2/metrics) and the TE API v7 schemas (developer.cisco.com/docs/thousandeyes/).

Three TE-side surfaces

  1. Integration 1.0 OpenTelemetry stream — POST /v7/streams with type=opentelemetry, signal=metric|trace|log (default metric), endpointType=http|grpc, streamEndpointUrl=https://ingest.<realm>.signalfx.com/v2/datapoint/otlp, customHeaders.X-SF-Token, dataModelVersion=v2, testMatch[], optional filters.testTypes[].
  2. Integrations 2.0 Splunk Observability APM connector — generic connector targeting https://api.<realm>.signalfx.com with X-SF-Token; assigned to the splunk-observability-apm operation for trace linking.
  3. TE assets — render across the canonical taxonomy, with apply limited to operations that have ID-based readback:

Handlebars-only credential placeholders. Deployment remains a TE UI

handoff because template-resource readback does not prove deploy

completion and cannot make an interrupted deploy POST retry-safe.

Out of scope (handed off)

For the Splunk TA or any dashboard-companion handoff, follow the shared TA completion gate: package installation alone is not completion; validate ingest and dashboard visibility, macro alignment, and data, or record evidence that no pre-built dashboard ships.

Safety Rules

one non-empty UTF-8 line and must be chmod 600. Live validators open them

with no-follow descriptor checks. There is no permission bypass.

Primary Workflow

  1. Collect non-secret values: realm (us0/us1/eu0/...), account group ID, list of TE test IDs or test types to include, optional alert rules / labels / tags / dashboards / templates.
  1. Create or update a YAML/JSON spec from template.example. Spec supports test selection via:
  1. Render and validate:

```bash

bash skills/splunk-observability-thousandeyes-integration/scripts/setup.sh \

--render \

--validate \

--spec skills/splunk-observability-thousandeyes-integration/template.example \

--output-dir splunk-observability-thousandeyes-rendered

```

  1. Review splunk-observability-thousandeyes-rendered/:

marker required before any managed directory can be cleaned on rerender.

  1. Apply only when explicitly requested:

```bash

bash skills/splunk-observability-thousandeyes-integration/scripts/setup.sh \

--apply stream,apm,tests,alert_rules,templates \

--spec my-integration.yaml \

--te-token-file /secure/path/te-token \

--o11y-ingest-token-file /secure/path/o11y-ingest-token \

--o11y-api-token-file /secure/path/o11y-api-token \

--i-accept-te-mutations

```

To apply only a subset:

```bash

bash skills/splunk-observability-thousandeyes-integration/scripts/setup.sh \

--apply stream,apm \

--spec my-integration.yaml \

--te-token-file /secure/path/te-token \

--o11y-ingest-token-file /secure/path/o11y-ingest-token \

--o11y-api-token-file /secure/path/o11y-api-token \

--i-accept-te-mutations

```

Every live apply requires an explicit section list (or all) and --i-accept-te-mutations. all means the currently automatable sections: stream, APM, tests, alert rules, and templates. Labels, tags, and TE dashboards remain render-only and fail closed if selected.

Successful creates retain server-returned IDs under the rendered output's

mode-700 state/ directory and verify them by collection/item readback.

Each logical object has a private cross-process lock, and an fsynced

in_progress intent is written before POST. A missing ID, failed exact

readback, or uncertain transport becomes ambiguous with

manual_reconcile: true; later applies block before any second POST. Never

delete or hand-edit ambiguous state to force a retry—reconcile the live TE

object and retained ID first.

Rerender preserves state/ intentionally. It only cleans generated

directories after validating the exclusive marker, canonical bundle root,

expected top-level layout, same-filesystem trees, and single-link regular

files. Root, home, repository-root, unmarked non-empty, symlinked, and

hardlinked output targets fail without recursive deletion.

Per-test-type metric coverage (TE OpenTelemetry Data Model v2)

| TE test type | Canonical metrics |

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

| agent-to-server / agent-to-agent | network.latency, network.loss, network.jitter |

| http-server | http.server.request.availability, http.server.throughput, http.client.request.duration |

| page-load | web.page_load.duration, web.page_load.completion |

| web-transactions | web.transaction.duration, web.transaction.errors.count, web.transaction.completion |

| api / api-step | api.duration, api.completion, api.step.duration, api.step.completion |

| bgp | bgp.path_changes.count, bgp.reachability, bgp.updates.count |

| dns-server / dns-trace | dns.lookup.availability, dns.lookup.duration |

| dnssec | dns.lookup.validity |

| voice (RTP-stream) | rtp.client.request.{mos,loss,discards,duration,pdv} |

| sip-server | sip.server.request.availability, sip.client.request.duration, sip.client.request.total_time |

| ftp-server | ftp.server.request.availability, ftp.client.request.duration, ftp.server.throughput |

All charts are filtered by thousandeyes.account.id and thousandeyes.test.id.

Hand-offs

See reference.md for option details and the references/ annexes for the per-test-type catalog, TE Templates, alert rules, Integrations 2.0 APM, dashboards catalog, and SignalFlow validation.

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.