Giter Club home page Giter Club logo

synology-prometheus's Introduction

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

synology-prometheus's People

Contributors

ddiiwoong avatar gustonator avatar webysther avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

synology-prometheus's Issues

Documentation is missing important information

I have not used snmp in depth, but I am trying to use your awesome tool here and I can't seem to get things wired correctly.

First, some questions in the config file.

  1. I believe this is the scrape endpoint for prometheus.
    - targets: ['192.168.0.100']
    I don't see a port in this example, but this doesn't run on port 80 by default. I am assuming a port needs to be declared here.
  2. I am also assuming that the snmp exporter services is using the request data from Prometheus to make a call to the synology nas.
    replacement: 192.168.0.100:9116 # The SNMP exporter's real synology hostname:port.
    This has a comment around that this IP:Port needs to be the IP and port of the Synology NAS. Does this support UDP? Also, by default Synology NAS uses UDP and port 161, which confused me a bit. Can you clarify?

I am looking forward to getting this to work. Thanks for your help.

No dashboard template.

question 1:
docker-composer.yml: line 28
- ./config/grafana-datasources.yaml:/etc/grafana/provisioning/datasources/datasources.yaml
maybe is the config of grafana

question 2:

no dashboard config in grafana. after import https://grafana.com/grafana/dashboards/11876 , it still not work, may be metrics are different.

and the snmp metrics are not shown in the prometheus datasource.
image

Support for Grafana 10

Hi,
will this work with Grafana 10.2.2?
I tried to import the dashboard but I see a lot of "Randomwalk" data in it:
immagine
immagine

snpm-exporter error

Hi there,

The snpm-exporter container can't parse config with 2 errors

Possible old config file, see https://github.com/prometheus/snmp_exporter/blob/main/auth-split-migration.md
Error parsing config file" err="yaml: unmarshal errors:\n  line 2: field synology not found in type config.Config

I tryed using snmp-0.24.x.yml but with it I can't see any data in the dashboard.

no data

Hi
maybe you have an idea.
I used your config, just put my synology IP
My Synology are based on DSM 7 (maybe important)

When I now switch to the snmp_export interface on 9116 and put my ip addresse (not important if the local or remote synology) it simply doesn't work
I get a timeout

level=info ts=2022-04-19T10:01:01.608Z caller=collector.go:224 module=synology target=192.168.178.22 msg="Error scraping target" err="scrape canceled (possible timeout) getting target 192.168.178.22"

And also I don't get any data within grafana

I tried the data from the node-exporter and here I can find data within my grafana and prometheus

maybe I'm doing something wrong??

All is running on a bridged network on my Synology NAS (no firewall)

Thanks for any ideas

Directory "snmp_exporter" does not exist.

Hi, I recently had forked and apply your repo to my synology nas. But when I run docker-compose up, it gave me error something like directory "snmp_exporter" does not exist. .
After I changed ./snmp_exporter/:/etc/snmp_exporter/ to ./snmp_synology/:/etc/snmp_exporter/ (docker-compose.yml on line 52). It work perfectly.
Maybe you have your reason for binding the volumes as you did. But I thought I just let you know. Thanks 👍

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.