feat: telegraf logs and metrics
This commit is contained in:
9
docker/nginx/rootfs/etc/nginx/conf.d/default.conf
Normal file
9
docker/nginx/rootfs/etc/nginx/conf.d/default.conf
Normal file
@@ -0,0 +1,9 @@
|
||||
server_names_hash_bucket_size 64;
|
||||
log_format telegraf-log '$remote_addr - $remote_user [$time_local]'
|
||||
'"$request" $status $body_bytes_sent'
|
||||
'"$http_referer" "$http_user_agent"'
|
||||
'"$request_time" "$upstream_connect_time"'
|
||||
'$http_host "xxx" "yyy"';
|
||||
#'"$geoip_city" "$geoip_city_country_code"';
|
||||
access_log /var/log/nginx/access-file.log telegraf-log;
|
||||
|
||||
Reference in New Issue
Block a user