packages/utils/prometheus-statsd-exporter/files/etc/config/prometheus-statsd-exporter
Andre Heider b53fcc98b9 prometheus-statsd-exporter: switch config to openwrt interface names
Drop the config knobs '*_address' and introduce '*_interface'
and '*_ipv6' instead.

'*_interface' takes an openwrt interface name ('loopback', 'lan',
'wan' etc), from which the primary IP is used to listen on. If
the matching '*_ipv6' is set to '1', the IPv6 adress will be used,
IPv4 elsewise.

procd interface triggers are now combined with this, so if a listen
interface is not yet configured when the init script is executed, the
process start is defered, and the trigger takes care of that once
the interfaces are ready.

Signed-off-by: Andre Heider <a.heider@gmail.com>
2019-01-09 09:25:43 +01:00

12 lines
423 B
Text

config prometheus-statsd-exporter 'main'
option web_interface 'loopback'
option web_port '9102'
option web_ipv6 '0'
option web_telemetry_path '/metrics'
option statsd_udp_interface 'loopback'
option statsd_udp_port '9125'
option statsd_udp_ipv6 '0'
option statsd_tcp_interface 'loopback'
option statsd_tcp_port '9125'
option statsd_tcp_ipv6 '0'
option statsd_mapping_config '/etc/prometheus-statsd-exporter.yml'