statsite
Version information
Start using this module
Add this module to your Puppetfile:
mod 'dchristensen-statsite', '0.2.8'Learn more about managing modules with a PuppetfileDocumentation
puppet-statsite
Puppet module to manage statsite
Usage
class { 'statsite':
graphite_host => 'graphite.example.com',
}
Parameters
-
versionThe version of statsite to install. Defaults to 0.6.0 -
install_pathThe path that statsite will be installed. Defaults to /opt/statsite -
config_pathStatsite's configuration directory. Defaults to /etc/statsite -
tcp_portInteger, sets the TCP port to listen on. Default 8125. 0 to disable. -
udp_portInteger, sets the UDP port. Default 8125. 0 to disable. -
bind_addressThe address to bind on. Defaults to 0.0.0.0 -
parse_stdinEnables parsing stdin as an input stream. Defaults to 0. -
log_levelThe logging level that statsite should use. One of: debug, info, warn, error, or critical. All logs go to syslog, and stderr if that is a TTY. Default is debug. -
flush_intervalHow often the metrics should be flushed to the sink in seconds. Defaults to 10 seconds. -
timer_epsThe upper bound on error for timer estimates. Defaults to 1%. Decreasing this value causes more memory utilization per timer. -
set_epsThe upper bound on error for unique set estimates. Defaults to 2%. Decreasing this value causes more memory utilization per set. -
stream_cmdThis is the command that statsite invokes every flushinterval seconds to handle the metrics. It can be any executable. It should read inputs over stdin and exit with status code 0 on success. If this parameter is defined, all graphite* parameters will be ignored. -
graphite_hostThe hostname of the graphite server to sink metrics to every flush_interval seconds. Defaults to "localhost". This parameter will be ignored if stream_cmd is set. -
graphite_portThe port of the graphite server. Defaults to 2003. This parameter will be ignored if stream_cmd is set. -
graphite_prefixA prefix to add to the keys sent to graphite. Defaults to "statsite.". Note: The trailing dot is necessary. This parameter will be ignored if stream_cmd is set. -
graphite_attemptsThe number of re-connect attempts before failing. Defaults to 3. This parameter will be ignored if stream_cmd is set. -
input_counterIf set, statsite will count how many commands it received in the flush interval, and the count will be emitted under this name. For example if set to "numStats", then statsite will emit "counter.numStats" with the number of samples it has received. -
pid_fileWhen daemonizing, where to put the pid file. Defaults to /var/run/statsite.pid -
binary_streamShould data be streamed to the stream_cmd in binary form instead of ASCI form. Defaults to 0. -
use_type_prefixShould prefixes with message type be added to the messages. Does not affect global_prefix. Defaults to 1. -
extended_countersIf enabled, the counter output is extended to include all the computed summary values. Otherwise, the counter is emitted as just the sum value. Summary values include mean, stdev, sum, sum_sq, lower, upper, and rate. Defaults to false. -
histogramsAn optional array of histogram configuration hashes with the following keys:-
nameThe name of the histogram. -
prefixThis is the key prefix to match on. The longest matching prefix is used. If the prefix is blank, it is the default for all keys. -
minFloating value. The minimum bound on the histogram. Values below this go into a special bucket containing everything less than this value. -
maxFloating value. The maximum bound on the histogram. Values above this go into a special bucket containing everything more than this value. -
widthFloating value. The width of each bucket between the min and max.
Each histogram must specify all keys to be valid
-
Supported Platforms
- Debian / Ubuntu (upstart)
- Fedora / Centos 7 / Redhat 7 (systemd)
Dependencies
- puppetlabs/stdlib (>= 0.1.6)
The MIT License (MIT) Copyright (c) 2014 Devin Christensen Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.