Skip to content
This repository has been archived by the owner on Dec 11, 2023. It is now read-only.

Commit

Permalink
Update README for revised instrument_action naming scheme
Browse files Browse the repository at this point in the history
  • Loading branch information
nextmat committed Jul 3, 2014
1 parent acb1cf7 commit a5dd5ca
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -183,9 +183,16 @@ class CommentController < ApplicationController
end
```

Once you instrument an action, `librato-rails` will start reporting a set of metrics specific to that action including # of requests, total time used per request, and db and view time used per request.
Once you instrument an action, `librato-rails` will start reporting a set of metrics specific to that action including:

Action instrumentation metrics are named following the format `rails.action.<controller>.<action>.<format>.*`.
* rails.action.request.total (# of requests)
* rails.action.request.slow (requests >= 200ms to produce)
* rails.action.request.exceptions
* rails.action.request.time (total time spent in action)
* rails.action.request.time.db (db interaction time)
* rails.action.request.time.view (view rendering time)

Each instrumented action will appear as a source for the `rails.action.*` metrics, for example `mycontroller.action.html`.

IMPORTANT NOTE: Metrics from `instrument_action` take into account all time spent in the ActionController stack for that action, including before/after filters and any global processing. They are _not_ equivalent to using a `Librato.timing` block inside the method body.

Expand Down

0 comments on commit a5dd5ca

Please sign in to comment.