monitoring

This commit is contained in:
41666 2024-02-11 02:31:48 -05:00
parent 3202bf379f
commit 4c0602ff39

View file

@ -9,7 +9,7 @@
name = "nginx"; name = "nginx";
format = ''$http_host: $remote_addr - $remote_user [$time_local] "$request" $status $body_bytes_sent "$http_referer" "$http_user_agent" "$http_x_forwarded_for"''; format = ''$http_host: $remote_addr - $remote_user [$time_local] "$request" $status $body_bytes_sent "$http_referer" "$http_user_agent" "$http_x_forwarded_for"'';
source.files = ["/var/log/nginx/access.log"]; source.files = ["/var/log/nginx/access.log"];
relabel = [ relabels = [
{ name = "host"; from = "http_host"; } { name = "host"; from = "http_host"; }
{ name = "request"; from = "request"; } { name = "request"; from = "request"; }
{ name = "body_bytes_sent"; from = "body_bytes_sent"; } { name = "body_bytes_sent"; from = "body_bytes_sent"; }