trapperkeeper-metrics
is a library intended to help make it easier to track
metrics in other Trapperkeeper applications. It includes:
- a TK service that manages the life cycle of your metrics registry
- config-driven control of metrics and metrics reporting
- other miscellaneous utility functions for working with metrics
- support for configuring metrics to be reported to Graphite
- support for filtering metrics before reporting them to Graphite
For more detailed information (what this library does and doesn't do, more detailed tips on how to write code against it, future plans, etc.), check out the documentation.
See the configuration docs for info on how to configure the service, including Graphite reporting.
See the api docs for service API documentation.
See the metrics reporting and filtering for information on how metrics filtering works.
One example, a Trapperkeeper service which uses the metrics service in conjunction with a Ring handler, is included with this project (source code).
To get the most value out of this library, use it in concert with comidi and trapperkeeper-comidi-metrics (to take advantage of the built-in HTTP metrics; see the trapperkeeper-comidi-metrics docs) and the Trapperkeeper Status Service (to expose the most useful metrics data from your app via HTTP).
The trapperkeeper-comidi-metrics
repo contains a working example app that illustrates how to tie everything together.
#Support
Please log tickets and issues at our Jira Tracker.