-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- 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.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. | ||
|