GithubHelp home page GithubHelp logo

fortu / opentracker-influxdb Goto Github PK

View Code? Open in Web Editor NEW
5.0 1.0 2.0 16 KB

๐Ÿšœ + ๐Ÿ“ˆ Save stats of a Bittorrent OpenTracker to InfluxDB

License: GNU General Public License v3.0

Python 100.00%
grafana influxdb torrent torrents tracker-server torrent-tracker opentracker bittorrent bittorrent-tracker graphs graph

opentracker-influxdb's Introduction

OpenTracker-InfluxDB

A script that take statistics from Bittorrent OpenTracker and write it into a InfluxDB database to use it later with any type of graph generator software like Grafana or Chronograf.

Dependencies

You need to install python-lxml package

sudo apt install python-lxml

Configure

Before install the script edit the next variables on it with the correct values:

# InfluxDB server and port (IP:PORT)
influxdb_server = 'MyInfluxDB.com:8086'

# Uncomment the line below if you use 'https://' to access to your server
influxdb_server = 'https://' + influxdb_server + "/write"

# Uncomment the line below if you use 'http://' to access to your server
#influxdb_server = 'http://' + influxdb_server + "/write"


# InfluxDB Database name
database = 'testdb'

# InfluxDB Auth
username = 'unflux-suser'
password = 'AtB73HeTqp'

Install

Copy the script to /usr/local/bin:

sudo cp opentracker-stats.py /usr/local/bin

Copy the systemd service and enable it:

sudo cp opentracker-stats.service /etc/systemd/system
sudo systemctl enable /etc/systemd/system/opentracker-stats.service

Start, Stop... the script

sudo service opentracker-stats start
sudo service opentracker-stats stop
sudo service opentracker-stats status
sudo service opentracker-stats reload
sudo service opentracker-stats....

Now you can create your graphs, for example with Grafana....

Grafana-graph

opentracker-influxdb's People

Contributors

fortu avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

0ldm0s latezly

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.