nginx-to-librato

command module
v0.0.0-...-1c22b3b Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 15, 2013 License: MIT Imports: 11 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

nginx-to-librato

This is a small application that polls the HttpStubStatusModule in nginx, then formats and publishes the resulting data to Librato.

Usage

nginx-to-librato [-debug] -config /etc/nginx-to-librato.conf

Configuration

[settings]
token: your_librato_token
user: your_librato_email
source: load-balancer-001
url: 127.0.0.1:8000/nginx_status
flush_interval: 10s

nginx Configuration

This assumes you've configured the HttpStubStatusModule like this:

location /nginx_status {
  stub_status on;
  allow 127.0.0.1;
  deny all;
}

This only allows requests from wherever nginx is located. That is where you should install nginx-to-librato. Alternatively, you could put the application on a monitoring server and only allow that IP to access the /nginx_status page.

Upstart Example

description "nginx-to-librato"

start on runlevel [23]

env TARGET=/usr/local/bin/nginx-to-librato
env LOG=/usr/local/bin/nginx-to-librato
env CONF=/etc/nginx-to-librato.conf

respawn

exec su -m -l -c "$TARGET -debug -config $CONF &> $LOG"

License

Please see the license file.

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
⌂ 换网址