update worker metrics exposure
This commit is contained in:
parent
a138276c54
commit
9bec5f0104
7 changed files with 71 additions and 13 deletions
|
|
@ -65,7 +65,7 @@ server {
|
|||
deny all;
|
||||
}
|
||||
|
||||
# Metrics to master
|
||||
# Metrics to worker-generic
|
||||
location ~ /synapse-worker-generic/metrics {
|
||||
proxy_set_header X-Forwarded-For $remote_addr;
|
||||
proxy_set_header X-Forwarded-Proto $scheme;
|
||||
|
|
@ -80,6 +80,36 @@ server {
|
|||
deny all;
|
||||
}
|
||||
|
||||
# Metrics to worker-sync
|
||||
location ~ /synapse-worker-sync/metrics {
|
||||
proxy_set_header X-Forwarded-For $remote_addr;
|
||||
proxy_set_header X-Forwarded-Proto $scheme;
|
||||
proxy_set_header Host $http_host;
|
||||
proxy_pass http://synapse-worker-generic:9000;
|
||||
|
||||
allow 10.161.228.115;
|
||||
allow 10.161.228.116;
|
||||
allow 10.161.228.117;
|
||||
allow 10.161.228.118;
|
||||
allow 10.161.228.119;
|
||||
deny all;
|
||||
}
|
||||
|
||||
# Metrics to worker-federation
|
||||
location ~ /synapse-worker-federation/metrics {
|
||||
proxy_set_header X-Forwarded-For $remote_addr;
|
||||
proxy_set_header X-Forwarded-Proto $scheme;
|
||||
proxy_set_header Host $http_host;
|
||||
proxy_pass http://synapse-worker-generic:9000;
|
||||
|
||||
allow 10.161.228.115;
|
||||
allow 10.161.228.116;
|
||||
allow 10.161.228.117;
|
||||
allow 10.161.228.118;
|
||||
allow 10.161.228.119;
|
||||
deny all;
|
||||
}
|
||||
|
||||
|
||||
# All other matrix/synapse requests go to main
|
||||
location ~ /_matrix|/_synapse {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue