Skip to content

Commit c96c008

Browse files
committed
nginx: add monitoring labels
1 parent f6b5c31 commit c96c008

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

config/nixos/applications/nginx.nix

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,11 @@ in
4747
name = "nginx";
4848
format = logFormat;
4949
source.files = ["/var/log/nginx/access.log"];
50+
relabel_configs = [
51+
{ target_label = "host"; from = "host"; }
52+
{ target_label = "user_agent"; from = "http_user_agent"; }
53+
{ target_label = "remote_address"; from = "remote_addr"; }
54+
];
5055
}
5156
];
5257
};

0 commit comments

Comments
 (0)