Giter Club home page Giter Club logo

chowkidar's Introduction

Chowkidar

Maintenance Open Source Love svg1 MIT Licence


A tool to monitor all the ssh activity in your datacenters.

Screenshot

Architecture

Chowkidar consists of two components:

  • Agent: This is deployed on your servers you want to monitor. Runs as a docker daemon container. It's made in python and uses celery and redis to ensure minimal data loss asynchronously.

  • Server: A central processing unit which aggergates data from all servers and displays in a grafana dashboard. It's a node based webhook which parses the data and inserts it into a time-serires database (Influx DB) which is used by grafana to render the dashboards.

Server is deployed on ECS Fargate tasks with EFS mounted storage for InfluxDB and Grafana.

Deployment

Server:

  • Clone this repository

  • Configure AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY env variables with Administrator privileges

  • Create AWS SSM secrets for (refer to .env.sample):

  • INFLUXDB_USERNAME

  • INFLUXDB_PASSWORD

  • GRAFANA_USERNAME

  • GRAFANA_PASSWORD

use the following command to create the secrets:


$ aws ssm put-parameter \

--name "/chowkidar/influx/influxdb_username" \

--value "chowkidar" \

--type "SecureString" \

  

$ aws ssm put-parameter \

--name "/chowkidar/influx/influxdb_password" \

--value "chowkidar" \

--type "SecureString" \

  

$ aws ssm put-parameter \

--name "/chowkidar/influx/grafana_username" \

--value "chowkidar" \

--type "SecureString" \

  

$ aws ssm put-parameter \

--name "/chowkidar/influx/grafana_password" \

--value "chowkidar" \

--type "SecureString" \

  

$ aws ssm put-parameter \

--name "/chowkidar/influx/ipstack_access_key" \

--value "YOUR_IPSTACK_ACCESS_KEY" \

--type "SecureString" \

  • Setup and configure terraform v12.28

  • From the ./deployment/server directory run:

  • $ terraform init

  • Refer to ./deployment/server/testing.tfvars for variable configuration

  • $ terraform plan

  • Validate the plan and make sure everything is cool

  • $ terraform apply

  • This will output a DNS of the public load balancer, configure it with your domain registrar.

Agent

  • Clone this repository

  • Install and configure ansible

  • Make sure that you have SSH connectivity with the target server

  • $ cd deployment/agent && ansible-playbook install-agent.yml -extra-vars "Deploy=fresh" -i <your inventory file>

chowkidar's People

Contributors

vedantrathore avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Forkers

kartikbehl99

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.