summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xci/launch_docker_container.sh3
-rw-r--r--docker-compose/nginx.conf5
-rw-r--r--rest_server.py6
3 files changed, 10 insertions, 4 deletions
diff --git a/ci/launch_docker_container.sh b/ci/launch_docker_container.sh
index 2dfde93..4f4e38b 100755
--- a/ci/launch_docker_container.sh
+++ b/ci/launch_docker_container.sh
@@ -23,7 +23,8 @@ then
sudo chown 33:33 ${ci}/job/carbon
fi
-docker-compose -f ../docker-compose/docker-compose.yaml up -d
+docker-compose pull
+docker-compose up -d
echo "Waiting for StorPerf to become active"
curl -X GET 'http://127.0.0.1:5000/api/v1.0/configurations' > test.html 2>&1
diff --git a/docker-compose/nginx.conf b/docker-compose/nginx.conf
index b7933ac..6771358 100644
--- a/docker-compose/nginx.conf
+++ b/docker-compose/nginx.conf
@@ -20,6 +20,11 @@ http {
proxy_set_header Host $host:$proxy_port;
}
+ location /graphite/ {
+ proxy_pass http://storperf:8000;
+ proxy_set_header Host $host:$proxy_port;
+ }
+
location /swagger/ {
if ($containsurl = 0) {
return 302 $scheme://$host:$server_port$uri?url=http://$host:$server_port/api/spec.json$args;
diff --git a/rest_server.py b/rest_server.py
index dcf6be5..27a8453 100644
--- a/rest_server.py
+++ b/rest_server.py
@@ -188,8 +188,8 @@ class Job(Resource):
def get(self):
metrics_type = "metrics"
- if request.args.get('metrics_type'):
- metrics_type = request.args.get('metrics_type')
+ if request.args.get('type'):
+ metrics_type = request.args.get('type')
workload_id = request.args.get('id')
@@ -338,4 +338,4 @@ if __name__ == "__main__":
setup_logging()
logging.getLogger("storperf").setLevel(logging.DEBUG)
- app.run(host='0.0.0.0', debug=True)
+ app.run(host='0.0.0.0', debug=True, threaded=True)