Stackademic

Stackademic is a learning hub for programmers, devs, coders, and engineers. Our goal is to democratize free coding education for the world.

Follow publication

Member-only story

Spring Boot 3 Observability With OpenTelemetry Series (Log Monitoring)

Ruchira Madhushan Rajapaksha
Stackademic
Published in
5 min readNov 16, 2023

--

If you’re not a Medium member, you can read this for free using this link.

Overview of Observability Series So Far

In our Observability Series, we have already covered, Monitoring Metrics and Monitoring Traces with OpenTelemetry and you can refer to the respective articles with the below links.

With today’s approach, we will optimize our existing application developed with Spring Boot by Integrating with Loki, a log aggregation system inspired by Prometheus.

This integration will significantly enhance the logging capabilities of our application, enabling us to effectively manage and analyze logs, increasing visibility, and facilitating system troubleshooting.

Our Approach

In this tutorial, I’ll show you how to integrate Open Telemetry with Loki and Grafana to achieve observability via enhancing logging capabilities. To learn more about OpenTelemetry please head over to the following Link.

Grafana Loki

Loki is a horizontally scalable, highly available, multi-tenant log aggregation system inspired by Prometheus. It is designed to be very cost-effective and easy to operate. It does not index the contents of the logs, but a set of labels for each log stream.

Compared to other log aggregation systems, Loki:

  • No full-text indexing on logs: Loki stores compressed, unstructured logs and only indexes metadata. This makes Loki simpler to operate and cheaper to run.
  • Label-based indexing and grouping: Loki Indexes and groups log streams using the same labels used with Prometheus. This enables seamless…

--

--

Published in Stackademic

Stackademic is a learning hub for programmers, devs, coders, and engineers. Our goal is to democratize free coding education for the world.

Written by Ruchira Madhushan Rajapaksha

Tech Guy | Cloud Native Enthusiast | Writing about Software Architecture & System Design| Sharing is Caring | Find me on: https://bento.me/ruchirarajapaksha

No responses yet

Write a response