Giter VIP home page Giter VIP logo

presto-graphite-emitter's Introduction

Presto-Graphite-emitter


Graphite emitter/sink for Presto. It allows to send Presto co-ordinator, worker, query metrics to Graphite in plaintext format.

Pre-Requisites


  • Python 2.7 or above
  • Below packages needs to be installed,
    • requests
    • graphitesend
  • Graphite server

Above python packages can be installed using below commands,

sudo pip -q install requests==2.8.1
sudo pip -q install graphitesend

Graphite installation instructions are available at Graphite documentation

Getting Started & Usage


Presto graphite emitter is a python script which collects Presto metrics and emits them to Graphite server in plaintext format. Presto metrics are exposed using JMX MBeans. Available metrics are collected, transformed into required format and sent to graphite server.

Usage

After installation of required packages, presto metric emitter needs to 5 parameters,

  1. PrestoDB co-ordinator IP Address
  2. PrestoDB co-ordinator Port
  3. Graphite server IP Address
  4. Graphite server Port
  5. Interval

Interval (in seconds) will be used to periodically collect metrics. Below command can be used,

Syntax: 
nohup prestodb-graphite-emitter.py [Prestodb_CoOrd_IP] [Prestodb_CoOrd_Port] [Graphite_IP] [Graphite_Port] [Interval in sec] > nohup.out &

Example:
nohup prestodb-graphite-emitter.py 127.0.0.1 8285 127.0.0.1 2003 10 > nohup.out &

Emitted metrics will be in prefixed with nodenames to differentiate different worker nodes in cluster. Currently all metrics available via Presto JMX are supported and are configurable through prestodb-graphite-emitter.py script.

Few important included metrics classes are,

query_manager
query_execution
node_scheduler
task_executor
task_manager
g1_gc_young
g1_gc_old
cluster_memory_manager

Separate metric configuration file and auto dependencies installation will be available in next version of this emitter. Emitted metrics can be viewed using Graphite or Grafana dashboards.

presto-graphite-emitter's People

Contributors

nachiket90 avatar satishbhor avatar

Watchers

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.