enable metrics for runa
This commit is contained in:
parent
848ff0e4c5
commit
bff5c7557e
2 changed files with 23 additions and 1 deletions
|
@ -310,6 +310,13 @@ listeners:
|
|||
resources:
|
||||
- names: [replication]
|
||||
|
||||
- port: 9000
|
||||
type: metrics
|
||||
tls: false
|
||||
x_forwarded: true
|
||||
resources:
|
||||
- names: [metrics]
|
||||
compress: false
|
||||
|
||||
# example additional_resources:
|
||||
#
|
||||
|
@ -1513,7 +1520,7 @@ account_validity:
|
|||
|
||||
# Enable collection and rendering of performance metrics
|
||||
#
|
||||
#enable_metrics: false
|
||||
enable_metrics: true
|
||||
|
||||
# Enable sentry integration
|
||||
# NOTE: While attempts are made to ensure that the logs don't contain
|
||||
|
|
|
@ -44,6 +44,21 @@ server {
|
|||
proxy_pass http://synapse-worker-generic:8008;
|
||||
}
|
||||
|
||||
# Metrics to master
|
||||
location ~ /_synapse/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-main: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 {
|
||||
proxy_set_header X-Forwarded-For $remote_addr;
|
||||
|
|
Loading…
Reference in a new issue