File tree Expand file tree Collapse file tree 1 file changed +5
-8
lines changed
Expand file tree Collapse file tree 1 file changed +5
-8
lines changed Original file line number Diff line number Diff line change 3232 }
3333
3434 upstream node_exporter {
35- server 127.0.0.1 :9100;
35+ server localhost :9100 ;
3636 keepalive 1024 ;
3737 }
3838
@@ -56,13 +56,10 @@ http {
5656 }
5757
5858 location /metrics {
59- proxy_pass http ://node_exporter;
60- proxy_http_version 1.1;
61- proxy_set_header Connection $connection_upgrade ;
62- proxy_set_header Upgrade $http_upgrade ;
63- proxy_set_header Host $host ;
64- proxy_set_header X-Real-IP $remote_addr ;
65- proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for ;
59+ proxy_pass http ://localhost:9100 ;
60+ proxy_set_header Host $host ;
61+ proxy_set_header X-Real-IP $remote_addr ;
62+ proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for ;
6663 }
6764
6865 access_log /var/log/nginx/access.log main;
You can’t perform that action at this time.
0 commit comments