-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
NDEV-2475 collect metrics for requests to Solana (#51)
* NDEV-2475 collect metrics for requests to Solana
- Loading branch information
1 parent
67f624a
commit 45df904
Showing
6 changed files
with
212 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
events { | ||
worker_connections 1024; | ||
} | ||
|
||
http { | ||
log_format json_combined escape=json | ||
'{ "@timestamp": "$time_iso8601", ' | ||
'"remote_addr": "$remote_addr", ' | ||
'"request": "$request", ' | ||
'"status": "$status", ' | ||
'"body_bytes_sent": "$body_bytes_sent", ' | ||
'"http_referer": "$http_referer", ' | ||
'"http_user_agent": "$http_user_agent", ' | ||
'"request_time": "$request_time", ' | ||
'"jsonrpc_method": "$request_body" }'; | ||
|
||
access_log /var/log/nginx/access.log json_combined buffer=8k flush=20s; | ||
|
||
server { | ||
listen 8080; | ||
|
||
location / { | ||
proxy_pass http://solana:8899; | ||
proxy_set_header Host $host; | ||
proxy_set_header X-Real-IP $remote_addr; | ||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | ||
proxy_set_header X-Forwarded-Proto $scheme; | ||
} | ||
|
||
location /logs { | ||
alias /var/log/nginx/; | ||
} | ||
} | ||
} |