Select Supported Platforms

Select Supported Architectures

Select Tier

Github Name

v0.0.1 · public · Published about 2 years ago

Asset Definition
Release Notes
Release Assets

Sensu Bonsai Asset


Table of Contents


A Hacked up tool, to find slow responding queries, provide a count of them (Graphite format), and log the offenders to graylog


  • sensu-pg-metric-log

Usage examples

$ sensu-pg-metric-log  --pgurl postgres://user:password@  --enable --glhost   --glport 12249
query 22 1654116654


$ $ ./sensu-pg-metric-log -h
A Hacked up tool, to find slow responding queries, provide a count of them, and log to graylog

  sensu-pg-metric-log [flags]
  sensu-pg-metric-log [command]

Available Commands:
  completion  Generate the autocompletion script for the specified shell
  help        Help about any command
  version     Print the version number of this plugin

      --enable          Log results to graylog
      --glhost string   hostname of the graylog server
      --glport int      port of the graylog server
  -h, --help            help for sensu-pg-metric-log
      --pgurl string    URL to the postgres database

Use "sensu-pg-metric-log [command] --help" for more information about a command.


Asset registration

[Sensu Assets][10] are the best way to make use of this plugin. If you're not using an asset, please
consider doing so! If you're using sensuctl 5.13 with Sensu Backend 5.13 or later, you can use the
following command to add the asset:

sensuctl asset add DoctorOgg/sensu-pg-metric-log

If you're using an earlier version of sensuctl, you can find the asset on the [Bonsai Asset Index][].

Check definition


Are you sure you want to report this asset?

Please describe the reason for reporting this asset. Our moderators will be notified and will disable the asset if it is found to be inappropriate.


You must be signed in to report this asset.

Sign In with Github



Either download the source code:

Download Source

Or download the asset definition: