Monitoring Synology NAS with snmp_exporter and prometheus
- Synology Docker
- Enabled SSH
- Administrator Access
- Enabled SNMP
- Enabled SNMPv1, SNMPv2 Service
- Setup Communuity: synology
In order to communicate with the synology SNMP service, the target of SNMP Exporter is required to register the Synology IP that is actually in use.
scrape_configs:
- job_name: 'prometheus'
static_configs:
- targets: ['localhost:9090']
labels:
group: 'prometheus'
- job_name: node
static_configs:
- targets: ['node-exporter:9100']
- job_name: 'snmp-exporter'
static_configs:
- targets: ['<Synology IP>']
metrics_path: /snmp
params:
module: [synology]
relabel_configs:
- source_labels: [__address__]
target_label: __param_target
- source_labels: [__param_target]
target_label: instance
- source_labels: [__param_target]
regex: (.*)
replacement: ${1}:9116
target_label: __address__
docker-compose up -d