monitoring

This commit is contained in:
41666 2024-02-11 02:35:33 -05:00
parent b83ad77f86
commit ec6e0c48a5

View file

@ -9,8 +9,8 @@
name = "nginx"; name = "nginx";
format = ''$server_name: $remote_addr - $remote_user [$time_local] "$request" $status $body_bytes_sent "$http_referer" "$http_user_agent" "$http_x_forwarded_for"''; format = ''$server_name: $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"];
relabels = [ relabel_configs = [
{ name = "host"; from = "server_name"; } { target_label = "host"; from = "server_name"; }
]; ];
}]; }];
}; };