initial module
This commit is contained in:
57
dockerized/nginx.conf
Normal file
57
dockerized/nginx.conf
Normal file
@@ -0,0 +1,57 @@
|
||||
load_module /usr/local/nginx/modules/ngx_http_monitoring_module.so;
|
||||
|
||||
user nginx;
|
||||
worker_processes auto;
|
||||
|
||||
error_log /var/log/nginx/error.log info;
|
||||
pid /var/run/nginx.pid;
|
||||
|
||||
events {
|
||||
worker_connections 65535;
|
||||
multi_accept on;
|
||||
}
|
||||
|
||||
http {
|
||||
default_type application/octet-stream;
|
||||
sendfile on;
|
||||
tcp_nopush on;
|
||||
tcp_nodelay on;
|
||||
keepalive_timeout 65;
|
||||
server_tokens off;
|
||||
|
||||
access_log /var/log/nginx/access.log;
|
||||
|
||||
monitor_refresh_interval 1s;
|
||||
monitor_history 5m;
|
||||
monitor_resolution 1s;
|
||||
monitor_shm_size 8m;
|
||||
monitor_collect_system on;
|
||||
monitor_collect_nginx on;
|
||||
monitor_collect_network on;
|
||||
monitor_access_log on;
|
||||
monitor_max_top_urls 100;
|
||||
|
||||
server {
|
||||
listen 8080;
|
||||
server_name _;
|
||||
|
||||
location /monitor {
|
||||
monitor on;
|
||||
monitor_dashboard on;
|
||||
monitor_api on;
|
||||
monitor_sse on;
|
||||
monitor_rate_limit 240;
|
||||
monitor_cors "*";
|
||||
}
|
||||
|
||||
location = / {
|
||||
default_type text/plain;
|
||||
return 200 "ngx_http_monitoring_module docker image\nopen /monitor for the dashboard\n";
|
||||
}
|
||||
|
||||
location = /workload {
|
||||
default_type application/json;
|
||||
return 200 "{\"status\":\"ok\",\"source\":\"dockerized-nginx\"}\n";
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user