Skip to content

nosinovacao/docker-vegeta

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Vegeta Docker

Docker image for the Vegeta HTTP load testing tool.

Usage

To build image:

docker build -t docker-vegeta .

To run:

docker run -d -p 8000:80 --name vegeta vegeta:1.0

Api Usage

Simple Request:

curl --location --request POST 'http://vegeta-server/api/v1/attack' \
--header 'Content-Type: application/json' \
--data-raw '{
    "rate": 10,
    "duration": "10s",
    "target": {
        "method": "GET",
        "URL": "http://some.host./and/end/point",
        "scheme": "http"
    }
}
'

Documentation - Vegeta RestApi