Skip to content

Setup statsite - A C implementation of statsite

Notifications You must be signed in to change notification settings

ClodoCorp/statsite

This branch is 5 commits ahead of, 8 commits behind hw-cookbooks/statsite:master.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

author
Eugene Alekseev
Jul 8, 2014
c7fdefb · Jul 8, 2014

History

14 Commits
Jul 7, 2014
Jul 8, 2014
Jul 7, 2014
Apr 8, 2013
Apr 8, 2013
Mar 28, 2013
Apr 8, 2013
Apr 8, 2013
Apr 8, 2013
Apr 8, 2013
Sep 5, 2013
Mar 28, 2013
Sep 5, 2013

Repository files navigation

Description

Installs and configures statsite, statsd implementation. https://github.com/armon/statsite

Requirements

  • Ubuntu 10.04 / Ubuntu 12.04
  • python
  • git
  • runit

Attributes

  • node[:statsite][:path] - Default setting: "/opt/statsite"
  • node[:statsite][:repo] - Default setting: "git://github.com/armon/statsite.git"
  • node[:statsite][:conf] - Default setting: "/etc/statsite.conf"
  • node[:statsite][:owner] - Default setting: "statsite"
  • node[:statsite][:group] - Default setting: "statsite"
  • node[:statsite][:port] - Default setting: 8125
  • node[:statsite][:loglevel] - Default setting: "INFO"
  • node[:statsite][:flush_interval] - Default setting: 10
  • node[:statsite][:timer_eps] - Default setting: 0.01
  • node[:statsite][:stream_command] - Optional handler. Default setting: ''
  • default[:statsite][:service_type] - Can be "runit" or "upstart". Default: "runit"

Usage

recipe[statsite] install, build and start with either runit or upstart

Histogram

Additional histograms can be defined in node[:statsite][:histogram] attribute.

Role example:

{
...
  "default_attributes": {
    "statsite": {
      "port": 18125,
      "stream_command": "python /opt/statsite/sinks/graphite.py graphite.recfut.com 2003 statsite",
      "service_type": "upstart",
      "histogram": {
        "histogram_api": {
          "prefix": "api",
          "min": 0,
          "max": 100,
          "width": 5
        }
      }
    }
  }
...  
}

About

Setup statsite - A C implementation of statsite

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Ruby 75.0%
  • Shell 15.2%
  • HTML 9.8%