Directories
¶
| Path | Synopsis |
|---|---|
|
cmd
|
|
|
myrtille
command
Command myrtille orchestrates a load-test run against a service: bring it into a known state (init), run a k6 scenario against it while scraping its /metrics endpoint, and write a report of what happened.
|
Command myrtille orchestrates a load-test run against a service: bring it into a known state (init), run a k6 scenario against it while scraping its /metrics endpoint, and write a report of what happened. |
|
examples
|
|
|
demo-service/stubservice
command
Command stubservice is a tiny fixture service used by the myrtille demo: it exposes /users (create, delete), /products (list), /orders (write endpoint scenarios hit under load), and /metrics (Prometheus format), so examples/demo-service/myrtille.yaml has something real to talk to.
|
Command stubservice is a tiny fixture service used by the myrtille demo: it exposes /users (create, delete), /products (list), /orders (write endpoint scenarios hit under load), and /metrics (Prometheus format), so examples/demo-service/myrtille.yaml has something real to talk to. |
|
internal
|
|
|
config
Package config parses and validates the myrtille.yaml file that describes a single load-test project: the service under test, the declarative init steps, the k6 script to run, and where to write the report.
|
Package config parses and validates the myrtille.yaml file that describes a single load-test project: the service under test, the declarative init steps, the k6 script to run, and where to write the report. |
|
initphase
Package initphase executes the declarative HTTP steps configured under `init.steps` to bring the target service into a known state, extracting values (IDs, etc.) from responses into a state.Dict that k6 scenarios can later randomize over.
|
Package initphase executes the declarative HTTP steps configured under `init.steps` to bring the target service into a known state, extracting values (IDs, etc.) from responses into a state.Dict that k6 scenarios can later randomize over. |
|
k6gen
Package k6gen renders the declarative HTTP steps configured under `k6.steps` into a k6-compatible JS scenario file, for projects that don't need a hand-written scenario.js.
|
Package k6gen renders the declarative HTTP steps configured under `k6.steps` into a k6-compatible JS scenario file, for projects that don't need a hand-written scenario.js. |
|
k6run
Package k6run shells out to the k6 binary to execute a load test scenario, passing it the generated state dictionary via an environment variable, and parses the resulting --summary-export JSON so the report phase can show pass/fail thresholds and key metrics.
|
Package k6run shells out to the k6 binary to execute a load test scenario, passing it the generated state dictionary via an environment variable, and parses the resulting --summary-export JSON so the report phase can show pass/fail thresholds and key metrics. |
|
metrics
Package metrics periodically scrapes a Prometheus-format /metrics endpoint on the target service while k6 is running, so the report phase can show how internal service metrics behaved under load.
|
Package metrics periodically scrapes a Prometheus-format /metrics endpoint on the target service while k6 is running, so the report phase can show how internal service metrics behaved under load. |
|
orchestrator
Package orchestrator wires the init, k6 run, metrics scrape, and report phases together into the single pipeline the CLI drives.
|
Package orchestrator wires the init, k6 run, metrics scrape, and report phases together into the single pipeline the CLI drives. |
|
report
Package report aggregates the results of the init, k6 run, and metrics scraping phases into a single Report, rendered to Markdown and/or JSON files for a human (or an issue/ticket comment) to read.
|
Package report aggregates the results of the init, k6 run, and metrics scraping phases into a single Report, rendered to Markdown and/or JSON files for a human (or an issue/ticket comment) to read. |
|
state
Package state holds the dictionary of values gathered during the init phase (e.g.
|
Package state holds the dictionary of values gathered during the init phase (e.g. |
Click to show internal directories.
Click to hide internal directories.