Using OpenTelemetry as the metrics backend
Lightbend Telemetry can report metrics using OpenTelemetry using a backend plugin integrated with the OpenTelemetry JVM client .
The following is the core Cinnamon OpenTelemetry dependency that you will need to add to your build tool configuration, together with the gRPC exporter :
- Java
-
pom.xml
<!-- Cinnamon OpenTelemetry core dependency --> <dependency> <groupId>com.lightbend.cinnamon</groupId> <artifactId>cinnamon-opentelemetry</artifactId> </dependency>
- Scala
-
build.sbt
libraryDependencies ++= Seq( Cinnamon.library.cinnamonOpenTelemetry)
After you have made that alteration, enable the gRPC exporter using the following configuration:
src/main/resources/telemetry.conf
cinnamon.opentelemetry.metrics {
exporters += "grpc-exporter"
}
Cinnamon will start to push metrics from an OpenTelemetry collector . For an extended example how configure this setup, please have a look at our Cinnamon OpenTelemetry sandbox .
See the Full Telemetry documentation for details and references regarding OpenTelemetry backend configuration.