Splunk observability database monitoring setup

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

Splunk observability database monitoring setup is an AI agent skill from the GitHub repository chambear2809/splunk-cisco-skills. Use when handling DBMon receiver setup, database query analysis, explain-plan readiness, or database collector lifecycle work, including MongoDB and version-aware MySQL and MariaDB feature gaps. Render, validate, apply, verify, and roll back production Splunk Observability Cloud Database Monitoring

How to use this skill

Skill file

Splunk Observability Database Monitoring Setup

Prerequisites

This workflow has no direct Splunk Platform runtime dependency. It can be used

alongside Splunk Cloud Platform 10.5.2605 through documented external APIs or

handoffs.

| Tool or access | Purpose | Verify |

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

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

| PyYAML (copied-skill installs) | Parse YAML when the parent repository helper is unavailable | python3 -c 'import yaml' |

| 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 |

Mode-specific external tools are required only for the matching phase: Docker or

Podman for --collector-validate; kubectl for --live and Kubernetes

actions; and Helm plus yq for Kubernetes apply/rollback helpers. The offline

render and static validation paths need only Bash, Python, and YAML support.

Workflow Overview

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

When to Activate

work, including version-aware MySQL and MariaDB feature gaps.

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 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 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 |

Use this skill to take DBMon from a reviewed target specification through a

validated collector deployment and product evidence. Render first. Apply only

with the platform-specific acceptance gate. Do not report success merely

because the collector starts.

Audited baseline and production matrix

Pin new deployments to Splunk OTel Collector v0.158.0 and Helm chart

0.158.0. Enforce these receiver-specific floors and platform/version pairs:

AWS IAM database authentication for RDS and Aurora PostgreSQL requires

Collector v0.159.0 or later. This audited v0.158.0 workflow uses a

database password for those targets; see reference.md before describing

newer collector features as covered by a rendered packet.

| Engine | Production support | Collector floor |

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

| Microsoft SQL Server | 2016/2017/2019/2022 on Azure Managed Instance, Azure SQL Database, AWS RDS, or self-hosted | v0.154.0 |

| MySQL | Product floor 5.7+ on AWS RDS or standalone; pinned receiver verifies 5.7.x, 8.0.x, 8.4.x, and 9.x; explain plans require 8.0+ | v0.154.0 |

| MariaDB | Product floor 10.5+ on AWS RDS or standalone; pinned receiver verifies 10.5.x–10.11.x and 11.x; explain plans are unavailable | v0.154.0 |

| MongoDB | Metrics: 4.0+; DBMon query samples/top queries and plans: self-managed 7.0, or Atlas dedicated M10+ using scheme: mongodb+srv | v0.158.0 |

| Oracle Database | 12c/18c/19c/21c/26ai on AWS RDS, Oracle RAC, or self-hosted; one target per RAC node | v0.156.0 |

| PostgreSQL | Azure Flexible Server 14.20/17.7; RDS 14.15/17.5; Aurora PostgreSQL 17.7; EDB Postgres Advanced Server 18.4; keep provider/version pairs exact | v0.147.0 |

MySQL 5.7+ and MariaDB 10.5+ are production-supported product targets. Enforce

the narrower pinned-receiver rows above and preserve their version-aware

evidence: metrics and query events are available, but explain plans are not

produced for MySQL 5.7 or MariaDB. Continue to use

--allow-unsupported-targets only for platforms or versions outside the

verified matrix; generated production apply helpers refuse that mode.

Required production evidence schema:

sizing_evidence:
  reference: CHANGE-1234-load-test-report
  reviewed_by: db-platform-owner
  reviewed_at: "2026-07-07"
  peak_memory_mib: 3072
  peak_cpu_cores: 1.5
  target_count: 4

Direct self-managed SQL Server/Oracle connections have no receiver TLS knobs

and therefore also require an explicit transport_exception with exactly

reason, reference, reviewed_by, and ISO reviewed_at. Managed SQL

Server/Oracle never accepts that exception and must use a secret-backed,

URL-form datasource with certificate verification.

Primary workflow

  1. Read reference.md. Confirm the realm, DBMon entitlement, target matrix,

collector topology, explicit CPU/memory sizing evidence, database prerequisites, and required product

features. Set scrape_owner to exactly one enabled runtime; multiple output

packets may be rendered for review, but only the owner packet can apply.

  1. Copy template.example outside the repository. Enter non-secret target

data and credential reference names only. Set collector.kube_context for

Kubernetes and review each non-secret target validation_filters identity;

datasource and loopback targets require an explicit expected identity. Add

sizing reference/reviewer/date plus measured peak memory, peak CPU, and

benchmark target count. Managed

SQL Server/Oracle targets require datasource mode with runtime-verified TLS.

  1. Render and run static plus pinned-collector configuration validation:

