ai-governance
Generate and enforce policy gates for AI coding agents (Copilot, Claude Code) — real-time session hooks that deny protected-path edits and dangerous commands,…
Deploy and configure Dynatrace — OneAgent Kubernetes Operator, code-level instrumentation, Log Monitoring, custom metrics, SLOs, Dashboards, anomaly detection, Davis AI, and live incident investigation using the Dynatrace MCP server. Covers Terraform-managed Dynatrace resources.
> /plugin marketplace add nitinjain999/platform-skills > /plugin install platform-skills@platform-skills
How it fires
How this command gets triggered: by you, by Claude, or both.
/dynatraceContext preview
What this command does when you run it.
Deploy and configure Dynatrace — OneAgent Kubernetes Operator, code-level instrumentation, Log Monitoring, custom metrics, SLOs, Dashboards, anomaly detection, Davis AI, and live incident investigation using the Dynatrace MCP server. Covers Terraform-managed Dynatrace resources.
name: dynatrace description: Deploy and configure Dynatrace — OneAgent Kubernetes Operator, code-level instrumentation, Log Monitoring, custom metrics, SLOs, Dashboards, anomaly detection, Davis AI, and live incident investigation using the Dynatrace MCP server. Covers Terraform-managed Dynatrace resources. argument-hint: "[setup|instrument|monitor|slo|dashboard|investigate|debug] [service or description]" title: "Dynatrace Command" sidebar_label: "dynatrace" custom_edit_url: null
Configure, troubleshoot, or investigate incidents in Dynatrace.
Deploy the Dynatrace Operator and OneAgent on Kubernetes.
Steps: 1. Ask for: environment ID, Kubernetes distribution (EKS/AKS/GKE), monitoring mode (fullStack / cloudNativeFullStack) 2. Install Operator: `kubectl apply -f .../dynatrace-operator/releases/latest/download/kubernetes.yaml` 3. Create Secret with `apiToken` and `dataIngestToken` (store in Kubernetes Secret or secrets manager — never plain values) 4. Generate `DynaKube` CR with `cloudNativeFullStack` for automatic injection — no pod restarts required 5. Enable `metadataEnrichment: true` for Kubernetes metadata on all telemetry 6. Verify injection: `kubectl describe pod <app-pod> | grep dynatrace`
Required token scopes:
Reference: `references/dynatrace.md` → Deployment, Token Scopes
Add custom spans or business transaction tracing to a service.
Steps: 1. OneAgent auto-instruments HTTP, database, cache, and messaging — code changes only needed for custom business spans 2. Ask for: language (Node.js / Python / Java), business operations to trace (payment, checkout, data pipeline) 3. Generate SDK code for custom spans using `@dynatrace/oneagent-sdk` (Node.js), `oneagent-sdk` (Python), or OneAgent Java SDK 4. For cross-service propagation: forward and extract the `x-dynatrace` header between services 5. Verify in Distributed Traces UI: service appears in Service Map with custom spans
Reference: `references/dynatrace.md` → Code-Level Instrumentation
Configure anomaly detection and alerting for a service.
Steps: 1. Ask for: service entity ID (from Smartscape or Settings API), alerting thresholds (auto-detection or fixed), notification target 2. Generate Terraform `dynatrace_service_anomalies_v2` resource for failure rate and response time 3. Generate Terraform `dynatrace_alerting` profile linking anomalies to the team 4. Davis AI will auto-detect baseline anomalies — custom thresholds override only when auto-detection is too noisy 5. Wire alerting profile to notification integration (PagerDuty, Slack, Opsgenie)
Reference: `references/dynatrace.md` → Terraform Provider, Davis AI Problem Feeds
Define a Dynatrace SLO.
Steps: 1. Ask for: SLI expression (availability / latency / custom), target %, timeframe 2. Generate Terraform `dynatrace_slo_v2` resource 3. Use built-in metrics for availability: `builtin:service.errors.server.successCount` / `builtin:service.requestCount.server` 4. Validate the metric expression returns data in the Metrics Explorer before applying 5. Set both `target_success` and `target_warning` thresholds
Reference: `references/dynatrace.md` → SLOs
Create a Dynatrace dashboard.
Steps: 1. Ask for: service entity ID, key metrics to show (availability, latency, throughput, error rate) 2. Generate Terraform `dynatrace_json_dashboard` resource pointing to a JSON dashboard file 3. Use built-in service metrics: `builtin:service.requestCount.server`, `builtin:service.response.time`, `builtin:service.errors.server.rate` 4. Provide dashboard JSON with tiles for each metric using `DATA_EXPLORER` tile type
Reference: `references/dynatrace.md` → Terraform Provider
**Live incident investigation using the Dynatrace MCP server.**
Requires the Dynatrace MCP server connected to Claude Code. See setup in `references/dynatrace.md` → MCP Server Setup.
**Cost note**: `execute_dql` queries scan Grail data and may incur costs based on your Dynatrace consumption model. Start with short timeframes (last 1h–24h). Set `DT_GRAIL_QUERY_BUDGET_GB` to cap session spend.
Ask Claude to run these via the MCP server:
List all open Problems in Dynatrace right now. Get full details for Problem <problem-id> including root cause and affected entities. Show me Kubernetes events for namespace production in the last 30 minutes.
Use DQL via the MCP to query Grail directly:
Show me error logs for the orders-service in the last hour. List the top exceptions for orders-service with stack traces. Find distributed traces with errors for orders-service — show the slowest and most frequent.
Example DQL the MCP can generate and execute:
fetch logs | filter service.name == "orders-service" and loglevel == "ERROR" | sort timestamp desc | limit 50 | fields timestamp, content, trace_id, span_id
fetch spans | filter service.name == "orders-service" and status == "ERROR" | sort timestamp desc | limit 20 | fields timestamp, span_name, error.message, trace_id, duration
Let Davis AI perform automated analysis:
A production-grade field handbook for platform, DevOps, SRE, and cloud engineers covering Kubernetes, Flux CD, Terraform, GitHub Actions, AWS, OPA/Rego, KEDA, Karpenter, supply chain security, Falco, observability, and more.
Repo: nitinjain999/platform-skills
Generate and enforce policy gates for AI coding agents (Copilot, Claude Code) — real-time session hooks that deny protected-path edits and dangerous commands,…
Generate, convert, and maintain animated GitHub-safe Markdown documents with animated SVG diagrams. Covers four SVG patterns (architecture flow, lifecycle…
AWS profile management for MCP servers — discover profiles across SSO, Granted, and assumed-role chains, check credential TTL, switch profiles across VS Code…
Structured guidance for AWS CloudFront distributions, WAF web ACLs, Lambda@Edge, CloudFront Functions, Firewall Manager multi-account enforcement, and IAM/IRSA…
Azure identity (Workload Identity, OIDC, Entra ID), resource tagging, AKS platform patterns, RBAC scoping, and production-readiness review — with Terraform…
Design, run, and debug Chaos Engineering experiments on Kubernetes using Litmus Chaos v3 and Chaos Mesh v2. Covers fault injection (pod-delete, network-loss,…