package formatter
Type Members
- class DefaultFormatter extends Formatter
Default formatting implementation delimits the key with dot, which is the metric key delimiter for StatsD and Graphite, and each name is encoded by replacing dots with underscores.
Default formatting implementation delimits the key with dot, which is the metric key delimiter for StatsD and Graphite, and each name is encoded by replacing dots with underscores.
So
List("actors", "some.package.Actor", "mailbox-size")
becomes"actors.some_package_Actor.mailbox-size"
.The delimiter and encoding replacements can be configured. This is the default configuration:
cinnamon.chmetrics.formatter { delimiter = "." encode = [ { from = "." to = "_"
, { from = "@" to = "_" }, { from = ":" to = "_" }, { from = "/" to = "_" } ] } }
This is the public API for Cinnamon.
The com.lightbend.cinnamon package contains the public Cinnamon API.
See the complete list of Cinnamon packages on the right.
Cinnamon Events and Metrics
For the custom events API see
CinnamonEvents
.For the custom metrics API see
CinnamonMetrics
.Stopwatch
For the Stopwatch API see
Stopwatch
.Coda Hale Metrics
For creating custom Coda Hale Metrics reporters see the com.lightbend.cinnamon.chmetrics.reporter package.