```bash

bash scripts/setup.sh \

--render --validate --collector-validate \

--spec /secure/path/dbmon.yaml \

--output-dir splunk-observability-database-monitoring-rendered

```

  1. Review metadata.json, the coverage report, validation plan, database

prerequisite runbooks, platform config, action packet, and rollback packet.

Resolve every failure and explicitly accept every documented gap.

  1. Create the database users/grants and real Kubernetes Secrets or host

environment variables through the owning systems. This skill never applies

database grants or renders secret values.

  1. Apply the reviewed target platform only after authorization:

```bash

# Kubernetes

bash scripts/setup.sh \

--apply-k8s --accept-k8s-apply --collector-validate \

--spec /secure/path/dbmon.yaml

# Linux

bash scripts/setup.sh \

--apply-linux --accept-linux-apply --collector-validate \

--spec /secure/path/dbmon.yaml \

--db-credentials-env-file /secure/path/dbmon.env

```

--apply remains a Kubernetes compatibility alias. Use the explicit target

mode in new automation. Windows is a reviewed PowerShell handoff, not an

unattended mutation path. An action helper refuses to run when its platform

does not equal the spec's scrape_owner, preventing duplicate scrapes.

  1. Run live and tenant-side read-only validation:

```bash

bash scripts/validate.sh \

--output-dir splunk-observability-database-monitoring-rendered \

--api

```

Add --live for a Kubernetes packet. It is a scoped Kubernetes pod/log

probe, not a host-service check. It keeps connection, authentication,

required-system-view permission, scrape, and export failures fatal while

recognizing the upstream PostgreSQL receiver's two best-effort

per-statement EXPLAIN messages. For Linux or Windows, run the rendered

platform status step and then the API validation above.

  1. Complete the product validation plan. Prove the target in Infrastructure >

Datastores and APM > Database monitoring, then verify Queries, Query samples,

Query metrics, Dependencies, Metadata, eligible explain plans, and any

requested APM/AI features.

  1. If apply validation fails, use the captured rollback state:

```bash

bash scripts/setup.sh \

--rollback-k8s --accept-k8s-rollback \

--output-dir splunk-observability-database-monitoring-rendered

bash scripts/setup.sh \

--rollback-linux --accept-linux-rollback \

--output-dir splunk-observability-database-monitoring-rendered

```

Rollback requires the owner-only apply-state file and refuses if the live

Helm revision or applied Linux files drifted. An explicit

--rollback-revision N must equal the state-recorded previous revision;

otherwise perform a separately reviewed manual recovery. Never improvise a

destructive Helm or filesystem reset.

Run setup.sh --help before production execution; it is authoritative for the

current flags and acceptance requirements.

Required collector shape

MySQL-family-only packet. For mixed packets, render the deterministic

metrics/dbmon_core, logs/dbmon_core, metrics/dbmon_mysql, and

logs/dbmon_mysql pipelines so MySQL and MariaDB retain their documented

processor order.

otlp_http/dbmon exporter to

https://ingest.<realm>.observability.splunkcloud.com/v3/event.

from a runtime secret environment variable. Kubernetes reuses the chart's

SPLUNK_OBSERVABILITY_ACCESS_TOKEN; Linux, Windows, and standalone gateways

use SPLUNK_ACCESS_TOKEN.

mysql.instance.endpoint identity processor.

query-sample rows, a 60s top-query interval, and a 1000 top-query sample

limit. A reviewed load test can justify only documented advanced changes

within the renderer's enforced bounds; 100 query-sample rows is a ceiling,

so an override may lower it but never raise it.

suffixes, deprecated *.signalfx.com endpoints, and receiver configurations

that omit the event pipeline.

Platform rules

Kubernetes

them in the node agent DaemonSet. Chart 0.158.0 does not accept a

clusterReceiver.replicas value, so use its singleton mode and verify exactly

one ready cluster-receiver pod after apply.

Fargate and use a supported non-Fargate or external collector runtime.

existing database Secrets, current Helm values, and a clean config

validation. Every Helm and kubectl call is bound to the reviewed context.

Merge with the current release and use the major-version-specific

transactional Helm upgrade below.

executable post-renderer with --wait; Helm 4 uses an ephemeral local

postrenderer/v1 subprocess plugin plus watcher wait and

--server-side=false. Do not enable Helm's built-in --atomic or

--rollback-on-failure: this action owns rollback so it can first quiesce

the fixed-node singleton and avoid overlapping old/new pods. The Helm 4

client-side three-way update is needed

to remove rollingUpdate while changing the singleton Deployment to

Recreate; Helm 4 server-side apply otherwise retains an invalid field.

Scope the Helm 4 plugin path to template/upgrade commands only, and retain

--hide-secret for server-side upgrade dry-runs.

continue with the separate --accept-collector-upgrade gate. The same gate

applies if the global image pin changes any existing collector workload.

receiver, processor, exporter, connector, and extension inventory from the

