GithubHelp home page GithubHelp logo

lludlow / grafana-scripts Goto Github PK

View Code? Open in Web Editor NEW

This project forked from boerderij/varken

0.0 2.0 0.0 33 KB

API scripts written (both pushing and pulling) to aggregate data into influxdb for grafana

Python 100.00%

grafana-scripts's Introduction

Grafana Scripts

Repo for api scripts written (both pushing and pulling) to aggregate data into influxdb for grafana

Requirements /w install links: Grafana, Python3, InfluxDB

Quick Setup

  1. Install requirements (If using tautulli.py you need to pip3 install geoip2)
  2. Create your plex database in influx
    user@server: ~$ influx
    > CREATE DATABASE plex
    > quit
  3. After completing the getting started portion of grafana, create your datasource for influxdb. At a minimum, you will need the plex database.
  4. Click the + on your menu and click import. Using the .json provided in this repo, paste it in and customize as you like.

Notes

To run the python scripts crontab is currently leveraged. Examples:

### Modify paths as appropriate. python3 is located in different places for different users. (`which python3` will give you the path)
### to edit your crontab entry, do not modify /var/spool/cron/crontabs/<user> directly, use `crontab -e`
### Crontabs require an empty line at the end or they WILL not run. Make sure to have 2 lines to be safe
### It is bad practice to run any cronjob more than once a minute. For timing help: https://crontab.guru/
* * * * * /usr/bin/python3 /path-to-grafana-scripts/ombi.py
* * * * * /usr/bin/python3 /path-to-grafana-scripts/tautulli.py
*/30 * * * * /usr/bin/python3 /path-to-grafana-scripts/radarr.py
*/30 * * * * /usr/bin/python3 /path-to-grafana-scripts/sonarr.py
*/30 * * * * /usr/bin/python3 /path-to-grafana-scripts/sickrage.py

grafana-scripts's People

Contributors

dirtycajunrice avatar driz avatar

Watchers

James Cloos avatar Larry Ludlow 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.