-
Notifications
You must be signed in to change notification settings - Fork 56
Description
Hello, I must first thank the developers for the spectacular monitoring tool.
Now I need to tell you a problem I'm having to access my metrics from an api that uses proxy.
It works as follows, my api is connected on port 5454 so I put the monitor defining the url:
dash.attach ({
url: '/ api / monitor'
});
Locally worked, however external it does not bring me any monitoring data, it is empty.
My proxy works when the user types my domain name + api.
I use nginx proxy:
location / api {
proxy_set_header X-Real-IP $ remote_addr;
proxy_set_header X-Forwarded-For $ proxy_add_x_forwarded_for;
proxy_set_header Host $ http_host;
proxy_set_header X-NginX-Proxy true;
proxy_pass http: // localhost: 5450;
proxy_redirect off;
proxy_http_version 1.1;
proxy_set_header Upgrade $ http_upgrade;
proxy_set_header Connection "upgrade";
}