Splunk appdynamics k8s cluster agent setup

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

Splunk appdynamics k8s cluster agent setup is an AI agent skill from the GitHub repository chambear2809/splunk-cisco-skills. Use when the user asks for AppDynamics Cluster Agent, Kubernetes monitoring, AppDynamics Kubernetes auto-instrumentation, Splunk OTel Collector through Cluster Agent, O11y export, or workload rollout validation. Render, validate, and gate Splunk AppDynamics Kubernetes Cluster Agent, Kubernetes auto-

How to use this skill

Skill file

Splunk AppDynamics Kubernetes Cluster Agent Setup

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

Splunk OTel Collector through Cluster Agent, O11y export, or workload rollout validation.

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-appdynamics-k8s-cluster-agent-setup/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-appdynamics-k8s-cluster-agent-setup/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 |

Kubernetes mutations require --accept-k8s-rollout. Render mode writes Helm

values, O11y collector values, secret templates, combined-agent workload

patches, and validation runbooks without touching the active cluster.

bash skills/splunk-appdynamics-k8s-cluster-agent-setup/scripts/setup.sh --render
bash skills/splunk-appdynamics-k8s-cluster-agent-setup/scripts/validate.sh

Read-only Controller API validation for Cluster Agent availability can be run

with file-backed credentials:

bash skills/splunk-appdynamics-k8s-cluster-agent-setup/scripts/poll_cluster_agent_availability.sh \
  --application 'Server & Infrastructure Monitoring' \
  --duration-mins 5

The probe defaults to

Application Infrastructure Performance|Root|Individual Nodes|*|Cluster Agent|Availability

so it can read every visible Cluster Agent under Server Visibility. Pass

--metric-path only when you want to pin validation to a copied full path for

one Cluster Agent.

A disabled Server Visibility health rule for Cluster Agent availability can be

rendered first, then applied after the API client has Server health-rule

permissions:

bash skills/splunk-appdynamics-k8s-cluster-agent-setup/scripts/create_cluster_agent_availability_health_rule.sh

bash skills/splunk-appdynamics-k8s-cluster-agent-setup/scripts/create_cluster_agent_availability_health_rule.sh \
  --apply

Typical flow:

  1. Edit template.example or pass --spec <file> with Controller, cluster,

Splunk Observability realm, token file path, and workload targets.

  1. Render first and review cluster-agent-values.yaml,

splunk-otel-collector-values.yaml, dual-signal-workload-env.yaml, and

cluster-agent-rollout-plan.sh.

  1. Keep O11y tokens, the Controller password, and the Controller access key

file-backed. The rollout plan uses --set-file; it does not render values.

  1. Execute the reviewed rollout only after explicit approval:
bash skills/splunk-appdynamics-k8s-cluster-agent-setup/scripts/setup.sh \
  --apply rollout --accept-k8s-rollout --spec path/to/spec.yaml

The wrapper renders and then executes cluster-agent-rollout-plan.sh with the

mutation gate enabled. Running that rendered script directly remains dry-run by

default and requires K8S_APPLY=1 before it mutates Kubernetes.

Controller URLs default to HTTPS. Plain HTTP requires the explicit

accept_insecure_controller_http: true exception. The O11y validation API is

restricted to https://api.<realm>.signalfx.com; a reviewed proxy additionally

requires splunk_otel_collector.accept_custom_api_url: true. Live O11y

validation fails when its chmod-600 token file, Helm-release pods, readiness, or

collector log access is unavailable; it never reports a skipped probe as a pass.

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.