mirror of
https://github.com/weaveworks/scope.git
synced 2026-07-20 22:10:30 +00:00
Add DynamoDB based collector
- Store compressed reports in dynamodb
Add SQS based control router.
- Uses a queue per probe and a queue per UI for control requests & responses.
Add Consul-based, horizontally-scalable, multi-tenant pipe router.
- Uses consul to coordinate each end of pipe connections replicas of a pipe service.
52 lines
1.4 KiB
Plaintext
52 lines
1.4 KiB
Plaintext
server {
|
|
# Listen on port 80 insecurely until the probes all support https
|
|
listen 80;
|
|
resolver dns.weave.local;
|
|
|
|
# topology (from UI) websockets
|
|
location ~ ^/api/topology/[^/]+/ws {
|
|
proxy_pass http://query.weave.local$request_uri;
|
|
proxy_http_version 1.1;
|
|
proxy_set_header Upgrade $http_upgrade;
|
|
proxy_set_header Connection "upgrade";
|
|
}
|
|
|
|
# control (from probe) websockets
|
|
location = /api/control/ws {
|
|
proxy_pass http://controls.weave.local$request_uri;
|
|
proxy_http_version 1.1;
|
|
proxy_set_header Upgrade $http_upgrade;
|
|
proxy_set_header Connection "upgrade";
|
|
}
|
|
|
|
# control (from probe & UI) websockets
|
|
location ~ ^/api/pipe/[^/]+(/probe)? {
|
|
proxy_pass http://pipes.weave.local$request_uri;
|
|
proxy_http_version 1.1;
|
|
proxy_set_header Upgrade $http_upgrade;
|
|
proxy_set_header Connection "upgrade";
|
|
}
|
|
|
|
location = /api/report {
|
|
proxy_pass http://collection.weave.local$request_uri;
|
|
}
|
|
|
|
location /api/topology {
|
|
proxy_pass http://query.weave.local$request_uri;
|
|
}
|
|
|
|
location /api/control {
|
|
proxy_pass http://controls.weave.local$request_uri;
|
|
}
|
|
|
|
# Static version file
|
|
location = /api {
|
|
alias /home/weave/api.json;
|
|
}
|
|
|
|
# The rest will be served by the collection server (any one can do it)
|
|
location / {
|
|
proxy_pass http://collection.weave.local$request_uri;
|
|
}
|
|
}
|