OpenTelemetry
Overview
OpenTelemetry is a collection of tools, APIs, and SDKs. Use it to instrument, generate, collect, and export telemetry data (metrics, logs, and traces) to help analyze software’s performance and behavior.
Supported otel collector - v0.59.0 or earlier - https://github.com/open-telemetry/opentelemetry-collector/releases/tag/v0.59.0
What about versions > v0.60.0 and above?
The Apica team is verifying support and we expect more recent versions to be supported in Q1 2024
OpenTelemetry Metrics
Prometheus Remote Write Exporter can be used to send OpenTelemetry metrics to Prometheus remote write compatible backends
Apica Ascent implements a Prometheus remote write backend so metric data from open telemetry collectors can be sent to Apica Ascent with a simple configuration as described below.
Enable the prometheusremorewrite exporter in your open telemetry configuration yaml
Specify the Apica Ascent cluster endpoint to send the remote write data. Apica Ascent implements automatic retention tiering to object storage for all your opentelemetry metrics data giving you infinite retention and scale with zero storage overheads as your metrics needs grow.
Here's a full configuration example below with TLS enabled.
if you are using OpenTelemetry on AWS, remove the "wal:" section below
Scraping Prometheus Metrics
In the OpenTelemetry config file, you can include a scrape section to scrape data from Prometheus endpoints. You can subsequently push that to a remote Prometheus compatible write endpoint using instructions from the section above.
OpenTelemetry Logs and Traces
Apica Ascent supports ingesting Logs and Traces using OpenTelementry agents and collectors. We also maintain compatibility with Jaeger agent and collectors for ingesting logs and traces. This provides broad support for anyone with existing Jaeger agents and collectors deployed as well as someone wanting to adopt the emerging OpenTelemetry standard.
See below for an example of configuring OpenTelemetry collector to push logs and traces to Apica Ascent
Language Integrations
Java
If you are writing a Java-based application and want to enable OpenTelemetry for instrumenting your application logs, traces, and metrics, you can use the OpenTelemetry Java agent Jar file to attach to your existing Java applications.
The Jar file can be found here - https://github.com/open-telemetry/opentelemetry-java-instrumentation#about
the Prometheus metrics options create a pull metric instance that should be scraped by an external Prometheus compatible instance
JAVA_OPTS | Value | Notes |
---|---|---|
otel.service_name | <User defined> | Give a service name to group your OpenTelemetry data traces under this service name |
otel.traces.exporter | jaeger | |
otel.exporter.jaeger.endpoint | http://<Apica Ascent ENDPOINT>:14250 | Apica Ascent OpenTelemetry traces endpoint |
https://<Apica Ascent ENDPOINT>:14250 | TLS must be enabled on the collector port on the Apica Ascent server | |
javaagent | <PATH TO JAR>/opentelemetry-javaagent.jar | OpenTelemetry agent Jar file |
otel.metrics.exporter | prometheus | |
otel.exporter.prometheus.port | Default port is 9464 | |
otel.exporter.prometheus.host | Default is 0.0.0.0 |
When using TLS please ensure you have the CA cert of the Apica Ascent environment installed in the JVM Cert store. Instructions can be found here - https://connect2id.com/blog/importing-ca-root-cert-into-jvm-trust-store
Example Petclinic app with open telemetry integration
You can use our freely available petclinc java application for opentelmetry integration testing. Just launch our free container as below and point it to the Apica service IP/DNS
Make sure your Apica Ascent server is running and port 14250 is reachable
Last updated