diff --git a/README.md b/README.md index 159b338..6541894 100644 --- a/README.md +++ b/README.md @@ -80,14 +80,25 @@ scale it can call the outscaler to persist the right action ```sh curl -v -d '{"direction": true}' \ - http://localhost:8000/handle/infra_scale/docker + http://localhost:8000/v1/orbiter/handle/infra_scale/docker ``` Or if you prefer ```sh -curl -v -X POST http://localhost:8000/handle/infra_scale/docker/up +curl -v -X POST http://localhost:8000/v1/orbiter/handle/infra_scale/docker/up ``` +You can look at the list of services managed by orbiter: + +```sh +curl -v -X GET http://localhost:8000/v1/orbiter/autoscaler +``` + +Look at the health to know if everything is working: + +```sh +curl -v -X GET http://localhost:8000/v1/orbiter/halth +``` ## Autodetect The autodetect mode starts when you don't specify any configuration file. diff --git a/contrib/swarm/Makefile b/contrib/swarm/Makefile index cecd7ea..96e0d34 100644 --- a/contrib/swarm/Makefile +++ b/contrib/swarm/Makefile @@ -9,6 +9,6 @@ ps: docker service ls docker stack ps stack scale-up: - curl -X POST -v http://$(IP):8081/handle/autoswarm/stack_micro/up + curl -X POST -v http://$(IP):8081/v1/orbiter/handle/autoswarm/stack_micro/up scale-down: - curl -X POST -v http://$(IP):8081/handle/autoswarm/stack_micro/down + curl -X POST -v http://$(IP):8081/v1/orbiter/handle/autoswarm/stack_micro/down