From 6e633166fdf0ea26ac25fde2b299b52e2adec8b9 Mon Sep 17 00:00:00 2001 From: Kazuhiro MUSASHI Date: Fri, 10 Feb 2023 21:50:57 +0900 Subject: [PATCH] Modify config for `exporter_proxy`. --- .../etc/prometheus_exporters.d/exporter_proxy/config.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/cookbooks/prometheus-exporters/files/etc/prometheus_exporters.d/exporter_proxy/config.yml b/cookbooks/prometheus-exporters/files/etc/prometheus_exporters.d/exporter_proxy/config.yml index a6d0d27..f970a4a 100644 --- a/cookbooks/prometheus-exporters/files/etc/prometheus_exporters.d/exporter_proxy/config.yml +++ b/cookbooks/prometheus-exporters/files/etc/prometheus_exporters.d/exporter_proxy/config.yml @@ -3,13 +3,13 @@ listen: "0.0.0.0:60000" # access_log (optional) access_log: - path: "/dev/stdout" + path: "/var/log/exporter_proxy_access.log" format: "ltsv" fields: ['time', 'time_nsec', 'status', 'size', 'reqtime_nsec', 'backend', 'path', 'query', 'method'] # error_log (required) error_log: - path: "/dev/stderr" + path: "/var/log/exporter_proxy_access.log" # exporters: The path of exporter_proxy and the URL of the destination exporter exporters: @@ -19,3 +19,4 @@ exporters: filestat_exporter: path: "/filestat_exporter/metrics" url: "http://127.0.0.1:9943/metrics" +