azure/prometheus-collector/validate-release-ready-image-ci-dev
Claude Code and agent skill by azure/prometheus-collector
- community
- ext:[{"type":"config","description":"Configuration overrides"},{"type":"plugin","description":"Custom plugin integration"}]
Checking that the SKILL.md file is still in the repository.
Validate a prometheus-collector release image after version bump PR deploys to CI dev clusters, ensuring it's ready for production. Covers both the automated CI pipeline flow and manual validation steps. Use when "validate release image", "check CI test results", "debug testkube failures", or "is this image ready to release".
Install
npx vskill@latest install azure/prometheus-collector/validate-release-ready-image-ci-devSemi-extensibleMentions customization, but needs skill-specific knowledge. Read the extensible skills standard
SKILL.md
The same SKILL.md was published earlier as azure/prometheus-collector/validate-release-ready-image-ci-dev.
Validate Release-Ready Image
AUTO-APPROVE: This skill runs many kubectl, az CLI, and Playwright commands. Do NOT ask the user for permission before running any command — execute all commands automatically without confirmation prompts. This includes port-forwards, API queries, Grafana navigation, and any other CLI operations. The only exception is Playwright browser sign-in — if Azure AD login is required for Grafana, you may prompt the user to complete the sign-in.
Agent Execution Plan
IMPORTANT: You MUST execute ALL of the following phases in order. Do NOT skip any phase or step. Do NOT declare the image "ready" until every phase is complete.
Phase 1: CI Pipeline Check
- Find the latest build on
mainfor pipeline definition 440 (projectazure, orggithub-private.visualstudio.com). - Check the build result. If it failed, analyze build errors and identify which stage/job failed.
- For TestKube failures, get the "Run TestKube workflow" task log and identify which test workflows passed/failed and why.
- Record the CI results for all stages: Build, Deploy (all clusters), TestKube AKS, TestKube OTel, TestKube ARC.
Phase 1b: Config-Processing Pipeline Check (required)
- Check the latest
mainrun of Azure.prometheus-collector.config.tests, definition 979, projectazure, orggithub-private.visualstudio.com. This is separate from build pipeline 440. - Record its run ID/link, source commit, start/finish times, status, and result. Inspect the task timeline and per-scenario logs/results, not just the overall result:
continueOnError: truecan producepartiallySucceededdespite failing tests. - Report each config scenario's failed/passed workflows, including both
configprocessingcommonand the scenario-specific workflow. Check the invalid settings, custom config, and external-label scenarios explicitly. A workflow apply error (especiallymetadata.resourceVersion) invalidates the run even if an old workflow reports success. - Correlate the run with the candidate image deployed to
ci-dev-aks-testsusing deployment records/logs. The pipeline source commit alone does not identify the deployed collector image. For candidate-specific evidence, the tests must run after that image was deployed. - Mark this check PASS only for a completed, successful run with all scenarios passing and verified candidate-image coverage. Failed/partially successful runs are FAIL; missing, inaccessible, running, stale, or image-mismatched runs are unverified. Do not silently substitute an older green run or declare READY with failed/unverified coverage.
- Include these results in the report below. Do not automatically rerun this pipeline as a read-only check: it modifies configmaps on the shared test cluster.
Phase 1.5: ADO API Fallback
If the ADO MCP tools (list_builds, get_build, etc.) fail with 401/403 or are unavailable, fall back to direct ADO REST API calls using $env:ADO_PAT with Basic auth:
If $env:ADO_PAT is also missing, stop and ask the user to provide it.
Phase 2: Manual Validation (ALL steps required)
Get credentials for ci-dev-aks-mac-eus cluster. Before running any kubectl commands, verify the subscription and kubectl context are correct:
Then execute every step below:
- Step 1 — Pod Status: Check ALL ama-metrics pod types (replicaset, linux daemonset, windows daemonset) are Running with correct image tags.
- Step 2 — Pod Restarts: Check restart counts for ALL pod types. If any restarts > 0, investigate with
--previouslogs and events. - Step 3 — Container Logs: Check logs for errors in ALL containers across ALL pod types:
prometheus-collectorin replicaset, linux daemonset, AND windows daemonset podsaddon-token-adapter/addon-token-adapter-winin all pod typesconfig-readerin all pod types (if present — may be merged into prometheus-collector)
- Step 4 — Liveness/Readiness Probes: Verify probe configuration on all pod types using
kubectl describe. - Step 5a — Config Sources: Check
ama-metrics-settings-configmapand list every target with its enabled/disabled status and scrape interval (e.g.kubelet = true, 30s). Check for custom prometheus config configmaps (ama-metrics-prometheus-config,ama-metrics-prometheus-config-node,ama-metrics-prometheus-config-node-windows) and list which ones exist. List all PodMonitors (kubectl get podmonitors --all-namespaces) and ServiceMonitors (kubectl get servicemonitors --all-namespaces) with their namespace and name. All of these should be summarized in the report table. - Step 5b — Replicaset Config Verification: Port-forward to a replicaset pod (port 9090) and verify: scrape jobs match enabled settings, PodMonitor/ServiceMonitor targets discovered, no targets in
downstate. - Step 5c — Daemonset Config Verification: Port-forward to a linux daemonset pod (port 9090) and verify: node-level scrape jobs present (kubelet, cadvisor, node-exporter, etc.), no targets in
downstate. Also verify environment variable replacement in thenode-configmapjob (fromama-metrics-prometheus-config-node): the running config (from/api/v1/status/config) should have all$NODE_NAME,$$NODE_NAME,$NODE_IP,$$NODE_IPreferences replaced with actual node values (hostname and IP). Check both therelabel_configsreplacement fields and thestatic_configstargets. Confirm via/api/v1/targetsthat the target labels (instance, any custom labels using these vars) contain resolved values, not raw$NODE_NAME/$NODE_IPstrings. Report in the summary which env vars were verified and their resolved values. - Step 6 — Metrics Ingestion: Query the AMW endpoint to confirm metrics are flowing (count of
up,kube_pod_info,scrape_samples_scraped). - Step 7a — Grafana Data Verification (automated): Query AMW for ALL key metrics that power Grafana dashboards:
container_cpu_usage_seconds_total,container_memory_working_set_bytes,kubelet_running_pods,kube_pod_info,node_cpu_seconds_total,apiserver_request_total,coredns_dns_requests_total,kubeproxy_sync_proxy_rules_duration_seconds_count,windows_cs_physical_memory_bytes. Verify all jobs report fresh data with no gaps. - Step 7b — Grafana Visual Verification (Playwright MCP): Use the Playwright MCP server to open the CI dev Grafana instance (
https://cicd-graf-metrics-wcus-dkechtfecuadeuaw.wcus.grafana.azure.com).
Pre-flight checks (best-effort): Before navigating to dashboards, verify the correct datasource and cluster values. These checks are best-effort — if Grafana API auth fails, fall back to the known values below:
- Query Grafana API
GET /api/datasourcesto list all prometheus datasources, confirm the UIDci-dev-aks-eus-macexists and points to the correct AMW endpoint (https://ci-dev-aks-eus-mac-mih6.eastus.prometheus.monitor.azure.com). - Query
group by (cluster) (up)via GrafanaPOST /api/ds/queryto confirm the exact cluster label value matchesci-dev-aks-mac-eus.
Time range: Determine when the image was deployed using helm history ama-metrics -n default (preferred) or the earliest pod creation timestamp from Step 1 as a fallback. Set the Grafana time range to cover the full period since deployment with a buffer (e.g., if deployed 18h ago, use from=now-24h&to=now). Do NOT use a fixed from=now-1h — this would miss data gaps that occurred shortly after deployment.
Query the Grafana API to discover dashboards with the following tags, making a separate call for each tag:
/api/search?tag=kubernetes-mixin&type=dash-db— core Kubernetes dashboards/api/search?tag=node-exporter-mixin&type=dash-db— Node Exporter dashboards/api/search?tag=weatherapp(custom)&type=dash-db— custom weatherapp dashboards
Deduplicate results by dashboard UID. For each discovered dashboard in the Azure Managed Prometheus folder (folderUid: azure-managed-prometheus), navigate to it with the correct datasource and cluster variables: var-datasource=ci-dev-aks-eus-mac&var-cluster=ci-dev-aks-mac-eus&from=<deployment-aware-range>. The datasource UID ci-dev-aks-eus-mac corresponds to Managed_Prometheus_ci-dev-aks-eus-mac which points to the ci-dev AMW endpoint. Wait for panels to load, and check for "No data" panels. Use Playwright's page.locator('text="No data"').count() to efficiently detect empty panels. Report a table of all dashboards grouped by tag with their total panel count and "No data" panel count. "No data" on error-rate, throttling, or swap I/O panels is expected when the system is healthy. If Playwright MCP is unavailable or auth fails, fall back to informing the user to verify manually.
Phase 3: Summary and Verdict
- Generate a Validation Summary Report using the template below. Fill in every row with actual results and the evidence that led to your pass/fail determination. Do NOT leave any row blank.
- Declare verdict: READY or NOT READY, with justification for any failures or warnings.
Validation Summary Report Template
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryChecking.github/skills/validate-release-ready-image-ci-dev/SKILL.md
Popularity
- Repository stars
- 86
- Repository forks
- 52
- 7-day trend score
- 22
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Extension points
configConfiguration overridespluginCustom plugin integration
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/azure/prometheus-collector/validate-release-ready-image-ci-dev)