exact pinned image. Inspect existing role configs diagnostically, then fail

before Secret reads or Helm mutation if the final rendered agent, gateway,

or cluster-receiver config retains an unavailable component type. Existing

defaults that the target chart removes are not false-blocked.

failOnDeprecatedNames gate. Before template rendering, fail on exporter

otlp/otlphttp, processor k8sattributes, or receiver

filelog/hostmetrics/k8sobjects definitions and pipeline references,

including suffixed IDs. Do not mechanically rename a live topology; hand the

full-release migration to splunk-observability-otel-collector-setup.

Replacing or removing an existing cluster-receiver DBMon slice additionally

requires --accept-dbmon-reconfigure after duplicate-load review.

evidence that any external collector, host service, or prior release scraping

the same databases is disabled; the action cannot discover every external

scraper.

entries, realm, cluster name, and distribution. Database Secrets must be in

the collector namespace with every referenced key nonempty.

Oracle WALLET directory, configure a read-only Secret volume in the base

clusterReceiver. The guarded apply verifies that each secret-derived,

absolute trust path is covered by a rendered cluster-receiver mount before

Helm mutation; it never prints the datasource or credential values. SQL

Server certificate paths must end in .pem; the pinned driver rejects a

PEM trust certificate whose path uses a .crt suffix.

one. Persist owner-only revision/image/config-fingerprint state outside the

rendered packet, and roll back only when the live revision still matches it.

Linux

adequate effective host/cgroup memory, and permission to manage only

splunk-otel-collector.service.

effective systemd ExecStart and fail closed rather than discarding existing

feature gates, providers, arguments, or additional configs.

replacement. Validate the new config before restart; persist preparing

state before any backup or credential staging, then use durable applying,

restoring, and finalizing transitions around every mutation. Restore on

any uncommitted failure. Rollback verifies both backup checksums and hashes

of the currently applied files, refusing stale state after operator drift.

Windows

PowerShell action/rollback handoff.

other targets use direct network connections.

action implementation.

Sizing and topology gates

Server/Oracle uses 2048 MiB.

sizing_evidence for every packet. Splunk publishes no equivalent

performance baseline for PostgreSQL, MySQL, MariaDB, or MongoDB; require a

representative load test instead of inventing a support claim.

sg0; reject us2 and unknown realms.

Product completion gate

Record these states separately: configured, collector validated,

telemetry observed, and product UI verified.

Infrastructure Monitoring.

by that target's expected identity. A tenant-wide metric match is never

telemetry proof for a specific target.

navigator tabs.

require 8.0+; supported MySQL 5.7 and MariaDB targets provide metrics and

query events but not explain plans in the pinned receiver.

and Oracle.

upstream v0.158.0 receiver documents it, but Splunk's DBMon Oracle product

page does not yet document its UI/support behavior; record and validate that

gap.

with SQL Server; Java JDBC with SQL Server, MySQL, Oracle, or PostgreSQL.

Prove a sampled query-to-trace link and trace-to-normalized-query link.

explicitly excludes that feature. Treat MariaDB APM correlation as a gap.

generate recommendations, but Splunk Support must activate it. Mark it

ui_handoff_required until a human verifies it.

splunk-observability-dashboard-builder and

splunk-observability-native-ops; do not treat their absence as collector

failure unless they were in the requested scope.

Non-negotiable guardrails

connection-string values. Reject direct secret flags and inline secret

fields recursively.

ingest, reuse the Kubernetes chart Secret or read SPLUNK_ACCESS_TOKEN from

the private Linux/Windows runtime environment. Require private, non-symlink

files and never pass a token value on argv.

variable names. Placeholder Secret manifests are documentation, never apply

input.

authorize apply.

rollback. Do not broaden one approval to another platform.

database restarts, application instrumentation, DBMon entitlement changes,

AI activation, dashboards, or detectors.

the organization's data-handling policy.

Rendered evidence

Expect the packet to contain:

base-collector handoff, scripts/apply-dbmon-overlay.sh, and

scripts/rollback-dbmon-k8s.sh.

scripts/apply-dbmon-linux.sh, and scripts/rollback-dbmon-linux.sh.

scripts/apply-dbmon-windows.ps1, and

scripts/rollback-dbmon-windows.ps1 as fail-closed validation/handoff

packets. They do not persist plaintext credentials in the service registry.

plan, coverage report, gateway reference, and metadata.json.

Static validation must fail on malformed YAML, unsupported target pairs,

version-floor violations, more than 30 targets, insufficient documented memory,

non-singleton Kubernetes placement, missing platform artifacts, legacy

component names, secret material, or incomplete coverage/validation evidence.

See reference.md for the full support gaps, receiver prerequisites, advanced

controls, product/APM/AI feature matrix, action behavior, and official source

ledger. See references/gateway-routing.sqlserver.md for the supported SQL

Server gateway pattern.

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.