phases schema
phases.json: exact UTC windows of warmup, each stage and cooldown.
Schema file: schema/json/bundle/phases.schema.json. Generated from servtuner commit 5b46cdad0e5c.
Top level
Section titled “Top level”| Field | Type | Required | Description |
|---|---|---|---|
phases |
array of phase | Yes | |
scrape_warnings |
array of scrapeWarning | No | Relevant Prometheus scrape roles that have no job, found when the scrape interval was resolved (the structured form of the text warning servtuner validate prints). The run still ran; series of that role may be missing or scraped more slowly than reported. |
warnings |
array of stageLengthWarning | No | Stage-length rule violations found by servtuner validate. The run still ran; the analyzer marks the affected stages. |
Definitions
Section titled “Definitions”stageLengthRule
Section titled “stageLengthRule”Which stage-length rule was broken. warmup_duration is the warmup rule (at least 2 x the interval and 30s) and carries no stage_index; percentile_sample_count is Rule A and carries percentile and required_requests.
Type: "min_stage_duration", "warmup_duration", "percentile_sample_count", "request_duration_ratio"
scrapeWarningRule
Section titled “scrapeWarningRule”missing_scrape_role: Prometheus has no job with the role, so series of that role may be missing or scraped more slowly than reported.
Type: "missing_scrape_role"
scrapeWarning
Section titled “scrapeWarning”| Field | Type | Required | Description |
|---|---|---|---|
rule |
scrapeWarningRule | Yes | |
role |
jobRole | Yes | |
message |
string |
Yes |
percentileName
Section titled “percentileName”Type: "p50", "p90", "p95", "p99"
stageLengthWarning
Section titled “stageLengthWarning”| Field | Type | Required | Description |
|---|---|---|---|
stage_index |
integer |
No | Absent for the warmup_duration rule, required for every other rule. ≥ 0 |
rule |
stageLengthRule | Yes | |
required_duration_seconds |
number |
Yes | The minimum length the rule demands of the stage (or of the warmup). > 0 |
actual_duration_seconds |
number |
Yes | > 0 |
scrape_interval_seconds |
number |
Yes | The scrape interval the rule was evaluated with: that of the slowest relevant job. > 0 |
scrape_interval_source |
scrapeIntervalSource | Yes | |
job |
string |
No | The Prometheus job whose interval limits resolution. Absent when the interval was assumed. |
percentile |
percentileName | No | Rule A: the percentile that lacks samples. |
required_requests |
integer |
No | Rule A: requests the stage needs for that percentile. ≥ 1 |
message |
string |
Yes |
phaseKind
Section titled “phaseKind”Type: "warmup", "stage", "cooldown"
| Field | Type | Required | Description |
|---|---|---|---|
name |
string |
Yes | warmup, stage-<index>, or cooldown. |
kind |
phaseKind | Yes | |
stage_index |
integer |
No | Zero-based; present when kind is stage. ≥ 0 |
offered_rps |
number |
No | > 0 |
start |
utcTimestamp | Yes | |
end |
utcTimestamp | Yes |