From 26b9a542a7c47c4b5190b90c5ef2872e57436715 Mon Sep 17 00:00:00 2001 From: Max Rydahl Andersen Date: Mon, 8 Oct 2018 01:43:52 +0200 Subject: [PATCH] experimental sonos --- docker-compose.yml | 10 ++++++++++ prometheus/prometheus.yml | 7 ++++++- 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/docker-compose.yml b/docker-compose.yml index ed55e20..c5c626d 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -69,6 +69,16 @@ services: networks: - back-tier + sonos: + tty: true + stdin_open: true + expose: + - 1915 + ports: + - 1915:1915 + image: maxandersen/sonos_exporter + network_mode: host + nodeexp: privileged: true image: prom/node-exporter diff --git a/prometheus/prometheus.yml b/prometheus/prometheus.yml index b4e1e10..d464ed7 100644 --- a/prometheus/prometheus.yml +++ b/prometheus/prometheus.yml @@ -54,4 +54,9 @@ scrape_configs: - job_name: 'nodeexp' static_configs: - - targets: ['nodeexp:9100'] \ No newline at end of file + - targets: ['nodeexp:9100'] + + - job_name: 'sonos' + static_configs: + - targets: ['192.168.1.42:1915','sonos:1915'] + \ No newline at end of file