14 lines
546 B
Plaintext
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)";
|
|
}
|
|
|
|
}
|