feat: telegraf logs and metrics

This commit is contained in:
2023-06-11 21:54:18 +01:00
parent 355833c9f9
commit ca8de72f58
6 changed files with 11849 additions and 20 deletions

View 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;