azure/prometheus-collector/validate-release-ready-image-ci-prod

Claude Code and agent skill by azure/prometheus-collector

Trust tier 2
  • community
  • ext:[{"type":"config","description":"Configuration overrides"},{"type":"plugin","description":"Custom plugin integration"}]
LLM review pending
Source check pending

Checking that the SKILL.md file is still in the repository.

Validate a prometheus-collector release image on the CI prod cluster (ci-prod-aks-mac-weu), including config-processing CI results and manual cluster validation. No image-build pipeline checks. Use when "validate prod image", "check ci-prod cluster", "verify prod deployment", or "is the prod image healthy".

Install

npx vskill@latest install azure/prometheus-collector/validate-release-ready-image-ci-prod

Semi-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-prod.

Validate Release-Ready Image (CI Prod)

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 steps in order. Do NOT skip any step. Do NOT declare the image "ready" until every step is complete.

Config-Processing Pipeline Check (required)
  • Check the latest main run of Azure.prometheus-collector.config.tests, definition 979, project azure, org github-private.visualstudio.com. This checks CI config processing on ci-dev-aks-tests, not on the prod cluster; it does not replace the manual prod checks below.
  • 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: true can produce partiallySucceeded despite failing tests.
  • Report each config scenario's failed/passed workflows, including both configprocessingcommon and the scenario-specific workflow. Check the invalid settings, custom config, and external-label scenarios explicitly. A workflow apply error (especially metadata.resourceVersion) invalidates the run even if an old workflow reports success.
  • Correlate the run with the candidate image deployed to ci-dev-aks-tests using deployment records/logs. The pipeline source commit alone does not identify the deployed collector image. Verify that the tested image corresponds to the prod candidate (including matching build provenance if promoted under a different tag); a run against another dev image is not prod-candidate evidence.
  • Mark this check PASS only for a completed, successful run with all scenarios passing after the matching image was deployed. 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.

If ADO tools are unavailable, query the REST API using an Azure CLI access token without printing it:

powershell
$token = az account get-access-token --resource 499b84ac-1321-427f-aa17-267ca6975798 --query accessToken -o tsv
$headers = @{ Authorization = "Bearer $token" }
Invoke-RestMethod -Uri "https://dev.azure.com/github-private/azure/_apis/build/builds?definitions=979&branchName=refs/heads/main&`$top=1&api-version=7.1" -Headers $headers

Then query builds/<runId>/timeline and builds/<runId>/logs/<logId> with the same headers to inspect scenario results. If authentication fails, report this check as UNVERIFIED rather than skipping it.

Validation (ALL steps required)

Get credentials for ci-prod-aks-mac-weu cluster. Before running any kubectl commands, verify the subscription and kubectl context are correct:

powershell
az account set --subscription "9b96ebbd-c57a-42d1-bbe9-b69296e4c7fb"
az aks get-credentials -g ci-prod-aks-mac-weu-rg -n ci-prod-aks-mac-weu --overwrite-existing
kubectl config current-context # must show "ci-prod-aks-mac-weu"

Then execute every step below:

  1. Step 1 — Pod Status: Check ALL ama-metrics pod types (replicaset, linux daemonset, windows daemonset) are Running with correct image tags.
  2. Step 2 — Pod Restarts: Check restart counts for ALL pod types. If any restarts > 0, investigate with --previous logs and events.
  3. Step 3 — Container Logs: Check logs for errors in ALL containers across ALL pod types:
  • prometheus-collector in replicaset, linux daemonset, AND windows daemonset pods
  • addon-token-adapter / addon-token-adapter-win in all pod types
  • config-reader in all pod types (if present — may be merged into prometheus-collector)
  1. Step 4 — Liveness/Readiness Probes: Verify probe configuration on all pod types using kubectl describe.
  2. Step 5a — Config Sources: Check ama-metrics-settings-configmap and 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.
  3. 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 down state.
  4. 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 down state. Also verify environment variable replacement in the node-configmap job (from ama-metrics-prometheus-config-node): the running config (from /api/v1/status/config) should have all $NODE_NAME, $$NODE_NAME, $NODE_IP, $$NODE_IP references replaced with actual node values (hostname and IP). Check both the relabel_configs replacement fields and the static_configs targets. Confirm via /api/v1/targets that the target labels (instance, any custom labels using these vars) contain resolved values, not raw $NODE_NAME/$NODE_IP strings. Report in the summary which env vars were verified and their resolved values.
  5. Step 6 — Metrics Ingestion: Query the AMW endpoint to confirm metrics are flowing (count of up, kube_pod_info, scrape_samples_scraped). Discover the AMW endpoint dynamically — do NOT hardcode it, as the hostname includes a generated suffix:

