Logs, Metrics and Alerts (LMA 2)
Welcome to the home to all things related to the Logs, Metrics and Alerts (LMA) 2: the observability and monitoring stack for Juju, powered by Juju on Kubernetes and monitoring all the things
LMA 2 Components
LMA 2 is made of the following Juju charmed operators:
- the Prometheus charmed operator
- the Alertmanager charmed operator
- the Loki charmed operator
- the Grafana charmed operator
The charmed operators that make up LMA 2 are available as the pre-configured LMA Light bundle.
Additionally, there are charmed operators designed to work with LMA 2 to provide additional functionality:
the Prometheus Scrape Target charmed operator allows you to represent in a Juju model
/metricsendpoints provided by software not managed by Juju, e.g., LXD or MaaS, so that the Prometheus charmed operator can scrape metrics from them.
the Karma charmed operator runs for you on Kubernetes the Karma UI, which enables you to visualize alerts from various Alertmanager clusters, e.g., when you were to deploy many different LMA 2 on Edge computing on in different production environments, and wanted to keep a centralized overview.
There are several design goals we want to accomplish with LMA 2:
Provide a set of high-quality observability charmed operators that are designed to work well on their own, and better together.
Make the new LMA run on Kubernetes, with specific focus on MicroK8s, to achieve a very “appliance-like” user experience.
Ensure a consistent, cohesive experience: all alerts go through Alertmanager, Grafana can plot all telemetry, etc.
Provide a highly-integrated observability stack with the simplest possible deployment experience.
Take the toil out of setting up monitoring of your Juju workloads: monitoring your Juju applications should be as simple as establishing a couple of relations with the LMA 2 charms.
Showcase the declarative power of the Juju model: for example, if some can be modelled as relation, rather that a configuration, it should be. Also, relations must be semantically meaningful: by looking at
juju status --relations, you should intuitively understand what comes out of two charms relating with one another.
LMA Light and HA
We foresee two “flavors” of LMA 2:
Light, currently being worked on, is designed for the Edge, and is capable of running reliably with limited computing resources (around 4 GB of overall memory, including MicroK8s and the Juju controller, limited CPU power)
HA, for “high-availability”, to be worked on in the future (and not before Light becomes generally available) will be designed for large sites, with a high-availability setup through redundancy, a careful design of the architecture, and potentially a slightly different set of operators involved (for example, likely swapping out Prometheus for Cortex).
Status of LMA 2
LMA Light is currently under heavy development. We are pretty confident in the quality and design of most of the integrations in and around Prometheus and Grafana.
We are also working on the first iteration of monitoring charms that integrated with the previous iteration of the Prometheus charm, as well as charmed operators that allow you to represent in Juju workloads that are not run by Juju, so that LMA 2 can still monitor them.
Moreover, we need to harden LMA Light in terms of resilience and furnishing it with out-of-the-box self-monitoring capabilities (“Quis custodiet ipsos custodes?” and all that).
LMA HA will feel very, very similar to LMA Light in terms of end-user experience, but it will require significant changes under the hood. We foresee work on LMA HA to start in the first half of 2022.
Why the “2” in LMA 2
At Canonical, we have been referring to LMA as a system of machine charms currently in use to monitor Canonical and customer systems.
LMA 2 draws a lot of learning from years of operational experience with LMA, but it is also different enough that we felt we needed to make a distinction from the previous iteration.
The “What is observability?” page provides an overview of the relation between observability and monitoring. An overview of the Canonical offerings related to observability and monitoring can be found on the Observability page. LMA 2 will join those pages when it goes GA
We have been keeping a sort of “development blog” as a series of blog posts about model-driven observability. Keep in mind that not everything that LMA 2 can do is already showcased in one of those blog entries, and we will provide proper documentation for LMA 2 both here and on the pages of the charms on Charmhub.io.
Last updated 13 days ago.