Commit 99eddd50 by Karsa Zoltán István

update nginx conf for loadb

parent f4c31e6a
......@@ -37,6 +37,31 @@ server {
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
}
# Load balancer support
location /RBstat {
set $time -8d;
if ($query_string ~* "time=(.*)") {
set $time $1;
}
set $target_param sum(circle.*.vmcount);
if ($query_string ~* "target=(.*)") {
set $target_param $1;
}
set $format_param png;
if ($query_string ~* "format=(.*)") {
set $format_param $1;
}
set $title_param $target_param;
if ($query_string ~* "title=(.*)") {
set $title_param $1;
}
set $until_param 0;
if ($query_string ~* "until=(.*)") {
set $until_param $1;
}
proxy_pass http://127.0.0.1:8081/render?format=$format_param&target=$target_param&from=$time&height=800&width=1400&hideLegend=false&areaMode=all&target=constantLine(0)&title=$title_param;
}
}
{% if pillar['deployment_type'] == "local" %}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment