Channel Revision Published Runs on
1/stable 199 08 Jul 2025
Ubuntu 20.04
1/candidate 199 26 Jun 2025
Ubuntu 20.04
1/beta 199 10 Jun 2025
Ubuntu 20.04
1/edge 199 26 May 2025
Ubuntu 20.04
2/edge 202 28 Jul 2025
Ubuntu 24.04
juju deploy loki-k8s --channel 1/stable
Show information

Platform:

Integrating Loki

Loki integrates with the following:

  1. Any charm that supports the loki_push_api interface. You can integrate it using the Loki Charm library. The documentation of the charm library, available through Charmhub provides further details. The information exchanged through the loki_push interface can be broken down into two parts
  • Loki charm provides an endpoint URL to receive log from Loki clients that relates with this charm.

  • Loki may receive alert rules which tell when to raise alerts. These rules are read from a directory named loki_alert_rules, if present at the top level, within the client charm’s source (src) directory.

Any time new relations are made, or existing ones changed, between the Loki charm and any scrape target charm, a new Loki configuration is generated.

  1. Loki integrates with Grafana which provides a dashboard for viewing logs aggregated by Loki. These dasboards may be customised by charms that relate to Grafana.

  2. Loki forwards alerts to one or more Alertmanagers that are related to it.


Help improve this document in the forum (guidelines). Last updated 1 year, 4 months ago.