package producer
Type Members
- abstract class Producer extends AnyRef
Producer
abstraction for creating custom metric and event producers.Producer
abstraction for creating custom metric and event producers.The implementation class should accept a
com.lightbend.cinnamon.backend.Backends
parameter, which can be used to add custom metrics and events to be reported to all configured backends.Config
can be accessed usingbackends.getConfig()
.Logger
s can be created usingbackends.getLoggingProvider().get(
. Any other classes or resources will need to be accessed statically.)
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.