Giter Site home page Giter Site logo

proton's Introduction

Proton - is the new home for your Pinba metrics.

Installation

Install ClickHouse server

sudo apt-key adv --keyserver keyserver.ubuntu.com --recv E0C56BD4    # optional

echo "deb http://repo.yandex.ru/clickhouse/deb/stable/ main/" | sudo tee /etc/apt/sources.list.d/clickhouse.list
sudo apt-get update

sudo apt-get install -y clickhouse-server clickhouse-client

sudo service clickhouse-server start
clickhouse-client

Create Proton schema and the raw request table

clickhouse-client -n < schema/schema.sql

and then create the base report table and materialize view

clickhouse-client -n < schema/reports/base.sql

Add Proton dictionary to ClickHouse server

Example:

<?xml version="1.0" encoding="UTF-8"?>
<dictionaries>
    <dictionary>
      <name>Proton</name>
        <source>
            <clickhouse>
                <host>127.0.0.1</host>
                <port>9000</port>
                <user>default</user>
                <password></password>
                <db>proton</db>
                <table>dictionary</table>
            </clickhouse>
        </source>
      <lifetime>600</lifetime>
      <layout><hashed /></layout>
      <structure>
         <id><name>ID</name></id>
         <attribute>
               <name>Value</name>
                <type>String</type>
                <null_value></null_value>
         </attribute>
      </structure>
   </dictionary>
</dictionaries>

Download latest Proton server

And run it.

Usage:

NAME:
  Proton - high performance Pinba storage server.
VERSION:
  0.2 rev[f2e5ae4] master (2019-03-20.12:40:46 UTC).
USAGE:
  -addr string
      listen address (default ":30002")
  -backlog int
      backlog size (default 10000)
  -concurrency int
      number of the background processes (default 2)
  -dsn string
      ClickHouse DSN (default "native://127.0.0.1:9000")
  -metrics_addr string
      address on which to expose metrics (default ":2112")
  -pprof string
      pprof address. If set to start the pprof server

If you are using the deb package, change the startup options in /etc/proton-server/options.

Grafana basic reports

proton's People

Contributors

kshvakov 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.