You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
37 lines
1.3 KiB
37 lines
1.3 KiB
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 |