No commit activity in last 3 years
No release in over 3 years
Sensu plugins for twemproxy
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.7
~> 0.10
~> 10.5
~> 3.2
~> 3.4
~> 0.40.0
~> 0.8

Runtime

 Project Readme

Sensu-Plugins-twemproxy

Build Status Gem Version Code Climate Test Coverage Dependency Status

Functionality

metrics-twemproxy

Acquire twemproxy metrics from its stats json output.

{  
   "service":"nutcracker",
   "source":"twemproxy01",
   "version":"0.4.0",
   "uptime":3839769,
   "timestamp":1425500928,
   "total_connections":2936,
   "curr_connections":12,
   "backend":{  
      "client_eof":676,
      "client_err":2224,
      "client_connections":0,
      "server_ejects":0,
      "forward_error":0,
      "fragments":0,
      "shard01":{  
         "server_eof":3,
         "server_err":0,
         "server_timedout":0,
         "server_connections":1,
         "server_ejected_at":0,
         "requests":19145560,
         "request_bytes":6137042859,
         "responses":19145557,
         "response_bytes":584731733,
         "in_queue":0,
         "in_queue_bytes":0,
         "out_queue":0,
         "out_queue_bytes":0
      },
  }
}

Files

  • bin/metrics-twemproxy.rb

Usage

/etc/sensu/plugins/twemproxy-graphite.rb -p 22222 -s twemproxy01.twemproxy
twemproxy01.twemproxy.client_eof 676 1425501320
twemproxy01.twemproxy.client_err 2224 1425501320
twemproxy01.twemproxy.client_connections 0 1425501320
twemproxy01.twemproxy.server_ejects 0 1425501320
twemproxy01.twemproxy.forward_error 0 1425501320
twemproxy01.twemproxy.fragments 0 1425501320
twemproxy01.twemproxy.shard01.server_eof 3 1425501320
twemproxy01.twemproxy.shard01.server_err 0 1425501320
twemproxy01.twemproxy.shard01.server_timedout 0 1425501320
twemproxy01.twemproxy.shard01.server_connections 1 1425501320
twemproxy01.twemproxy.shard01.server_ejected_at 0 1425501320
twemproxy01.twemproxy.shard01.requests 19145560 1425501320
twemproxy01.twemproxy.shard01.request_bytes 6137042859 1425501320
twemproxy01.twemproxy.shard01.responses 19145557 1425501320
twemproxy01.twemproxy.shard01.response_bytes 584731733 1425501320
twemproxy01.twemproxy.shard01.in_queue 0 1425501320
twemproxy01.twemproxy.shard01.in_queue_bytes 0 1425501320
twemproxy01.twemproxy.shard01.out_queue 0 1425501320
twemproxy01.twemproxy.shard01.out_queue_bytes 0 1425501320

Installation

Installation and Setup

Notes