From a6fc1aad8324fba53454978a596204d313280329 Mon Sep 17 00:00:00 2001 From: Stevenson Jean-Pierre Date: Sun, 24 May 2015 09:02:51 -0400 Subject: [PATCH] Create README.md --- README.md | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 README.md diff --git a/README.md b/README.md new file mode 100644 index 0000000..3521267 --- /dev/null +++ b/README.md @@ -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. +