37 lines
1.3 KiB
Plaintext
37 lines
1.3 KiB
Plaintext
|
listen:
|
||
|
port: {{ matrix_prometheus_nginxlog_exporter_container_metrics_port }}
|
||
|
address: "0.0.0.0"
|
||
|
metrics_endpoint: "/metrics"
|
||
|
|
||
|
namespaces:
|
||
|
- name: matrix
|
||
|
metrics_override:
|
||
|
preffix: "myprefix"
|
||
|
namespace_label: "namespace"
|
||
|
format: "$log_source $server_name - $upstream_addr - $remote_addr - $remote_user [$time_local] $host \"$request\" $status \"$http_referer\" \"$http_user_agent\" \"$http_x_forwarded_for\""
|
||
|
# enable to print to console
|
||
|
# print_log: true
|
||
|
source:
|
||
|
syslog:
|
||
|
listen_address: "udp://0.0.0.0:{{ matrix_prometheus_nginxlog_exporter_container_syslog_port }}"
|
||
|
# format options: "rfc3164" ,"rfc5424", "rfc6587", "auto"
|
||
|
format: auto
|
||
|
tags: ["matrix_nginx_proxy", "matrix_nginx_proxy_companion"]
|
||
|
relabel_configs:
|
||
|
- target_label: request_uri
|
||
|
from: request
|
||
|
split: 2
|
||
|
separator: ' '
|
||
|
matches:
|
||
|
- regexp: "^([^\\?]+)(.*)"
|
||
|
replacement: "$1"
|
||
|
- target_label: remote_addr
|
||
|
from: remote_addr
|
||
|
- target_label: server_name
|
||
|
from: server_name
|
||
|
- target_label: http_x_forwarded_for
|
||
|
from: http_x_forwarded_for
|
||
|
- target_label: request_host
|
||
|
from: host
|
||
|
- target_label: log_source
|
||
|
from: log_source
|