From c74707cd94243ce687c38e36208cbdcb8bd7666a Mon Sep 17 00:00:00 2001 From: Max Rydahl Andersen Date: Mon, 8 Oct 2018 02:05:14 +0200 Subject: [PATCH] use ip + 0.0.0.0 --- docker-compose.yml | 2 ++ prometheus/prometheus.yml | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/docker-compose.yml b/docker-compose.yml index c5c626d..6df7e47 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -77,6 +77,8 @@ services: ports: - 1915:1915 image: maxandersen/sonos_exporter + command: + - '--address 0.0.0.0:1915' network_mode: host nodeexp: diff --git a/prometheus/prometheus.yml b/prometheus/prometheus.yml index fa1f11f..98f81a8 100644 --- a/prometheus/prometheus.yml +++ b/prometheus/prometheus.yml @@ -58,5 +58,5 @@ scrape_configs: - job_name: 'sonos' static_configs: - - targets: ['localhost:1915'] + - targets: ['192.168.1.42:1915'] \ No newline at end of file