monitoring
This commit is contained in:
parent
b83ad77f86
commit
ec6e0c48a5
1 changed files with 2 additions and 2 deletions
|
@ -9,8 +9,8 @@
|
|||
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"'';
|
||||
source.files = ["/var/log/nginx/access.log"];
|
||||
relabels = [
|
||||
{ name = "host"; from = "server_name"; }
|
||||
relabel_configs = [
|
||||
{ target_label = "host"; from = "server_name"; }
|
||||
];
|
||||
}];
|
||||
};
|
||||
|
|
Loading…
Add table
Reference in a new issue