Fork of Varken with InfluxDb v2 support and updated Docker automation
Find a file
Nicholas St. Germain 3805c5c821 Merge pull request #11 from madbuda/MB_fix1
fix worldmap after change to maxmind local db
2018-07-24 22:10:01 -05:00
cisco_asa.py converted pull scripts to configuration.py 2018-02-12 18:31:38 -06:00
configuration.py Update configuration.py 2018-04-17 11:29:52 -05:00
crontabs Added some good-faith notes 2018-04-17 11:35:15 -05:00
ombi.py converted pull scripts to configuration.py 2018-02-12 18:31:38 -06:00
plex_dashboard.json Update plex_dashboard.json 2018-04-17 10:49:29 -05:00
radarr.py converted pull scripts to configuration.py 2018-02-12 18:31:38 -06:00
raid_init.py created raid_init check 2018-02-12 18:08:26 -06:00
README.md added pip requirement 2018-04-24 10:29:57 -05:00
san.py added psutil 2018-02-12 17:59:26 -06:00
sonarr.py Update sonarr.py 2018-04-17 14:33:02 -05:00
tautulli.py fix worldmap using maxmind 2018-07-23 20:30:45 -04:00

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