Wikia / jira-reporter

Automatically reports application errors (sent to ELK) as JIRA tickets

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

jira-reporter

Build Status

Automated JIRA reporting of issue from various sources (PHP fatal errors, exceptions, SQL queries errors, CSRF issues, ...) also known as Norsk skogkatt.

Installation

  • clone the repository
  • run
virtualenv env
source env/bin/activate
pip install -e .

Make sure to test cover your changes

make test

CronJob: jira-reporter

Synopsis

  • script: make check
  • schedule: five minutes after every hour

Workflow

Every time you make changes to any of the files in this repository, a new Docker image has to be built and pushed to Artifactory. make cronjob-deploy will do it for you. Refer to the Makefile for details.

IMPORTANT: Changes will affect production environment. If you want to work on dev, make sure to examime the files and make required changes.

Useful Commands

  • $ kubectl --context=kube-sjc-prod --namespace=prod get cronjob jira-reporter: display cronjob metadata

  • kubectl --context=kube-sjc-prod --namespace=prod get pods | grep jira-reporter: list all pods associated with the cronjob

  • kubectl --context=kube-sjc-prod --namespace=prod logs -f jira-reporter-1549370100-p7mmr: monitor the output of your script; remember to check the pod name with get pods command.

About

Automatically reports application errors (sent to ELK) as JIRA tickets

License:MIT License


Languages

Language:Python 98.7%Language:Makefile 1.1%Language:Dockerfile 0.3%