Git Product home page Git Product logo

syncthing_exporter's Introduction

Syncthing exporter

Build and run exporter

Clone current repository and

cd syncthing_exporter
go build .

./syncthing_exporter --version

For pre-built binaries please take a look at the releases.

Basic prometheus configuration:

  - job_name: 'syncthing_server'
    metrics_path: /metrics
    static_configs:
      - targets: ['127.0.0.1:9093']
        labels:
          service: syncthing_server

Start flags

Name Evironment variable Required Description
web.listen-address WEB_LISTEN_ADDRESS - Address ot listen on for web interface and telemetry
web.metrics-path WEB_METRIC_PATH - Path under which to expose metrics
syncthing.uri SYNCTHING_URI + HTTP API address of Syncthing node
syncthing.token SYNCTHING_TOKEN + Token for authentification Syncthing HTTP API
syncthing.timeout SYNCTHING_TIMEOUT - Timeout for trying to get stats from Syncthing
syncthing.foldersid SYNCTHING_FOLDERSID - List of ids of folders, delimeter is ','

What's and how exported

Example of all metrics related to syncthing here.

For data obtaining is using two endpoints:

GET /rest/svc/report
GET /rest/system/connections
GET /rest/stats/device
GET /rest/db/status*

* This is an expensive call, increasing CPU and RAM usage on the device. Use sparingly.

Grafana dashboard

Example of grafana dashboard:

screenshot-1.png

Docker support

How to run

docker run -it -e "SYNCTHING_URI=http://127.0.0.1:8384/" -e SYNCTHING_TOKEN="super-secure-token" f100024/syncthing_exporter:latest

docker-compose example:

  syncthing_exporter:
    image: f100024/syncthing_exporter:latest
    ports:
      - 9093:9093
    environment:
      SYNCTHING_URI: "http://127.0.0.1:8384/"
      SYNCTHING_TOKEN: "super-secure-token"
    restart: unless-stopped

Communal effort

Any ideas and pull requests are appreciated.

syncthing_exporter's People

Contributors

ansen avatar f100024 avatar

Watchers

 avatar

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.