Skip to content

An API to select the cooler host to handle a giving payload/job.

License

Notifications You must be signed in to change notification settings

6zacode-toolbox/host-selector-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

host-selector-api

An API to select the cooler host to handle a giving payload/job.

Testing

Running

docker run -it -w /app \
        --name scala-sandbox \
        -e PROMETHEUS_HOST="127.0.0.1:9090" \
        -e SELECTOR_HOST_MAPPING="/source/dockerhostmapping.json" \
        -v $HOME/_DEV/dockerhostapi:/source \
        -v $PWD:/app -p 0.0.0.0:8080:8080 \
        --rm sbtscala/scala-sbt:eclipse-temurin-jammy-8u352-b08_1.8.2_2.12.17 /bin/bash
sbt run
curl http://localhost:9090/test -X POST  -H "Content-Type: application/json"  -d '{"filter":"hhgtg","strategy":"42"}'

How to collect smaple data

http://prometheus:9090/api/v1/query?query=CPU_Temperature[10m]

About

An API to select the cooler host to handle a giving payload/job.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published