``powershell az monitor account show --name ci-prod-aks-weu-mac --resource-group ci-prod-aks-mac-weu-rg --query "metrics.prometheusQueryEndpoint" -o tsv `` Use the returned endpoint for all PromQL API queries in Steps 6 and 7a.

  1. Step 6b — AMW Platform Metrics (ingestion continuity): Query the AMW platform metrics (Azure Monitor metrics on the AMW resource itself) to verify that ingestion volume did not drop after the new image was deployed. This catches regressions where pods appear healthy but are silently ingesting fewer metrics. Determine the deployment time from helm history or pod creation timestamps, then query a window covering at least 2 hours before and the full period after deployment.

Metrics to check:

  • EventsPerMinuteIngested (aggregation: Maximum) — the rate of events/samples received per minute. Should remain stable (within ~15% variance) before and after deployment.
  • ActiveTimeSeries (aggregation: Maximum) — the total number of active time series. A significant drop indicates scrape targets or metrics were lost.
  • EventsDropped (aggregation: Maximum) — events rejected by the AMW. Should remain zero or near-zero. A spike after deployment indicates a config issue.
  • TimeSeriesSamplesDropped (aggregation: Maximum) — samples dropped (e.g., due to label limits). Should remain stable; a spike after deployment indicates a regression.

``powershell $amwResourceId = az monitor account show --name ci-prod-aks-weu-mac --resource-group ci-prod-aks-mac-weu-rg --query id -o tsv # Query with 1h granularity covering before and after deployment az monitor metrics list --resource $amwResourceId --metric EventsPerMinuteIngested --interval PT1H --start-time <2h-before-deploy> --end-time <now> --aggregation Maximum -o table az monitor metrics list --resource $amwResourceId --metric ActiveTimeSeries --interval PT1H --start-time <2h-before-deploy> --end-time <now> --aggregation Maximum -o table az monitor metrics list --resource $amwResourceId --metric EventsDropped --interval PT1H --start-time <2h-before-deploy> --end-time <now> --aggregation Maximum -o table az monitor metrics list --resource $amwResourceId --metric TimeSeriesSamplesDropped --interval PT1H --start-time <2h-before-deploy> --end-time <now> --aggregation Maximum -o table ``

How to evaluate: Compare the average of the pre-deployment data points against the average of the post-deployment data points. PASS if EventsPerMinuteIngested and ActiveTimeSeries are within ~15% of their pre-deployment values, EventsDropped remains zero or near-zero, and TimeSeriesSamplesDropped does not spike. WARN if there is a transient dip during the rollout window (expected as pods restart) that recovers within 10 minutes. FAIL if there is a sustained drop (>15%) or a new sustained spike in dropped events/samples after deployment.

  1. 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.
  2. Step 7b — Grafana Visual Verification (Playwright MCP): Use the Playwright MCP server to open the CI prod 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/datasources to list all prometheus datasources, confirm the UID ci-prod-aks-weu-mac exists and points to the correct AMW endpoint (the one discovered via az monitor account show in Step 6).
  • Query group by (cluster) (up) via Grafana POST /api/ds/query to confirm the exact cluster label value matches ci-prod-aks-mac-weu.

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-prod-aks-weu-mac&var-cluster=ci-prod-aks-mac-weu&from=<deployment-aware-range>. The datasource UID ci-prod-aks-weu-mac corresponds to Managed_Prometheus_ci-prod-aks-weu-mac which points to the ci-prod 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 d

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

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. Refreshed 3 Oct 2026, a month ago.

Extension points

  • configConfiguration overrides
  • pluginCustom 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
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/azure/prometheus-collector/validate-release-ready-image-ci-prod/badge)](https://verified-skill.com/skills/azure/prometheus-collector/validate-release-ready-image-ci-prod)

Something wrong with this skill or its page? Tell us.