Skip to content

ddiiwoong/synology-prometheus

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Synology with Prometheus

Monitoring Synology NAS with snmp_exporter and prometheus

dashbaord

Dependency

  • Synology Docker
  • Enabled SSH
  • Administrator Access
  • Enabled SNMP
  • Enabled SNMPv1, SNMPv2 Service
  • Setup Communuity: synology

Architecture

arch

Synology IP

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__

Install

docker-compose up -d

Synology MIBs

SNMP Exporter Config Generator

Reference

https://grafana.com/grafana/dashboards/14284