This repository has been archived on 2024-05-11. You can view files and clone it, but cannot push or open issues or pull requests.
docker-infrastruktur/mapserver/renderer-proxy/default.conf

14 lines
546 B
Plaintext

server {
listen 80;
server_name localhost;
location ~ /render/clients/(.*) {
proxy_pass "http://127.0.0.1:8080/?g0.expr=max_over_time(node_clients.total%7Bnodeid=%22$1%22%7D[30m])&width=650&height=350&g0.legend=Clients%20(total)";
}
location ~ /render/traffic/(.*) {
proxy_pass "http://127.0.0.1:8080/?g0.expr=irate(node_traffic.tx.bytes%7Bnodeid=%22$1%22%7D)&g1.expr=irate(node_traffic.rx.bytes%7Bnodeid=%22$1%22%7D)&width=650&height=350&g0.legend=Traffic%20(out)&g1.legend=Traffic%20(in)";
}
}