Skip to content
This repository has been archived by the owner on Apr 18, 2020. It is now read-only.

operationalintelligence/rucio-opint-backend

Repository files navigation

Build Status

Description

Rucio OpInt backend.

Installation

Fork the repo into your personal project and clone the project.

cd ~/projects/rucio-opint/
git clone https://github.com/operationalintelligence/rucio-opint-backend

Create a new python3 virtual environment and activate it:

virtualenv -p python3 ~/environments/rucio-opint-backend
source ~/environments/rucio-opint-backend/bin/activate

Install Python dependencies:

cd ~/projects/rucio-opint/rucio-opint-backend
pip install -r requirements.txt

Export settings module:

export DJANGO_SETTINGS_MODULE='rucio_opint_backend.apps.core.settings'

The following environmental variables can be set:

API_KEY: The key for Monit Grafana's API
DB_PASS: The pass for the produciton database.
For Development you can enable sqlite from `rucio_opint_backend/apps/core/settings.py` 

Create DB:

python manage.py makemigrations core
python manage.py migrate

Populate DB with initial data:

python manage.py loaddata initial

Running the app:

Navigate to the project's directory:

cd ~/projects/rucio-opint-frontend

Run the django server:

python manage.py runserver

Fetching information:

In order to fetch issues from HDFS:

python manage.py hdfs_loader_cron

For a specific date:

python manage.py hdfs_loader_cron --date=12/1/2019

In order to fetch issues from Monit-Grafana ES API:

python manage.py rucio_loader_cron

About

the backend of rucio's operational intelligence

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published