bin/metric-postgres-connections.rb in sensu-plugins-postgres-0.0.5 vs bin/metric-postgres-connections.rb in sensu-plugins-postgres-0.0.6

- old
+ new

@@ -1,19 +1,33 @@ -#!/usr/bin/env ruby +#! /usr/bin/env ruby # -# Postgres Connection Metrics -# === +# metric-postgres-connections # -# Dependencies -# ----------- -# - Ruby gem `pg` +# DESCRIPTION: # +# This plugin collects postgres connection metrics # -# Copyright 2012 Kwarter, Inc <platforms@kwarter.com> -# Author Gilles Devaux <gilles.devaux@gmail.com> +# OUTPUT: +# metric data # -# Released under the same terms as Sensu (the MIT license); see LICENSE -# for details. +# PLATFORMS: +# Linux +# +# DEPENDENCIES: +# gem: sensu-plugin +# gem: pg +# +# USAGE: +# ./metric-postgres-connections.rb -u db_user -p db_pass -h db_host -d db +# +# NOTES: +# +# LICENSE: +# Copyright (c) 2012 Kwarter, Inc <platforms@kwarter.com> +# Author Gilles Devaux <gilles.devaux@gmail.com> +# Released under the same terms as Sensu (the MIT license); see LICENSE +# for details. +# require 'sensu-plugin/metric/cli' require 'pg' require 'socket'