Skip to content

Commit

Permalink
Create README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Stevenson Jean-Pierre authored and Stevenson Jean-Pierre committed May 24, 2015
1 parent 8f1d5d2 commit a6fc1aa
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# passenger-datadog-monitor
Send health metrics from Phusion Passenger to DataDog agent using the StatD interface on the.

#### Purpose
Graph and track Passenger threads and possibly detect misbehaving threads before they become a problem.

###Tracked Metrics
* Processed requests: min,max,average,total
* Memory usage: min,max,average,total
* Thread uptime: min, max, average
* Request queue depth
* Threads in use *vs* Max thread configured


#### Usage
I currently use this in a cron task that runs every 10 or so seconds. a loop can also be added to the main function to achieve similar results.

`./passenger-datadog-monitor` as root, since access to passenger-status requires root.

`./passenger-datadig-monitor print` for basic console output of stats, useful for debugging

[udp.rb](https://github.com/Sjeanpierre/passenger-datadog-monitor/blob/master/udp.rb) can be run locally when you want to see what is being recieved on the server side.

0 comments on commit a6fc1aa

Please sign in to comment.