Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

https://github.com/ddiiwoong/synology-prometheus

Monitoring Synology NAS with snmp-exporter and prometheus
https://github.com/ddiiwoong/synology-prometheus

monitoring nas promethleus snmp-exporter synology

Last synced: 14 days ago
JSON representation

Monitoring Synology NAS with snmp-exporter and prometheus

Lists

README

        

## Synology with Prometheus

Monitoring Synology NAS with snmp_exporter and prometheus

![dashbaord](./assets/synology.png)

## Dependency
- [Synology Docker](https://www.synology.com/en-global/dsm/packages/Docker)
- Enabled SSH
- Administrator Access
- Enabled SNMP
- Enabled SNMPv1, SNMPv2 Service
- Setup Communuity: synology

## Architecture

![arch](./assets/arch.png)

## 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.

```yaml
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: ['']
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](https://github.com/prometheus/snmp_exporter/tree/main/generator)

## Reference

[https://grafana.com/grafana/dashboards/14284](https://grafana.com/grafana/dashboards/14284)