pinpoint 컬렉터 nginx 설정
6196 단어 pinpoint
worker_processes 16;
error_log logs/error.log;
pid logs/nginx.pid;
events {
worker_connections 65535;
}
stream {
log_format main '$remote_addr [$time_local] '
'$protocol $status $bytes_sent $bytes_received '
'$session_time "$upstream_addr" '
'"$upstream_bytes_sent" "$upstream_bytes_received" "$upstream_connect_time"';
access_log logs/access.log main;
upstream 9995_udp_upstreams {
server collector1:9995 max_fails=3 fail_timeout=30s;
server collector2:9995 max_fails=3 fail_timeout=30s;
}
upstream 9996_udp_upstreams {
server collector1:9996 max_fails=3 fail_timeout=30s;
server collector2:9996 max_fails=3 fail_timeout=30s;
}
upstream 9994_tcp_upstreams {
server collector1:9994 max_fails=3 fail_timeout=30s;
server collector2:9994 max_fails=3 fail_timeout=30s;
}
server {
listen 9995 udp;
proxy_pass 9995_udp_upstreams;
proxy_timeout 10s;
}
server {
listen 9996 udp;
proxy_pass 9996_udp_upstreams;
proxy_timeout 10s;
}
server {
listen 9994 so_keepalive=on;
proxy_pass 9994_tcp_upstreams;
}
}
http {
include mime.types;
default_type application/octet-stream;
log_format main '$remote_addr - $remote_user [$time_local] "$request" '
'$status $body_bytes_sent "$http_referer" '
'"$http_user_agent" "$http_x_forwarded_for"';
access_log logs/access.log main;
sendfile on;
#tcp_nopush on;
#keepalive_timeout 0;
keepalive_timeout 65;
#gzip on;
map $http_upgrade $connection_upgrade {
default upgrade;
'' close;
}
upstream pinpoint{
server web1:8080;
server web2:8080;
}
server {
listen 80;
server_name trace.xxx.com;
location / {
proxy_pass http://pinpoint;
}
location /agent {
proxy_pass http://pinpoint;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
}
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root html;
}
}
}
이 내용에 흥미가 있습니까?
현재 기사가 여러분의 문제를 해결하지 못하는 경우 AI 엔진은 머신러닝 분석(스마트 모델이 방금 만들어져 부정확한 경우가 있을 수 있음)을 통해 가장 유사한 기사를 추천합니다:
pinpoint 컬렉터 nginx 설정텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
CC BY-SA 2.5, CC BY-SA 3.0 및 CC BY-SA 4.0에 따라 라이센스가 부여됩니다.