GithubHelp home page GithubHelp logo

devilankur18 / rakam Goto Github PK

View Code? Open in Web Editor NEW

This project forked from rakam-io/rakam-api

0.0 2.0 0.0 24.22 MB

An analytics platform that makes easy to create custom analytics services

Home Page: https://rakam.io

License: Apache License 2.0

Ruby 0.01% Java 97.70% Shell 0.50% PLSQL 0.01% HTML 0.99% Python 0.80%

rakam's Introduction

Build Status

Rakam

Join the chat at https://gitter.im/rakam-io/rakam

Rakam is an analytics platform that allows you to create your analytics services.

Features / Goals

Rakam is a modular analytics platform that gives you a set of features to create your own analytics service.

Typical workflow of using Rakam:

  • Collect data from your clients using client libraries
  • Make your event data richer and cleaner with event mappers
  • Process data in real-time and pre-aggregate using continuous queries (Stream processing with SQL!),
  • Store data in a data warehouse to analyze it later. (Postgresql, HDFS, S3 or any file-system you want)
  • Analyze your event data in your data warehouse with your custom SQL queries and integrated rich analytics features (funnel queries, retention queries, real-time reports, event streams)
  • Analyze your users with integrated CRM tool
  • Visualize your data using web application of Rakam similar to BI tools.
  • Add your own modules to Rakam to customize Rakam for your special needs.

All these features come with a single box, you just need to specify which modules you want to use using a configuration file (config.properties) and Rakam will do the rest for you. You can also start multiple instances and put them behind a load balancer if you need high availability or/and want to collect tens of thousands events per second.

Deployment

There are multiple deployment types depending of your needs.

If your event data-set can fit in a single server, we recommend using Postgresql backend. Rakam will collect all your events in row-oriented format in a Postgresql node. All the features provided by Rakam are supported in Postgresql deployment type.

However Rakam is designed to be highly scalable in order to provide a solution for high work-loads. You can configure Rakam to send events to a distributed commit-log such as Apache Kafka or Amazon Kinesis in serialized Apache Avro format and process data in PrestoDB workers and store them in a distributed filesystem in a columnar format.

Heroku

You can easily deploy Rakam to Heroku using Heroku button, it adds Heroku Postgresql add-on to your app and use Postgresql deployment type.

Deploy

Docker

Run the following command to start a Postgresql server in docker container and Rakam API in your local environment.

docker run -d --name rakam-db -e POSTGRES_PASSWORD=dummy -e POSTGRES_USER=rakam postgres:9.5.3 && docker run --link rakam-db --name rakam -p 9999:9999 -e RAKAM_CONFIG_LOCK-KEY=mylockkey buremba/rakam

After docker container is started, visit http://127.0.0.1:9999 and follow the instructions. You can also register your local Rakam API to Rakam BI at http://app.rakam.io/cluster/register or directly use Rakam API. API documentation

We also provide docker-compose definition for Postgresql backend. Create a docker-compose.yml with from this definition and run the command docker-compose run api -p 9999:9999 -f docker-compose.yml.

version: '2'
services:
  rakam-db:
    image: postgres:9.5.3
    environment:
      - POSTGRES_PASSWORD=dummy
      - POSTGRES_USER=rakam
  rakam-api:
    build: buremba:rakam
    ports:
      - "9999:9999"
    depends_on:
      - db

You can set config variables for Rakam instance using environment variables. All properties in config.properties file can be set via environment variable RAKAM_CONFIG_property_name_dots_replaced_by_underscore. For example, if you want to set store.adapter=postgresql you need to set environment variable RAKAM_CONFIG_STORE_ADAPTER=postgresql.

Dockerfile will generate config.properties file from environment variables in docker container that start with RAKAM_CONFIG prefix.

In order to set environment variables for container, you may use -e flag for for docker run but we advice you to set all environment variables in a file and use --env-file flag when starting your container.

Then you can share same file among the Rakam containers. If Dockerfile can't find any environment variable starts with RAKAM_CONFIG, it tries to connect Postgresql instance created with docker-compose.

AWS (Cloudformation)

Postgresql deployment type: (Best for < 1B events): Deploy to AWS

PrestoDB deployment type: (Best for >= 1B events): Deploy to AWS

Cloudformation templates create a Opsworks stack in your AWS account for Rakam. You can easily monitor, scale and manage your Rakam cluster with with this Cloudformation templates.

Cloudformation is the recommended way to deploy Rakam in production because we handle high

Custom

Download latest version from Bintray, extract package, modify etc/config.properties file and run bin/launcher start. The launcher script can take the following arguments: start|restart|stop|status|run. bin/launcher run will start Rakam in foreground.

Managed

We're also working for managed Rakam cluster, we will deploy Rakam to our AWS accounts and manage it for you so that you don't need to worry about scaling, managing and software updates. We will do it for you. Please shoot us an email to [email protected] if you want to test our managed Rakam service.

Web application

This repository contains Rakam API server that allows you to interact with Rakam using a REST interface. If you already have a frontend and developed a custom analytics service based on Rakam, it's all you need.

However, we also developed Rakam Web Application that allows you to analyze your user and event data-set but performing SQL queries, visualising your data in various charts, creating (real-time) dashboards and custom reports. You can turn Rakam into a analytics web service similar to Mixpanel, Kissmetrics and Localytics using the web application. Otherwise, Rakam server is similar to Keen.io with SQL as query language and some extra features.

Another nice property of Rakam web application is being BI (Business Intelligence) tool. If you can disable collect APIs and connect Rakam to your SQL database with JDBC adapter and use Rakam application to query your data in your database. Rakam Web Application has various charting formats, supports parameterized SQL queries, custom pages that allows you to design pages with internal components.

Contribution

Currently I'm actively working on Rakam. If you want to contribute the project or suggest an idea feel free to fork it or create a ticket for your suggestion. I promise to respond you ASAP. The purpose of Rakam is being generic data analysis tool that can be a solution for many use cases. Rakam still needs too much work and will be evolved based on people's needs so your thoughts are important.

rakam's People

Contributors

buremba avatar waffle-iron avatar gitter-badger avatar

Watchers

Ankur Agarwal avatar James Cloos 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.