OpenTelemetry and vendor neutrality: how to build an observability strategy
OpenTelemetry provides a vendor-neutral observability framework with three layers: source, collector, and backend, promoting flexibility and interoperability while preventing proprietary lock-in through open standards.
Read original articleOpenTelemetry offers a vendor-neutral approach to observability, which is particularly beneficial for organizations that have faced challenges with vendor lock-in from proprietary monitoring solutions. This neutrality is a core principle at Grafana Labs, emphasizing the importance of flexibility in telemetry strategies. The OpenTelemetry framework consists of three key layers: the applications and infrastructure that generate telemetry data, the telemetry collector that processes and forwards this data, and the telemetry backend where data is stored and analyzed. The framework promotes loose coupling between these layers, allowing users to select different components without being tied to a single vendor. Open standards play a crucial role in this flexibility, as they prevent proprietary lock-in by ensuring that telemetry collectors can communicate using agreed-upon formats. The OpenTelemetry Collector serves as a primary example of this approach. However, once telemetry data is stored in a backend database, the choice of database schema and query language becomes critical, as it can influence the ease of data utilization. Overall, OpenTelemetry aims to provide a level playing field for observability solutions, fostering innovation and interoperability within the ecosystem.
- OpenTelemetry promotes vendor neutrality to avoid lock-in from proprietary solutions.
- The framework consists of three layers: source, collector, and backend.
- Loose coupling between components enhances flexibility in observability strategies.
- Open standards prevent proprietary lock-in and facilitate interoperability.
- The choice of database schema and query language is crucial for data utilization.
Related
Datadog Is the New Oracle
Datadog faces criticism for high costs and limited access to observability features. Open Source tools like Prometheus and Grafana are gaining popularity, challenging proprietary platforms. Startups aim to offer affordable alternatives, indicating a shift towards mature Open Source observability platforms.
Show HN: TraceLens Visualizing Distributed Systems
TraceLens is a user-friendly OpenTelemetry UI acting as a Collector for data storage. Free during beta, it offers visualization tools and plans a subscription model for commercial use. Contact Asynkron AB for details.
Show HN: Telemetry.sh – Simplifying Telemetry Measurement
Telemetry provides a solution for measuring data in applications without infrastructure management, allowing users to log events, perform SQL queries, analyze data, and collaborate efficiently.
Telemetry in Go 1.23 and Beyond
Go 1.23 introduces optional telemetry for sharing toolchain usage data, enhancing bug identification and reliability. Participation has increased through the VS Code Go plugin, with future expansions planned.
OpenTelemetry Tracing in < 200 lines of code
OpenTelemetry tracing simplifies to structured logging and context propagation, using spans for metadata. It supports distributed tracing via HTTP headers and requires instrumentation to capture trace data for monitoring.
- Many users appreciate OpenTelemetry for its flexibility and ability to reduce vendor lock-in, allowing easy switching between backends.
- Some users highlight the efficiency of the auto-instrumentation feature, although there are concerns about its reliability and debugging challenges.
- There are mixed feelings about the performance of metrics and logs, with some users finding them less efficient compared to tracing.
- Several commenters emphasize the importance of community support and active maintenance of OpenTelemetry libraries across various platforms.
- Concerns about corporate resistance to adopting OpenTelemetry due to negative perceptions from other vendors were also noted.
I like how OpenTelemetry decouples the signal sink from the context, compared to other structured logging libs where you wrap your sink in layers. The main thing that I dislike is the auto-instrumentation of third-party libraries: it works great most of the time, but when it doesn't it's hard to debug. Maintainers of the different OpenTelemetry repos are fairly active and respond quickly.
It's still relatively recent, but I would recommend OpenTelemetry if you're looking for an observability framework.
For example at SigNoz [0], we support OpenTelemetry format natively from Day 1 and use ClickHouse as the datastore layer which makes it very performant for aggregation and analytics queries.
There are alternative approaches like what Loki and Tempo does with blob storage based framework.
If your data is instrumented with Otel, you can easily switch between open source projects like SigNoz or Loki/Tempo/Grafana which IMO is very powerful.
We have seen users switch within a matter of hours from another backend to SigNoz, weh they are instrumented with Otel. This makes testing and evaluating new products super efficient.
Otherwise just the effort required to switch instrumentation to another vendor would have been enough to not ever think about evaluating another product
(Full Disclosure : I am one of the maintainers at SigNoz)
It was easy enough that I, as a single SRE (at the time) could write and implement across dozens of services in a few months of part-time work while handling all my other normal duties. OpenTelemetry has proved to be worth the investment, and we have stayed within the Grafana ecosystem, now paying for Grafana Cloud (to save our time on maintaining the stack in our Kubernetes clusters).
I would absolutely recommend it. I would recommend it and hopefully use it at any new future positions.
There appeared to be wide array of library and framework support across various stacks, but I can only attest personally to the quality of the above setup (Java, Boot, etc).
Corporate IT were not interested in reducing vendor lock-in; in fact, they asked us to ditch the OTel Collector in favour of Dynatrace OneAgent even though we could have integrated with Dynatrace without it.
PS: And devs (Lightspeed?) seem to really like "Open" prefix: OpenTracing + OpenCensus = OpenTelemetry.
For metrics, we're shipping a bunch of numbers over the wire, with some string tags. So why not something like:
message Measurements {
uint32 metric_id = 1;
uint64 t0_seconds = 2;
uint32 t0_nanoseconds = 3;
repeated uint64 delta_nanoseconds [packed = true] = 4;
repeated int64 values [packed = true] = 5;
}
Where delta_nanoseconds represents a series of deltas from timestamp t0 and values has the same length as delta_nanoseconds. Tags could be sent separately: message Tags {
uint32 metric_id = 1;
repeated string tags = 2;
}
That way you only have to send the tags if they change and the values are encoded efficiently. I bet you could have really nice granular monitoring e.g. sub ms precision quite cheaply this way.Obviously there are further optimizations we can make if e.g. we know the values will respond nicely to delta encoding.
- otel collector?
- kafka (or other mq)?
- cribl?
- vector?
- other?
OTEL is great, I just wish the CNCF had better alternatives to Grafana labs.
Going back to the basics - 12 factor app principles must also be adhered to in scenarios where opentelemtry might not be an option for observability. e.g. Logging is not very mature in Opentlemetry for all the languages as of now. Sending logs to stdout provides a good way to allow the infrastructure to capture logs in a vendor neutral way using standard log forwarders of your choice like fluentbit and otel-collector. Refer - https://12factor.net/logs
OTLP is a great leveler in terms of choice that allows people to switch backends seamlessly and will force vendors to be nice to customers and ensure that enough value is provided for the price.
For those who are using kubernetes you should check the opentelemtry operator, which allows you to autoinstrument your applications written in Java, NodeJS, Python, PHP and Go by adding a single annotation to your manifest file. Check an example here of sutoinstrumentation -
/-> review (python)
/
frontend (go) -> shop (nodejs) -> product (java)
\
\-> price (dotnet)Check for complete code - https://github.com/openobserve/hotcommerce
p.s. An OpenObserve maintainer here.
For context: I am the Head of Product of Dash0, a recently-launched Observability product 100% based on OpenTelemetry. (And Dash0 is not even the first observability based on OpenTelemetry I work on.)
OTLP as a wire protocol goes a long way in ensuring that your telemetry can be ingested by a variety of vendors, and software like the OpenTelemetry Collector enables you to forward the same data to multiple backends at the same time.
Semantic conventions, when implemented correctly by the instrumentations, put the burden of "making telemetry look right" on the side of the vendor, and that is a fantastic development for the practice of observability.
However, of course, there is more to vendor lock-in than "can it ingest the same data". The two other biggest sources of lock in are:
1) Query languages: Vendors that use proprietary query languages lock your alerting rules and dashboards (and institutional knowledge!) behind them. There is no "official" OpenTelemetry query language, but at Dash0 we found that PromQL suffices to do all types of alerting and dashboards. (Yes, even for logs and traces!)
2) Integrations with your company processes, e.g., reporting or on-call.
Related
Datadog Is the New Oracle
Datadog faces criticism for high costs and limited access to observability features. Open Source tools like Prometheus and Grafana are gaining popularity, challenging proprietary platforms. Startups aim to offer affordable alternatives, indicating a shift towards mature Open Source observability platforms.
Show HN: TraceLens Visualizing Distributed Systems
TraceLens is a user-friendly OpenTelemetry UI acting as a Collector for data storage. Free during beta, it offers visualization tools and plans a subscription model for commercial use. Contact Asynkron AB for details.
Show HN: Telemetry.sh – Simplifying Telemetry Measurement
Telemetry provides a solution for measuring data in applications without infrastructure management, allowing users to log events, perform SQL queries, analyze data, and collaborate efficiently.
Telemetry in Go 1.23 and Beyond
Go 1.23 introduces optional telemetry for sharing toolchain usage data, enhancing bug identification and reliability. Participation has increased through the VS Code Go plugin, with future expansions planned.
OpenTelemetry Tracing in < 200 lines of code
OpenTelemetry tracing simplifies to structured logging and context propagation, using spans for metadata. It supports distributed tracing via HTTP headers and requires instrumentation to capture trace data for monitoring.