Giter Club home page Giter Club logo

assisted-events-scrape's Introduction

assisted-events-scrape

License Apache

About

A little service that publishes the assisted-service cluster events to Elasticsearch. It pulls all the cluster events and merge it with the existing data.

Install

make install 

Testing

Documentation about testing can be found here.

Usage:

This tool can be used by events_scrape cli command (if installed) or running using python without installing using the command: python3 -m assisted-events-scrape.events_scrape

Environment variables

Variable Description Example
ES_INDEX_PREFIX Elasticsearch index prefix, will be suffixed by YYYY-MM assisted-service-events-v3-
ES_SERVER Elasticsearch server address
ES_USER(optional) Elasticsearch user name elastic
ES_PASS(optional) Elasticsearch password
ASSISTED_SERVICE_URL Assisted service url https://api.openshift.com
OFFLINE_TOKEN Assisted service offline token
BACKUP_DESTINATION Path to save backup, if empty no backups will be saved
SSO_URL SSO server URL
SENTRY_DSN Sentry DSN
ERRORS_BEFORE_RESTART Maximum numbner of errors allowed before restarting the application
MAX_IDLE_MINUTES Minutes allowed for the application to be idle. Idle time is when the application is not being updated, either succesfully or unsuccesfully
N_WORKERS Number of workers in the thread pool. Defaults to 5 - minimum 1.

OAuth Proxy Configuration

In order to proxy elasticsearch/kibana, we use OAuth Proxy to provide authentication layer.

Below we describe the options that are used:

  • -http-address The binding address.
  • -provider OAuth provider. We use openshift
  • -openshift-service-account Service account where client-id and client-secret will be read from
  • -openshift-sar JSON Subject Access Review
  • -pass-basic-auth We turn this option off: we just want to proxy provided Basic Auth headers, and not pass authorized user as user
  • -htpasswd-file htpasswd file path used for authorizing system users

assisted-events-scrape's People

Contributors

carbonin avatar eifrach avatar eliorerz avatar maorfr avatar osherdp avatar rccrdpccl 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.