Giter Site home page Giter Site logo

clickhouse-ninja / proton Goto Github PK

View Code? Open in Web Editor NEW
27.0 4.0 6.0 1.73 MB

High performance Pinba server

License: MIT License

Makefile 3.71% Go 94.60% Shell 1.70%
pinba php clickhouse metrics monitoring performance-metrics grafana clickhouse-server pinbaserver

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

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

proton's Issues

Empty Timers.TagsName and Timers.TagsValue when more than one timer tag provided

I mark timers with tags like these:
['group' => 'mongodb', 'operation' => 'find', 'collection' => 'collection_name']
But starting from some point Timers.TagsName and Timers.TagsValue become array of empty arrays in clickhouse:

┌─Timers.TagsName────┬─Timers.TagsValue──┬─Timers.Value──────────────────────────┐
│ [[],[],[],[]]      │ [[],[],[],[]]     │ [0.000167,0.00039,0.000063,0.000071]  │

I found that it happens when some values is long enough (like 30+ chars) AND there is more than one tag. It works fine with single tag and long values, but brokes when you add more (even if it has only 1 digit value)

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.