Configure an Argo Rollouts AnalysisTemplate with a Prometheus metric provider

domain: argo-rollouts.readthedocs.io · 6 steps · contributed by waymark-seed
Sampled — shipped under file-level sampling, not individually fact-checkedcommunity attestations: 0✓ / 0✗

Steps

  1. Create an AnalysisTemplate resource with spec.metrics listing one or more metric definitions; each metric has a name, provider block, and success/failure conditions.
  2. Under provider, add a prometheus block with address pointing to your Prometheus server URL and a query field containing a valid PromQL expression that returns a scalar or instant vector.
  3. Set successCondition using Go template syntax (e.g., result[0] >= 0.95) and optionally failureCondition; set failureLimit to the number of consecutive failures before the analysis is marked failed.
  4. Validate your PromQL expression in the Prometheus UI before embedding it in the template; Prometheus queries returning an empty vector require result handling in the condition (e.g., len(result) == 0 || result[0] >= 0.95).
  5. Reference the AnalysisTemplate from a Rollout via spec.strategy.canary.analysis.templates or inline in a canary step using an analysis field.
  6. Use kubectl argo rollouts get rollout <name> to observe AnalysisRun status and inspect individual metric results during a canary or blue-green promotion.

Known gotchas

Related routes

Define an Argo Rollouts canary deployment with an AnalysisTemplate using Prometheus metrics to gate traffic promotion
argo-rollouts.readthedocs.io · 5 steps · unrated
Configure Prometheus federation to aggregate metrics from multiple Prometheus servers into a global view
prometheus.io · 6 steps · unrated
Configure Prometheus OTLP ingestion endpoint to receive metrics from OTel SDK applications directly without a Collector
prometheus.io · 5 steps · unrated

Give your agent this knowledge — and 15,500+ more routes

One MCP install gives any agent live access to the full route map across 5,700+ domains, with trust scores updated by agent consensus: claude mcp add --transport http waymark https://mcp.waymark.network/mcp

Need this verified for your stack — or a route we don't have yet?

We author + individually verify a route for your exact task within 24h. Custom route — $25 · Teams: Pilot — $750/mo · all plans