Uploaded image for project: 'Observability and Data Analysis Program'
  1. Observability and Data Analysis Program
  2. OBSDA-7

Adopting Loki as an alternative to Elasticsearch to support more lightweight, easier to manage/operate storage scenarios

    XMLWordPrintable

Details

    • 90
    • 90% 90%
    • 0

    Description

      Problem Alignment

      The Problem

      Originally, Elasticsearch was introduced for storing logs for a given short amount of time which at the same time had fantastic querying capabilities.

      Unfortunately, Elasticsearch has a lot more to offer and is therefore quite “heavy” for the specific use case we support at the moment and want to support in the future. Furthermore, after working with Elasticsearch for a long time we made the following observations

      • For our customers, support organization and SRE team it is very difficult to operate without the necessary experience.
      • Since we can't really limit how someone uses Elasticsearch/Kibana, customers using more than we expected/allowed.
      • Contributing back is difficult and with the new lincense change, it will be nearly impossible for us.

      Additionally, we want to provide more capabilities that makes our users have been asking for quite some time such as alerting on logs or correlating logs with other signals like metrics (e.g. showing on logs related to a particular alert). Although this is also possible with Elasticsearch, there might be many compromises we need to take since some of the needed features are only part of the Enterprise edition.

      High-Level Approach

      Loki looks pretty promising and after some initial validation internally, we believe that it could fit most, if not all, requirements we have now and others in the future.

      We identified the following advantages using Loki:

      • Loki does exactly what we want without the additional overhead, e.g. indexing, and more that aligns better with our general vision for Logging.
      • Loki is not the holy grail when it comes to maintenance and operational costs but it’s nature does help minimizing both as it runs under a much more simplistic concept.
      • Loki is built in a similar way Prometheus has been built and is using concepts that make correlation and integration into an existing Prometheus ecosystem much easier.
      • Loki is an open source that already has a much bigger community and we were able to already contribute to its base and GrafanaLabs enables us to continue to do that.

      Goal & Success

      • Reduce the number of Elasticsearch deployments as the default log management storage in all OCP clusters.
        • Key Metric: # of Elasticsearch/Kibana CRDs in all subscribed clusters (excluding any internal)
      • Number of Loki usage as a default storage must grow.
        • Key Metric: # of Loki CRDs in all subscribed clusters (excluding any internal)
      • Offer a stable Loki managed service for our internal customers as part of Observatorium and the Red Hat Observability Service (INTERNAL only).
        • Key Metric: Uptime

      Solution Alignment

      Key Capabilities

      • Provide a simple option to configure a Loki-based log storage instead of using Elasticsearch.
      • Provide log forwarding capabilities to a Loki instance (managed by Red Hat or externally by customers)
      • Provide Monitoring capabilities (e.g. rules + runbooks, as well as dashboards) to expose the health of the Loki cluster in use.

      Key Flows

      Access to Loki and exploring logs is part of OBSDA-8.

      Open Questions & Key Decisions (optional)

      Attachments

        Issue Links

          Activity

            People

              jamparke@redhat.com Jamie Parker
              cvogel1 Christian Heidenreich (Inactive)
              Kabir Bharti Kabir Bharti
              Votes:
              2 Vote for this issue
              Watchers:
              19 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: