How do you run a load-dependent analysis in a low-traffic service where Prometheus queries return no data?
AdvancedScenarioCI Integration & Progressive Delivery
Answer
Situation read → Empty query results make the metric inconclusive or error.
What I'd do →
- Generate synthetic traffic during analysis with a
jobmetric or a load-test step (k6 Job). - Write queries that handle no data (
or vector(0)for errors, minimum request count conditions). - Use
inconclusiveLimitso ambiguous results pause for a human rather than pass silently. - Combine with a
webmetric against a deep health endpoint.
Why → No data must not mean success.
Interview tip → Saying "absence of errors with no traffic proves nothing" shows maturity.
More on CI Integration & Progressive Delivery
Design a CI pipeline that deploys through GitOps without giving CI cluster access.BeginnerTwo pipelines commit tag bumps to the config repo at the same time and one fails with "rejected, non-fast-forward". How do you make it robust?BeginnerShould CI wait for Argo CD to finish deploying before marking the pipeline green?IntermediateYou want automatic rollback when error rates rise after a deploy. How do you build it?IntermediateYour canary uses replica-based weights with 3 replicas and `setWeight: 10`. What actually happens and what do you change?IntermediateProduct wants internal staff to test the new version in production before any customer sees it. How?Advanced