From eb9b904f4fd44e87305a64d1bd5ecc6e9f62e109 Mon Sep 17 00:00:00 2001 From: Kazuhiro MUSASHI Date: Sat, 24 Oct 2020 13:14:40 +0900 Subject: [PATCH] Monitor `synology` NAS. --- .../files/etc/prometheus.d/prometheus.yml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/cookbooks/prometheus/files/etc/prometheus.d/prometheus.yml b/cookbooks/prometheus/files/etc/prometheus.d/prometheus.yml index b690880..80d7404 100644 --- a/cookbooks/prometheus/files/etc/prometheus.d/prometheus.yml +++ b/cookbooks/prometheus/files/etc/prometheus.d/prometheus.yml @@ -66,6 +66,21 @@ scrape_configs: services: - 'grafana' + - job_name: 'synology' + static_configs: + - targets: + - 192.168.10.200 # SNMP device. + metrics_path: /snmp + params: + module: [synology] + relabel_configs: + - source_labels: [__address__] + target_label: __param_target + - source_labels: [__param_target] + target_label: instance + - target_label: __address__ + replacement: 127.0.0.1:9116 # The SNMP exporter's real hostname:port. + alerting: alertmanagers: - static_configs: